[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

2632.0. "Suggestion: DRM_PROTOTYPES.H" by ENZYME::HAINSWORTH (My fingers never leave my hands!) Thu Apr 19 1990 12:47

Forgive me if you've heard this before...

I'd love to see a header file containing full function prototypes for all
X and DRM routines.  This would be the ultimate in a usable specification --
all incorrectly specified DRM calls would be flagged by compiler informational
messages.  A file like this would make development MUCH more painless for me,
and I suspect it would for our customers, too.  Could you convince your
documentation folks to do this?

Thanks,
John




Here is a preliminary idea of what I'd like to see:

#ifdef no_proto
#define ARGS(a) ()
#else
#define ARGS(a) a
#endif

#ifdef X_PROTOTYPES

/* fill the specified rectangle */
void XFillRectangle ARGS ((
	Display *dsp,
	Drawable d,
	GC gc,
 	int x,
	int y, 
	unsigned int width,
	unsigned int height));

etc...

#endif /* X_PROTOTYPES */

#ifdef XT_PROTOTYPES

etc...

#endif /* XT_PROTOTYPES */

#ifdef DRM_PROTOTYPES

etc...

#endif /* DRM_PROTOTYPES */
T.RTitleUserPersonal
Name
DateLines
2632.1Function prototypes coming for Xlib in R4STAR::ORGOVANVince OrgovanThu Apr 19 1990 19:1516
    You'll get at least some function prototypes in the next major 
    release of DECwindows. For MIT R4, Xlib.h conditionally includes
    function prototypes:
    
    	extern XFillRectangle(
    	#if NeedFunctionPrototypes
    	    Display*            /* display */,
    	    Drawable            /* d */,
    	    GC                  /* gc */,
    	    int                 /* x */,
    	    int                 /* y */,
    	    unsigned int        /* width */,
    	    unsigned int        /* height */
    	#endif
    	);