/* (c) Copyright 1992 by G & A Technical Software, Inc., 28 Research Drive, Hampton, Virginia, 23666. All Rights Reserved. No part of this software or publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise without the prior written permission of G & A Technical Software, Inc. */ /* * $Log: s3_defines.h,v $ * Revision 2.1 1994/07/08 17:47:01 jcburt * Updated typedefs, defines and function protypes to allow recursive * parsing of pct files. Enabled use of sub-PDT files and scoping of * datasets. Datasets used in a pct must be defined either in the * associated pdt file or the pdt file associated with the direct * ancestors of the current pct file. * * Revision 2.0.0.1 1994/06/28 18:48:27 jcburt * S3 Version 2.0 Initial Source * */ static char d_rcsid[] = "$Id: s3_defines.h,v 2.1 1994/07/08 17:47:01 jcburt Exp $"; /*************************************************************************** ** File : s3defs.h - contains definitions needed for the S3 software ** Author : John Burton 3/91 ***************************************************************************/ #include #include #include #include /* #include */ #include #include #include "s3_xalloc.h" /* extern errno; */ #ifdef _SUNOS #define _NO_PROTO #endif #ifdef _SUNOS extern char *sys_errlist[]; #define strerror(enum) (sys_errlist[enum]) #endif #ifndef FALSE #define FALSE 0 #endif #ifndef TRUE #define TRUE 1 #endif #define SYS 0 #define LOC 1 #define DATASET 'D' #define CONSTANT 'C' #define NULLCH '\0' #define PARSE_EMT 0xFFF0 #define PARSE_PDT 0xFFF1 #define PARSE_PCT 0xFFF2 #define PARSE_CON 0xFFF3 #define PNODE 0x504E #define CFUNC 0x4346 #define CSUBR 0x4353 #define DFUNC 0x4446 #define DSUBR 0x4453 #define FFUNC 0x4646 #define FSUBR 0x4653 #define OTHER 0x4F54 #define ENODE 0x4FFF #define CONST 0xF000 #define BYTE 0xF001 #define CHAR 0xF002 #define STRING 0xF003 #define INT 0xF004 #define REAL 0xF005 #define DREAL 0xF006 #define COMP 0xF007 #define DCOMP 0xF008 #define STATIC 0xF009 #define GROUP 0xF00A #define PROC 0xF00B #define OBJS 0xF00C #define LIBS 0xF00D #define NOTYPE 0x0000 #define NDTYPES 11 #define START 0xDEADBEEF #define STOP 0xFEEBDAED #define FUNC 0xEEEB #define DEBUG 0xEEEC #define OPTIMIZE 0xEEED #define NORMAL 0xEEEE #define DYNAMIC 0xEEEF #define UNDEFINED -1 #define NAIX 16 #define NF2C 32 #define NSUN 48 #define NLINUX 64 #define MAXDIMS 32 #define MAXARGS 90 #define MAXENTRIES 100 #define MAXSTRTBL 32768 #define MAXPTRS 32768 #define MAX_ST_ENTRIES 2047 #define strsave(s) ((char *)(strcpy((char *)xrealloc(NULL,strlen(s)+1),(s)))) #define strsave2(s1,s2) ((char *)(strcat(strcpy((char *)xmalloc(strlen(s1)+strlen(s2)+1),(s1)),(s2)))) #define stringcat(s1,s2) ((char *)(strcat((char *)xrealloc((s1),(strlen(s1)+strlen(s2)+1)),s2))) #define yyerror s3_parse_warning