public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* help with gcc's cpp
@ 1999-12-30 10:25 John Gibson
  1999-12-31 22:24 ` John Gibson
  0 siblings, 1 reply; 2+ messages in thread
From: John Gibson @ 1999-12-30 10:25 UTC (permalink / raw)
  To: gcc-help

I am trying to use GNU's cpp to work with our imake process. The problem is 
that when the ccp get done substituting the variables for their real values I 
get interjecteed spaces. For example  I have some defines like this:

#define CreateDir(DirName)   @@\
makedirs:CURDIR/DirName      @@\
CURDIR/DirName:              @@\
	mkdir CURDIR/DirName @@\

the macro is called like 
CreateDir(Bar)

and 
on the command line there is -DCURDIR="./Foo"

and the output I get is
-----------------------------
makedirs: ./Foo / Bar
 ./Foo / Bar :
	mkdir  ./Foo / Bar
-----------------------------
Is there any way to turn this of via the comand line or something?
Thanks in advance


-- 
-- Thanks
   John
----
John Gibson                             __/-\__
jgibson@lexmark.com                      (o o)
-------------------------------------o00o (_) o00o--
Rules to live by.
1."Never high five a pall bearer.."
----------------------------------------------------
"The Supreme Art of War is to make the enemy look foolish." 
						-- Li Atwater


^ permalink raw reply	[flat|nested] 2+ messages in thread

* help with gcc's cpp
  1999-12-30 10:25 help with gcc's cpp John Gibson
@ 1999-12-31 22:24 ` John Gibson
  0 siblings, 0 replies; 2+ messages in thread
From: John Gibson @ 1999-12-31 22:24 UTC (permalink / raw)
  To: gcc-help

I am trying to use GNU's cpp to work with our imake process. The problem is 
that when the ccp get done substituting the variables for their real values I 
get interjecteed spaces. For example  I have some defines like this:

#define CreateDir(DirName)   @@\
makedirs:CURDIR/DirName      @@\
CURDIR/DirName:              @@\
	mkdir CURDIR/DirName @@\

the macro is called like 
CreateDir(Bar)

and 
on the command line there is -DCURDIR="./Foo"

and the output I get is
-----------------------------
makedirs: ./Foo / Bar
 ./Foo / Bar :
	mkdir  ./Foo / Bar
-----------------------------
Is there any way to turn this of via the comand line or something?
Thanks in advance


-- 
-- Thanks
   John
----
John Gibson                             __/-\__
jgibson@lexmark.com                      (o o)
-------------------------------------o00o (_) o00o--
Rules to live by.
1."Never high five a pall bearer.."
----------------------------------------------------
"The Supreme Art of War is to make the enemy look foolish." 
						-- Li Atwater


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-12-31 22:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-12-30 10:25 help with gcc's cpp John Gibson
1999-12-31 22:24 ` John Gibson

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).