ignore combined.s when scanning source directory.

This commit is contained in:
Paul Gardner-Stephen committed 2019-04-18 22:09:26 +09:30
1 parent 6a7f1d13b2
commit c42759f36d
1 file changed
+6 -4
+6 -4
View File
@@ -92,10 +92,12 @@ int main(int argc,char **argv)
while((de=readdir(d))!=NULL) {
if (strlen(de->d_name)>2) {
if (!strcmp(&de->d_name[strlen(de->d_name)-2],".s")) {
if (source_count>=MAX_FILES) DO_ERROR("Too many source files. Increase MAX_FILES?");
source_files[source_count].file=strdup(de->d_name);
source_files[source_count].address=-1;
source_count++;
if (strcmp(de->d_name,"combined.s")) {
if (source_count>=MAX_FILES) DO_ERROR("Too many source files. Increase MAX_FILES?");
source_files[source_count].file=strdup(de->d_name);
source_files[source_count].address=-1;
source_count++;
}
}
}
}