summaryrefslogtreecommitdiff
path: root/idlc
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2005-10-27 13:20:44 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2005-10-27 13:20:44 +0000
commit019cca8194f42473ba98f999e8abdf65c16dc0ce (patch)
treeb2c14121cc79e3ecda19c3c4b799cf9543ac6a08 /idlc
parent5f026caaebc9445840f01b022d6447337a785865 (diff)
INTEGRATION: CWS idlcpp1 (1.4.2); FILE MERGED
2005/10/26 12:39:49 jsc 1.4.2.1: #i56422# take care of last option when EOF is directly behind them
Diffstat (limited to 'idlc')
-rw-r--r--idlc/source/preproc/cpp.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/idlc/source/preproc/cpp.c b/idlc/source/preproc/cpp.c
index fd0515a2976e..93071807c9a5 100644
--- a/idlc/source/preproc/cpp.c
+++ b/idlc/source/preproc/cpp.c
@@ -4,9 +4,9 @@
*
* $RCSfile: cpp.c,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: rt $ $Date: 2005-10-17 13:21:14 $
+ * last change: $Author: hr $ $Date: 2005-10-27 14:20:44 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -51,7 +51,7 @@ int ifdepth;
int ifsatisfied[NIF];
int skipping;
-char rcsid[] = "$Version 1.2 $ $Revision: 1.4 $ $Date: 2005-10-17 13:21:14 $";
+char rcsid[] = "$Version 1.2 $ $Revision: 1.5 $ $Date: 2005-10-27 14:20:44 $";
int realargc;
char* realargv[512];
@@ -99,8 +99,14 @@ void checkCommandFile(char* cmdfile)
{
realargv[realargc]= strdup(option);
realargc++;
+ option[0]='\0';
}
}
+ if (option[0] != '\0') {
+ option[i]='\0';
+ realargv[realargc]= strdup(option);
+ realargc++;
+ }
fclose(commandfile);
}
}