Title: | DECWINDOWS 26-JAN-89 to 29-NOV-90 |
Notice: | See 1639.0 for VMS V5.3 kit; 2043.0 for 5.4 IFT kit |
Moderator: | STAR::VATNE |
Created: | Mon Oct 30 1989 |
Last Modified: | Mon Dec 31 1990 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 3726 |
Total number of notes: | 19516 |
A simple question : What is the exact syntax in resource files for "ifdef color", i.e. the parts of the resources that should be read only on color workstations. Thanks-in-advance, Alex
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
2231.1 | #ifdef COLOR only understood by session manager | OPHION::MIKEY | Mike Yang | Thu Feb 08 1990 15:42 | 11 |
I assume you're talking about Ultrix, since it has one defaults file for both color and B&W screens. Note that the #ifdef processing is done by the session manager, not by xrdb. That's why you can get weird results if you just say "xrdb -load .Xdefaults" with a .Xdefaults file with "#ifdef/#ifndef COLOR" in it, Simply stated, the resources between "#ifdef COLOR" and the next "#endif" are only read when the session manager is running on a color display. The resources between "#ifndef COLOR" and the next "#endif" are only read when the session manager is running on a B&W display. | |||||
2231.2 | xrdb does call cpp.. | IOUONE::BRYSON | Fri Feb 09 1990 14:40 | 10 | |
re: .1: I was looking at UWS V4.0 and monitoring xrdb -load and it DOES call cpp to process the #ifdef's by default. I don't know if this new with V4.0 or not. re .0: If you want to see all of the possible #ifdef's that you may use, use xrdb -symbols to list them. These are processed the same way as C preprocessor commands in a C program (because the same pre- processor is used). David |