[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference bulova::decw_jan-89_to_nov-90

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

2231.0. "Syntax for #ifxxx color in resource files" by ALEXWS::ALEX (Bugs Are Coming In Triplets ...) Thu Feb 08 1990 04:52

	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.RTitleUserPersonal
Name
DateLines
2231.1#ifdef COLOR only understood by session managerOPHION::MIKEYMike YangThu Feb 08 1990 15:4211
    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.2xrdb does call cpp..IOUONE::BRYSONFri Feb 09 1990 14:4010
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