T.R | Title | User | Personal Name | Date | Lines |
---|
2112.1 | can you give more info? | MUCTEC::BECKER | Hartmut B., VMS & Languages, Munich | Thu Mar 06 1997 09:10 | 18 |
| Can you supply more information? With DEC C V4.2-002, aka cc -migrate, it works
as expected on our system:
nasaxp.rto.dec.com> cat foo.c
char *str_var = "CONSTANT_1" __DATE__ __TIME__ "module_name" DESCRIPT ;
nasaxp.rto.dec.com> cc -migrate -c -DDESCRIPT=\"xxxx\" foo.c
nasaxp.rto.dec.com> cc -migrate -E -DDESCRIPT=\"xxxx\" foo.c
# 1 "foo.c"
char *str_var = "CONSTANT_1" "Mar 6 1997" "14:57:34" "module_name" "xxxx" ;
nasaxp.rto.dec.com> uname -a
OSF1 nasaxp.rto.dec.com V3.2 214.61 alpha
If a ';' is expected after "CONSTANT_1" I assume __DATE__ isn't replaced with a
string. You can check that with '-E' or '-migrate -source_listing -show all'.
Hope this helps,
Hartmut
|
2112.2 | PERL is useful tool for these situations... | XDELTA::HOFFMAN | Steve, OpenVMS Engineering | Thu Mar 06 1997 10:37 | 7 |
|
: Of course, sprintf can concatenate these strings, but the declarations
: are in 158 .h files, so I look for some thing simpler.
Do you have any suggestions ?
Learn PERL. It's very good at making these sorts of changes. � :-)
|
2112.3 | | DECCXL::OUELLETTE | | Thu Mar 06 1997 11:12 | 5 |
| The question of which version of the DEC C compiler on what platform
with what command line (-std vs -vaxc could matter) arrises.
The original code looks OK to me... your try doesn't.
R.
|
2112.4 | Error of "\" in makefile. | SEGUR::KUOCH | | Thu Mar 06 1997 12:04 | 11 |
| Hartmut, OUELLETTE,
Thank you for your replies.
Now it works, there was a confusion of "\" in makefile variable.
I am sorry.
Regards.
Cheu.
|