HP3000-L Archives

December 2003, Week 2

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Keven Miller <[log in to unmask]>
Reply To:
Keven Miller <[log in to unmask]>
Date:
Fri, 12 Dec 2003 04:23:05 -0700
Content-Type:
text/plain
Parts/Attachments:
text/plain (57 lines)
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 *

ATOM RSS1 RSS2