(file) Return to def.h CVS log (file) (dir) Up to [XFree86 CVS] / xc / config / makedepend

File: [XFree86 CVS] / xc / config / makedepend / def.h (download)
Revision: 3.6, Sun Mar 21 07:34:25 1999 UTC (14 years, 2 months ago) by dawes
Branch: MAIN
CVS Tags: xf-4_0g, xf-4_0f, xf-4_0e, xf-4_0d, xf-4_0c, xf-4_0b, xf-4_0a, xf-4_0_1c, xf-4_0_1b, xf-4_0_1a, xf-4_0_1-bindist, xf-4_0_1, xf-4_0Z, xf-4_0-bindist, xf-4_0, xf-3_9_18b, xf-3_9_18a, xf-3_9_18Za, xf-3_9_18Z, xf-3_9_18, xf-3_9_17f, xf-3_9_17e, xf-3_9_17d, xf-3_9_17c, xf-3_9_17b, xf-3_9_17a, xf-3_9_17Z, xf-3_9_17, xf-3_9_16f, xf-3_9_16e, xf-3_9_16d, xf-3_9_16c, xf-3_9_16b, xf-3_9_16a, xf-3_9_16Za, xf-3_9_16Z, xf-3_9_16, xf-3_9_15d, xf-3_9_15c, xf-3_9_15b, xf-3_9_15a, xf-3_9_15, xf-3_9Py, xf-3_9Px, xf-3_9Pw, xf-3_9Pv, xf-3_9Pu, xf-3_9Pt, xf-3_9Ps, xf-3_9Pr, xf-3_9Pq, xf-3_9Pp, xf-3_9Po, xf-3_9Pn, xf-3_9Pm, xf-3_9Pl, xf-3_9Pk, xf-3_9Pj, xf-3_9Pi, xf-3_9Phb, xf-3_9Pha, xf-3_9Ph-branch, xf-3_9Ph, xf-3_9Pg, xf-3_9Pf
Changes since 3.5: +2 -2 lines
2409. Updates to s3virge driver to get it working under Linux/Alpha
      (#2586, Matt Grossman).
2408. Fix getline() clash (#2585, Alan Hourihane).
2407. Have the s3virge driver use the new XAA rop helper functions (#2584,
      Mark Vojkovich).
2406. Add code to SuperProbe to detect the S3 Trio3D and Savage3D
      (2583, Eric Molitor).
2405. Add some XAA helper functions that drivers can call for help
      converting X rops into MS rops (#2582, Mark Vojkovich).
2404. Resync the overlay support in the glint driver (#2580, 2581,
      Mark Vojkovich).
2403. Add support for changing the overlay color key to the MGA driver
      (#2579, Mark Vojkovich).
2402. Preallocate the color key in the default colormap and set it to
      something already in the default man (black) so that AllocColor will
      never allocate it (#2578, Mark Vojkovich).
2401. Use the color key field in the ScrnInfoRec for the overlay layers
      (#2578, Mark Vojkovich).
2400. Preliminary loader support for Linux/PPC ELF objects (#2577 (2570),
      Stuart Anderson).
2399. Fix some XAA offscreen pixmap problmes (#2576, Mark Vojkovich).
2398. DGA fixes.  Old apps should now run with the new driver interface,
      and event handling should work better than before (#2575,
      Mark Vojkovich).
2397. Fix most remaining signed/unsigned and prototype warnings in the
      following directories: lib/Xaw, lib/Xmu, programs/xclipboard,
      programs/xconsole, programs/xmag, and programs/xvidtune (#2574,
      Thomas Dickey).
2396. Restore the interface of XmuConvertStandardSelection() to use
      XPointer rather than XtPointer (#2574, Thomas Dickey).
2395. Fix an malloc size bug in libICE (#2572, Christopher Sekiya).
2394. Make MIT-SHM resource types non-static so that other extensions
      (like Xv) can access client shared memory segments (#2571,
      Mark Vojkovich).
2393. First cut at altering the C&T user docs for 4.0 (#2569, David Bateman).
2392. Fix a C&T problem affecting the colourmap setup for 1bpp modes, and some
      other minor C&T driver fixes (#2569, David Bateman).
2391. Fix an buffer overflow in os/connection.c (#2568, Gerd Knorr).
2390. Add support for Modes sections and the UseModes keyword for Monitor
      sections to the parser (the data isn't used yet) (#2564, Dirk Hohndel).
2389. Fix xfree86.cf for Alpha (#2567, Dirk Hohndel).
2388. Fix XAAFillPolygonStippled to obey the flag NO_TRANSPARENCY in
      Mono8x8PatternFill (#2566, Xavier Ducoin).
2387. Only allow the shadowfb layer in the C&T driver when linear addressing
      is enabled (#2565 (2561), David Bateman).
2386. Fix some problems with the xf8_16bpp layer, and allow it to work
      with depth 15 as well as 16 (#2565 (2561, 2562), David Bateman).
2385. Implement TrueColor with PseudoColor Overlays (8+16) for the
      C&T driver for HiQV chipsets (#2565 (2561), David Bateman).
2384. Add a -quiet option to xgamma (#2565 (2561), David Bateman).
2383. Add TrueColor Gamma Correction for C&T HiQV chipsets (#2565 (2561),
      David Bateman).
2382. Fix Permedia 2 HW cursor lockup (#2563, Alan Hourihane).
2381. Initial XAA support for SiS530 and SiS620 (#2560, Xavier Ducoin).
2380. Add SuperProbe for SiS (#2559, Xavier Ducoin).
2379. Fix the InstalMultipleMan and InstallMultipleManSuffix rules for
      NetBSD and OpenBSD (#2558 (2557), Matthieu Herrb).
2378. Add Cards entry for Number Nine FX Reality 772 (#2556, Harald Koenig).
2377. Make XF86Setup build again (not fully functional yet) (#2555, Joe Moss).
2376. Update the apm (Alliance Promotion) to the 4.0 interface (#2554,
      Loic Grenie, Henrik Harmsen).

/* $TOG: def.h /main/32 1998/03/25 08:17:45 kaleb $ */
/*

Copyright (c) 1993, 1994, 1998 The Open Group.

All Rights Reserved.

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL THE
OPEN GROUP BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Except as contained in this notice, the name of The Open Group shall not be
used in advertising or otherwise to promote the sale, use or other dealings
in this Software without prior written authorization from The Open Group.

*/
/* $XFree86: xc/config/makedepend/def.h,v 3.5 1998/10/05 13:21:48 dawes Exp $ */

#include "Xos.h"
#include "Xfuncproto.h"
#include <stdio.h>
#ifndef X_NOT_STDC_ENV
#include <string.h>
#endif
#include <ctype.h>
#if 0
#ifndef X_NOT_POSIX
#ifndef _POSIX_SOURCE
#define _POSIX_SOURCE
#endif
#endif
#endif
#include <sys/types.h>
#include <fcntl.h>
#include <sys/stat.h>

#define MAXDEFINES	512
#define MAXFILES	1024
#define MAXDIRS		64
#define SYMTABINC	10	/* must be > 1 for define() to work right */
#define	TRUE		1
#define	FALSE		0

/* the following must match the directives table in main.c */
#define	IF		0
#define	IFDEF		1
#define	IFNDEF		2
#define	ELSE		3
#define	ENDIF		4
#define	DEFINE		5
#define	UNDEF		6
#define	INCLUDE		7
#define	LINE		8
#define	PRAGMA		9
#define ERROR           10
#define IDENT           11
#define SCCS            12
#define ELIF            13
#define EJECT           14
#define WARNING         15
#define IFFALSE         16     /* pseudo value --- never matched */
#define ELIFFALSE       17     /* pseudo value --- never matched */
#define INCLUDEDOT      18     /* pseudo value --- never matched */
#define IFGUESSFALSE    19     /* pseudo value --- never matched */
#define ELIFGUESSFALSE  20     /* pseudo value --- never matched */

#ifdef DEBUG
extern int	_debugmask;
/*
 * debug levels are:
 * 
 *     0	show ifn*(def)*,endif
 *     1	trace defined/!defined
 *     2	show #include
 *     3	show #include SYMBOL
 *     4-6	unused
 */
#define debug(level,arg) { if (_debugmask & (1 << level)) warning arg; }
#else
#define	debug(level,arg) /**/
#endif /* DEBUG */

typedef	unsigned char boolean;

struct symtab {
	char	*s_name;
	char	*s_value;
};

/* possible i_flag */
#define DEFCHECKED	(1<<0)	/* whether defines have been checked */
#define NOTIFIED	(1<<1)	/* whether we have revealed includes */
#define MARKED		(1<<2)	/* whether it's in the makefile */
#define SEARCHED	(1<<3)	/* whether we have read this */
#define FINISHED	(1<<4)	/* whether we are done reading this */
#define INCLUDED_SYM	(1<<5)	/* whether #include SYMBOL was found
				   Can't use i_list if TRUE */
struct	inclist {
	char		*i_incstring;	/* string from #include line */
	char		*i_file;	/* path name of the include file */
	struct inclist	**i_list;	/* list of files it itself includes */
	int		i_listlen;	/* length of i_list */
	struct symtab	**i_defs;	/* symbol table for this file and its
					   children when merged */
	int		i_ndefs;	/* current # defines */
	boolean		*i_merged;      /* whether we have merged child
					   defines */
	unsigned char   i_flags;
};

struct filepointer {
	char	*f_p;
	char	*f_base;
	char	*f_end;
	long	f_len;
	long	f_line;
};

#ifndef X_NOT_STDC_ENV
#include <stdlib.h>
#if defined(macII) && !defined(__STDC__)  /* stdlib.h fails to define these */
char *malloc(), *realloc();
#endif /* macII */
#else
char			*malloc();
char			*realloc();
#endif

char			*copy(char *str);
int                     match(char *str, char **list);
char			*base_name(char *file);
char			*getnextline(struct filepointer *fp);
struct symtab		**slookup(char *symbol, struct inclist *file);
struct symtab		**isdefined(char *symbol, struct inclist *file,
				    struct inclist **srcfile);
struct symtab		**fdefined(char *symbol, struct inclist *file,
				   struct inclist **srcfile);
struct filepointer	*getfile(char *file);
void                    included_by(struct inclist *ip, 
				    struct inclist *newfile);
struct inclist		*newinclude(char *newfile, char *incstring);
void                    inc_clean (void);
struct inclist		*inc_path(char *file, char *include, boolean dot);

void                    freefile(struct filepointer *fp);

void                    define2(char *name, char *val, struct inclist *file);
void                    define(char *def, struct inclist *file);
void                    undefine(char *symbol, struct inclist *file);
int                     find_includes(struct filepointer *filep, 
				      struct inclist *file, 
				      struct inclist *file_red, 
				      int recursion, boolean failOK);

void                    recursive_pr_include(struct inclist *head, 
					     char *file, char *base);
void                    add_include(struct filepointer *filep, 
				    struct inclist *file, 
				    struct inclist *file_red, 
				    char *include, boolean dot, 
				    boolean failOK);

int                     cppsetup(char *line, struct filepointer *filep, 
				 struct inclist *inc);


#if NeedVarargsPrototypes
extern void fatalerr(char *, ...);
extern void warning(char *, ...);
extern void warning1(char *, ...);
#endif

Powered by
ViewCVS 0.9.2