
/* 
 * $Copyright:	$
 * Copyright (c) 1984, 1985, 1986, 1987, 1988, 1989, 1990 
 * Sequent Computer Systems, Inc.   All rights reserved.
 *  
 * This software is furnished under a license and may be used
 * only in accordance with the terms of that license and with the
 * inclusion of the above copyright notice.   This software may not
 * be provided or otherwise made available to, or used by, any
 * other person.  No title to or ownership of the software is
 * hereby transferred.
 */

/*	Copyright (c) 1984 AT&T	*/
/*	  All Rights Reserved  	*/

/*	THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T	*/
/*	The copyright notice above does not evidence any   	*/
/*	actual or intended publication of such source code.	*/
#ident "$Header: xdefs.c 1.1 90/01/19 $@(#)xdefs.c	1.1 89/12/01"
#include "xs.h"
#include "names.h"
#include "stack.h"
#include "types.h"
#include "anal.h"

int lineno;				/* current line number */
char ftitle[MAXPATHLEN];		/* current file name */
bool is_init;				/* analyzing an initializer */
bool is_index;				/* computing an index */
bool is_sizeof;				/* found a sizeof */
bool do_init;				/* proceed with initialization */
char *replace_strings = STRINGS_REPLACE;/* strings replace routine name*/
char *init_strings = STRINGS_INIT;	/* strings init routine name */
char *strings_unique = STRINGS_UNIQUE;	/* prefix for 'uniques' vars */
char *var_set_nr;			/* name for var for set nr */
char *func_name;			/* name for additional function */
TOKEN NIL = {0};			/* The null token */
TOKEN curattr;				/* current attributes */
FILE *fd_msg;				/* the messages file */
FILE *fd_in;				/* the input file */
FILE *fd_out;				/* the output file */
long lastoff;				/* the last offset in ouput file */
int lastcon;				/* value of last int const from yylex */
double dcon;				/*               double               */
TYPEP typ_attr; 			/* 'attributes' for struct members
					   declarations. */
STACK *ty_st;				/* The types stack */
TYPEP type_null = { -1, 0 };		/* A null type */
char *desc_file;			/* Description file name */
bool no_type = FALSE;			/* No user typedef interpretation */
bool is_typedef = FALSE;		/* Processing a typedef */
