- initial import
git-svn-id: http://moon:8086/svn/mips@1 a8ebac50-d88d-4704-bea3-6648445a41b3
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
/* +++Date last modified: 05-Jul-1997 */
|
||||
|
||||
/*
|
||||
** SNIPTYPE.H - Include file for SNIPPETS data types and commonly used macros
|
||||
*/
|
||||
|
||||
#ifndef SNIPTYPE__H
|
||||
#define SNIPTYPE__H
|
||||
|
||||
#include <stdlib.h> /* For free() */
|
||||
#include <string.h> /* For NULL & strlen() */
|
||||
|
||||
typedef enum {Error_ = -1, Success_, False_ = 0, True_} Boolean_T;
|
||||
|
||||
/*#if !defined(WIN32) && !defined(_WIN32) && !defined(__NT__) \
|
||||
&& !defined(_WINDOWS)
|
||||
#if !defined(OS2)*/
|
||||
typedef unsigned char BYTE;
|
||||
typedef unsigned long DWORD;
|
||||
/* #endif*/
|
||||
typedef unsigned short WORD;
|
||||
/*#else
|
||||
#define WIN32_LEAN_AND_MEAN
|
||||
#define NOGDI
|
||||
#define NOSERVICE
|
||||
#undef INC_OLE1
|
||||
#undef INC_OLE2
|
||||
#include <windows.h>
|
||||
#define HUGE
|
||||
#endif*/
|
||||
|
||||
#define NUL '\0'
|
||||
#define LAST_CHAR(s) (((char *)s)[strlen(s) - 1])
|
||||
#define TOBOOL(x) (!(!(x)))
|
||||
#define FREE(p) (free(p),(p)=NULL)
|
||||
|
||||
#endif /* SNIPTYPE__H */
|
||||
Reference in New Issue
Block a user