00001 /* LIBDGL -- a Directed Graph Library implementation 00002 * Copyright (C) 2002 Roberto Micarelli 00003 * 00004 * This program is free software; you can redistribute it and/or modify 00005 * it under the terms of the GNU General Public License as published by 00006 * the Free Software Foundation; either version 2 of the License, or 00007 * (at your option) any later version. 00008 * 00009 * This program is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00012 * GNU General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU General Public License 00015 * along with this program; if not, write to the Free Software 00016 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 00017 */ 00018 00019 /* 00020 * best view tabstop=4 00021 */ 00022 00023 #ifndef _DGL_TYPE_H_ 00024 #define _DGL_TYPE_H_ 1 00025 00026 /* __BEGIN_DECLS should be used at the beginning of your declarations, 00027 so that C++ compilers don't mangle their names. Use __END_DECLS at 00028 the end of C declarations. */ 00029 #undef __BEGIN_DECLS 00030 #undef __END_DECLS 00031 #ifdef __cplusplus 00032 # define __BEGIN_DECLS extern "C" { 00033 # define __END_DECLS } 00034 #else 00035 # define __BEGIN_DECLS /* empty */ 00036 # define __END_DECLS /* empty */ 00037 #endif 00038 00039 /* __P is a macro used to wrap function prototypes, so that compilers 00040 that don't understand ANSI C prototypes still work, and ANSI C 00041 compilers can issue warnings about type mismatches. */ 00042 #undef __P 00043 #if defined (__STDC__) || defined (_AIX) \ 00044 || (defined (__mips) && defined (_SYSTYPE_SVR4)) \ 00045 || defined(WIN32) || defined(__cplusplus) 00046 # define __P(protos) protos 00047 #else 00048 # define __P(protos) () 00049 #endif 00050 00051 00052 __BEGIN_DECLS 00053 00054 /* 00055 * local endianess 00056 */ 00057 #ifdef WORDS_BIGENDIAN 00058 #define G_XDR 1 00059 #else 00060 #define G_NDR 1 00061 #endif 00062 00063 00064 typedef unsigned char dglByte_t; 00065 typedef long dglInt32_t; 00066 typedef long long dglInt64_t; 00067 00068 00069 __END_DECLS /* _GN_TYPE_H_ */ 00070 00071 #endif