/**************************************************************************** ** *W utils.h XGAP Source Frank Celler ** ** *Y Copyright 1995-1997, Lehrstuhl D fuer Mathematik, RWTH Aachen, Germany *Y Copyright 1997, Frank Celler, Huerth, Germany ** ** This file contains the utility functions and macros used in XGAP, ** basically the list functions ('ELM', 'LEN', 'AddList', and 'List') and ** the debug macro ('DEBUG'). This file also includes all the necessary ** system and X11 include files and defines the following data types: ** ** Boolean "True" or "False" (defined by X11) ** Char a "Char" will be able to hold one character ** Int a 32-bit signed integer ** Long an integer able to hold a pointer ** Pointer a generic pointer ** Short a 16-bit signed integer ** String an array of chars ** UChar unsigned version of "Char" ** UInt a 32-bit unsigned integer ** ULong unsigned version of "Long" ** UShort a 16-bit unsigned integer ** ** List( <len> ) ** ------------- ** 'List' creates a new list able to hold <len> pointers of type 'Pointer'. ** ** AddList( <lst>, <elm> ) ** ----------------------- ** 'AddList' appends the new element <elm> of type 'Pointer' to <lst>, ** enlarging the list if necessary. ** ** ELM( <lst>, <i> ) ** ----------------- ** 'ELM' returns the <i>.th element of <lst>. ** ** LEN( <lst> ) ** ------------ ** 'LEN' returns the length of <lst>. ** ** DEBUG( <type>, ( <debug-text>, ... ) ) ** -------------------------------------- ** 'DEBUG' uses 'printf' to print the <debug-text> in case that 'Debug' && ** <type> is true. The text is preceded by the line number and the source ** file name. The following types are available: D_LIST, D_XCMD, D_COMM.
*/ #ifndef _utils_h #define _utils_h
/**************************************************************************** ** *T Long . . . . . . . . . . . . . . a signed integer able to hold a pointer
*/ typedeflongLong;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.