I may have asked this before, but I can't seem to find any references in
the archives.
I would like to define a string using the -D option when compiling C (on
mpe)
where the string contains spaces.
But it appears that the parsing used by CCXL stops on spaces even when
inside
quotes.
my work around has been to put the string into a temp file and then include
the file.
/do cc
ccxl c5c,,,"-DVSTR=""OK"""
FRI DEC 12 2003 4:19 AM Copyright Hewlett-Packard Co. 1984. PAGE
1
HP C/iX HP31506 A.05.19
"C5C"
1 0 # 1 "C5C.KEVEN.NMTOOLS"
1 0 int main ( int ac, char* av [] )
2 0 {
3 1 int fpin;
4 1
5 1 fpin = 7;
6 1
7 1 printf ( "Vstr %s\n", "OK" );
8 1
9 1 printf ( "Father %d\n", fpin );
10 1 }
END OF COMPILE
/b
ccxl c5c,,,"-DVSTR=""OK"""
sam
ccxl c5c,,,"-DVSTR=""OK sam"""
cc: error 2165: Unknown option "sam""; minus or plus prefix required.
CCOMXL.PUB.SYS;INFO="-DVSTR=""OK sam""";PARM=1
Program terminated in an error state. (CIERR 976)
ERROR IN COMPILE
END OF COMPILE
Keven Miller
[log in to unmask]
hmmm, just thought of a new keyword to search archives with.
version
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *
|