Skip to main content
Eric Marceau's user avatar
Eric Marceau's user avatar
Eric Marceau's user avatar
Eric Marceau
  • Member for 6 years, 2 months
  • Last seen this week
awarded
Loading…
revised
Loading…
comment
Trying to re-define GS display window orientation for easier viewing/debugging of postscript code
Thank you, @KenS. Much appreciated. BTW, I wasn't randomly guessing. I reviewed the Ghostscript docs and other postings, and tried to rationalize the best I could. Clearly, I failed. Unfortunately, your own suggestion did work either. It did not create the window viewport oriented in the manner which I desired.
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
comment
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
Thank you, @dave_thompson. Is there a way that if I use the method LANGSEL == 'en', that I could then create the include statement to be of the form #include abc_en.h ?
comment
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
Should I be changing the Title for this posting? Or do I leave it as is.
Loading…
comment
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
I removed the single quotes around the 1 for #define LANGSET 1 , and that now works perfectly. Thank you all for your various hints and guidance. Much appreciated!
comment
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
Thank you @masonthedev. I will work with that answer, and give you credit for it. However, expanding on those individual cases, I would like to add #define LANGSET '1' for each that is a matched case, then at the bottom of that list, add #ifndef LANGSET to have the compile set my definition of a failsafe fallback definition. But for some reason, it is not correctly recognizing that if i use -DNONE , the ifndef is not being triggered. I don't know why.
revised
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
Expanded conditions for matching during pre-processor directives. Definite error condition matching reported.
Loading…
revised
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
Final revision, adding sample header file containing message string definitions, along with script to generate those using standardized format.
Loading…
revised
Is there an equivalent to AWK sprintf for use in C compiler #define directives?
Another revision showing partial success but not to the desired extent, using only the first 2 characters of LANGUAGE.
Loading…
1
2 3 4 5
36