Sorry for the late reply. Been busy. I wrote a custom build script in Emacs lisp that recurses over my files and passes each one to cpp. It's too bad there isn't a recursive option with cpp, but I think it might have to do with the fact that you have to tell it what to rename each file or where to put it. Learning the bash shell, which is included with OSX, is VERY rewarding. There is an excellant guide here: http://tldp.org/LDP/abs/html/
-D DEBUG=test is wrong. It should just be -D DEBUG and then: #ifdef DEBUG your code #endif The -D SOMENAME just tells the preprocessor to define SOMENAME and the #ifdef is saying "if defined". I don't use OSX, so I can't speak to that. -austin -- Austin Haas Pet Tomato, Inc. http://pettomato.com On Wed Jun 06 11:33 , Eric Priou wrote: > Hi Austin, > > > > > I use CPP with utf-8 files on Linux with no problems. > > > > I don't understand your comment about including #ifdef. > > > Actually, I was trying to use your article's in order to make cpp works. > > I found some issues : > > - it seems that cpp doesn't comes with a recursive option. > I am not a shell guru and didn't achieve to redirect or pipe in the > type of hierarchy that an actionscript project might have. > May be you can be of any help ?! > > - I talked about utf-8, but I can't say it's my issue. > I work on osx 10.4.9. > When I used it on my as files, the output still contain the #ifdef > directives inside. > This is really strange. > > I had also a strange result, for example, when using -D DEBUG=test. > The output changed correctly DEBUG by test, but still got all the > #ifdef and such. > Like so : > #ifdef test > // my preprocess > #endif > > - I didn't achieve to keep \n in the preprocessed output. > The result is chunked. > > > I've read mike chamber's article. > He said that he had trouble with the cpp that ships in osx. > I don't know which ones ?! > > I didn't get the chance to compile cpp on my own. > I tried to follow Darron's advice in using gpp. > The result was quiet the same, unfortunatly… > > I used jappo, which had the best results of all, but the output filed > at a point. > Seems that it work for an average amount of files and stops if there > is too much. > The project don't live anymore and the authors just don't answer to > any mail. > > So if someone use a preprocessor on osx with success, please guide me. > I am a little disappointed by the fact that the tools are just there, > but I was unable to use them :( > > Thanks anyhow. > > Le 5 juin 07 à 15:28, Austin Haas a écrit : > > > > > > > ---- > Eric Priou > aka erixtekila > Articles : http://www.v-i-a.net/inprogress > Oregano : http://www.v-i-a.net/inprogress/doku.php/oregano > Oregano forum : http://www.v-i-a.net/forum/ > > > > _______________________________________________ > osflash mailing list > [email protected] > http://osflash.org/mailman/listinfo/osflash_osflash.org > _______________________________________________ osflash mailing list [email protected] http://osflash.org/mailman/listinfo/osflash_osflash.org
