Category : C Source Code
Archive   : AETSK101.ZIP
Filename : AEDEF.H

 
Output of file : AEDEF.H contained in archive : AETSK101.ZIP
/**********************************************************************
*
* NAME: aedef.h
*
* DESCRIPTION: simple types, defs I use a lot
*
* This file is placed in the public domain.
*
* M O D I F I C A T I O N H I S T O R Y
*
* when who what
* -------------------------------------------------------------------
* 04/90 J. Alan Eldridge created
*
* 11/10/90 JAE name changed from aetype to aedef
*
* 10/26/91 JAE added support for DJ Delorie's port
* port of GNU C++ v. 1.39
*
*********************************************************************/


#if !defined(__AEDEF_H)

#define __AEDEF_H 1

#define INCL_CONIO 1

#if defined(__TURBOC__)
#define INCL_MEM 1
#define INCL_DOS 1
#define INCL_IOSTREAM 1
#endif

#include "aecc.h" /* get compiler includes */

/*
scalar types: upper & lower case
*/

typedef signed char SCHAR;
typedef unsigned char UCHAR;
typedef unsigned int UINT;
typedef unsigned short USHORT;
typedef unsigned long ULONG;

typedef signed char schar;
typedef unsigned char uchar;
typedef unsigned int uint;
typedef unsigned short ushort;
typedef unsigned long ulong;

/*
function return values
*/

#define OK 0
#define ERR -1

/*
TRUE & FALSE
*/

#define TRUE 1
#define FALSE 0

#if defined(__cplusplus)

#undef min
#undef max

/*
min, max functions
*/

inline long min(long a, long b) { return a < b ? a : b; }
inline long max(long a, long b) { return a > b ? a : b; }

inline short min(short a, short b) { return a < b ? a : b; }
inline short max(short a, short b) { return a > b ? a : b; }

#endif /* defined(__cplusplus) */

#endif /* !defined(__AEDEF_H) */


  3 Responses to “Category : C Source Code
Archive   : AETSK101.ZIP
Filename : AEDEF.H

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: http://www.os2museum.com/wp/mtswslnk/