From c42759f36d18f4415f91c75a8944bf9b16b3c24b Mon Sep 17 00:00:00 2001 From: Paul Gardner-Stephen Date: Thu, 18 Apr 2019 22:09:26 +0930 Subject: [PATCH] ignore combined.s when scanning source directory. --- src/preprocess.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/preprocess.c b/src/preprocess.c index f4152607..39ba294c 100644 --- a/src/preprocess.c +++ b/src/preprocess.c @@ -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++; + } } } }