/* * Copyright 2000, 2002 by Paul Mattes. * Permission to use, copy, modify, and distribute this software and its * documentation for any purpose and without fee is hereby granted, * provided that the above copyright notice appear in all copies and that * both that copyright notice and this permission notice appear in * supporting documentation. * * c3270 is distributed in the hope that it will be useful, but WITHOUT ANY * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS * FOR A PARTICULAR PURPOSE. See the file LICENSE for more details. */ /* * localdefs.h * Local definitions for c3270. * * This file contains definitions for environment-specific * facilities, such as memory allocation, I/O registration, * and timers. */ /* Identify ourselves. */ #define C3270 1 /* Conditional 80/132 mode switch support. */ #if defined(BROKEN_NEWTERM) /*[*/ #undef C3270_80_132 #else /*][*/ #define C3270_80_132 1 #endif /*]*/ /* These first definitions were cribbed from X11 -- but no X code is used. */ #define False 0 #define True 1 #ifdef __APPLE__ typedef unsigned char Boolean; #else typedef char Boolean; #endif typedef char *String; //typedef unsigned long KeySym; #define Bool int //#define XtNumber(n) (sizeof(n)/sizeof((n)[0])) //#define NoSymbol 0L /* These are local functions with similar semantics to X functions. */ #define Calloc(e,n) lib3270_calloc(e,n,NULL) #define Realloc(x,n) lib3270_realloc(x,n) #define NewString(x) strdup(x)