From bcab66243568a808131f5faa3c5dfd4a3873848b Mon Sep 17 00:00:00 2001 From: Eddie Runia Date: Mon, 24 May 1999 09:30:17 +0000 Subject: [PATCH] Added this one as well --- harbour/source/hbpp/harb.h | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 harbour/source/hbpp/harb.h diff --git a/harbour/source/hbpp/harb.h b/harbour/source/hbpp/harb.h new file mode 100644 index 0000000000..9d921f103a --- /dev/null +++ b/harbour/source/hbpp/harb.h @@ -0,0 +1,27 @@ +/* --------------------------------------------- + Definitions, copied from Harbour.y and types.h */ + +#undef LONG /* 4 bytes unsigned */ +typedef long LONG; +typedef unsigned long ULONG; +#define PATH_DELIMITER "/\\" +#define IS_PATH_SEP( c ) (strchr(PATH_DELIMITER, (c))!=NULL) +#ifndef _POSIX_PATH_MAX + #define _POSIX_PATH_MAX 255 +#endif +typedef struct /* support for filenames */ +{ + char _buffer[ _POSIX_PATH_MAX+3 ]; + char *path; + char *name; + char *extension; +} FILENAME; + +FILENAME *SplitFilename( char * ); /* splits filename into a path, a name and an extension */ +char *MakeFilename( char *, FILENAME *); /* joins a path, a name an an extension int filename */ +void * OurMalloc( LONG lSize ); /* our malloc with error control */ +void * _xgrab( ULONG ); /* allocates fixed memory */ +void * _xrealloc( void *, ULONG ); /* reallocates memory */ +void _xfree( void * ); /* frees fixed memory */ + +/* ------------------------------------------ */ \ No newline at end of file