util.h

Go to the documentation of this file.
00001 /*******************************************************************\
00002 
00003                    SESAME project software license
00004 
00005               Copyright (C) 2002 University of Amsterdam
00006 
00007     This program is free software; you can redistribute it and/or
00008      modify it under the terms of the GNU General Public License
00009     as published by the Free Software Foundation; either version 2
00010         of the License, or (at your option) any later version.
00011 
00012    This program is distributed in the hope that it will be useful,
00013     but WITHOUT ANY WARRANTY; without even the implied warranty of
00014     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00015              GNU General Public License for more details.
00016 
00017   You should have received a copy of the GNU General Public License
00018      along with this program; if not, write to the Free Software
00019       Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
00020                            02111-1307, USA.
00021 
00022       For information regarding the SESAME software project see
00023               http://sesamesim.sourceforge.net or email
00024                     jcofflan@users.sourceforge.net
00025 
00026 \*******************************************************************/
00027 
00028 /*
00029  *                        Pearl Compiler (c) 1989 University of Amsterdam
00030  *                                  by
00031  *                      B.J. Overeinder & J.G. Stil
00032  */
00033 
00034 
00035 
00036 #ifndef  UTIL_H
00037 #define  UTIL_H
00038 
00039 #ifndef __cplusplus
00040 typedef int bool;
00041 #endif                          // __cplusplus
00042 
00043 #define  TRUE                   1
00044 #define  FALSE                  0
00045 
00046 #ifndef  NULL
00047 #define  NULL                   0
00048 #endif                          //  NULL
00049 
00050 #ifndef MAXPATHLEN
00051 #define   MAXPATHLEN            255
00052 #endif
00053 
00054 /*
00055  * Constants to set conditions in the 'flag' field.
00056  */
00057 
00058 #define  FUNCTION               0x0
00059 #define  METHOD                 0x1
00060 #define  TYPETYPE               0x0
00061 #define  CLASSTYPE              0x2
00062 #define  TYPERET                0x0
00063 #define  CLASSRET               0x2
00064 #define  TYPEREP                0x0
00065 #define  CLASSREP               0x4
00066 #define  FIXEDARGS              0x0
00067 #define  VARARGS                0x8
00068 
00069 
00070 #ifdef __cplusplus
00071 extern "C" {
00072 #endif
00073 
00074 #include "symboldef.h"
00075 
00076 #define         talloc(type)    (type *) malloc(sizeof(type))
00077 
00078 char *alstrcpy(char *s1);
00079 void setflags(int *flags, int fb);
00080 bool ismethod(int flags);
00081 bool isclasstype(struct typex *type);
00082 bool hasvarpar(int flags);
00083 char *get_c_type(struct typex *type);
00084 char *toupper_s(char *s);
00085 char *valconv(char *str);
00086 int atox(char *s);
00087 char *atoaf(char *s);
00088 
00089 #ifdef __cplusplus
00090 };
00091 #endif
00092 #endif                          //  UTIL_H

Generated on Wed Apr 5 20:57:46 2006 for Sesame by  doxygen 1.4.6