FORM  4.2.1
Macros | Typedefs | Functions
form3.h File Reference
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include "ftypes.h"
#include "fsizes.h"
#include "minos.h"
#include "structs.h"
#include "declare.h"
#include "variable.h"

Go to the source code of this file.

Macros

#define MAJORVERSION   4
 
#define MINORVERSION   2
 
#define PRODUCTIONDATE   "06-jul-2017"
 
#define inline
 
#define NDEBUG
 
#define STATIC_ASSERT(condition)   STATIC_ASSERT__1(condition,__LINE__)
 
#define STATIC_ASSERT__1(X, L)   STATIC_ASSERT__2(X,L)
 
#define STATIC_ASSERT__2(X, L)   STATIC_ASSERT__3(X,L)
 
#define STATIC_ASSERT__3(X, L)   typedef char static_assertion_failed_##L[(!!(X))*2-1]
 
#define TOPBITONLY   ((ULONG)1 << (BITSINWORD - 1)) /* 0x00008000UL */
 
#define TOPLONGBITONLY   ((ULONG)1 << (BITSINLONG - 1)) /* 0x80000000UL */
 
#define SPECMASK   ((UWORD)1 << (BITSINWORD - 1)) /* 0x8000U */
 
#define WILDMASK   ((UWORD)1 << (BITSINWORD - 2)) /* 0x4000U */
 
#define WORDMASK   ((ULONG)FULLMAX - 1) /* 0x0000FFFFUL */
 
#define AWORDMASK   (WORDMASK << BITSINWORD) /* 0xFFFF0000UL */
 
#define FULLMAX   ((LONG)1 << BITSINWORD) /* 0x00010000L */
 
#define MAXPOSITIVE   ((LONG)(TOPBITONLY - 1)) /* 0x00007FFFL */
 
#define MAXLONG   ((LONG)(TOPLONGBITONLY - 1)) /* 0x7FFFFFFFL */
 
#define MAXPOSITIVE2   (MAXPOSITIVE / 2) /* 0x00003FFFL */
 
#define MAXPOSITIVE4   (MAXPOSITIVE / 4) /* 0x00001FFFL */
 
#define alignof(type)   offsetof(struct { char c_; type x_; }, x_)
 
#define PADDUMMY(type, size)   UBYTE d_u_m_m_y[alignof(type) - ((size) & (alignof(type) - 1))]
 
#define PADPOSITION(ptr_, long_, int_, word_, byte_)
 
#define PADPOINTER(long_, int_, word_, byte_)
 
#define PADLONG(int_, word_, byte_)
 
#define PADINT(word_, byte_)
 
#define PADWORD(byte_)
 
#define WITHSORTBOTS
 
#define FILES   FILE
 
#define Uopen(x, y)   fopen(x,y)
 
#define Uflush(x)   fflush(x)
 
#define Uclose(x)   fclose(x)
 
#define Uread(x, y, z, u)   fread(x,y,z,u)
 
#define Uwrite(x, y, z, u)   fwrite(x,y,z,u)
 
#define Usetbuf(x, y)   setbuf(x,y)
 
#define Useek(x, y, z)   fseek(x,y,z)
 
#define Utell(x)   ftell(x)
 
#define Ugetpos(x, y)   fgetpos(x,y)
 
#define Usetpos(x, y)   fsetpos(x,y)
 
#define Usync(x)   fflush(x)
 
#define Utruncate(x)   _chsize(_fileno(x),0)
 
#define Ustdout   stdout
 
#define MAX_OPEN_FILES   FOPEN_MAX
 
#define bzero(b, len)   (memset((b), 0, (len)), (void)0)
 
#define GetPID()   ((LONG)GetCurrentProcessId())
 

Typedefs

typedef void VOID
 
typedef signed char SBYTE
 
typedef unsigned char UBYTE
 
typedef unsigned int UINT
 
typedef ULONG RLONG
 
typedef INT64 MLONG
 

Functions

 STATIC_ASSERT (sizeof(WORD)*8==BITSINWORD)
 
 STATIC_ASSERT (sizeof(LONG)*8==BITSINLONG)
 
 STATIC_ASSERT (sizeof(LONG) >=sizeof(int *))
 
 STATIC_ASSERT (sizeof(INT16)==2)
 
 STATIC_ASSERT (sizeof(INT32)==4)
 
 STATIC_ASSERT (sizeof(INT64)==8)
 

Detailed Description

Contains critical defines for the compilation process Also contains the inclusion of all necessary header files. There are also some system dependencies concerning file functions.

Definition in file form3.h.

Macro Definition Documentation

#define PADPOSITION (   ptr_,
  long_,
  int_,
  word_,
  byte_ 
)
Value:
PADDUMMY(off_t, \
+ sizeof(int *) * (ptr_) \
+ sizeof(LONG) * (long_) \
+ sizeof(int) * (int_) \
+ sizeof(WORD) * (word_) \
+ sizeof(UBYTE) * (byte_) \
)

Definition at line 381 of file form3.h.

#define PADPOINTER (   long_,
  int_,
  word_,
  byte_ 
)
Value:
PADDUMMY(int *, \
+ sizeof(LONG) * (long_) \
+ sizeof(int) * (int_) \
+ sizeof(WORD) * (word_) \
+ sizeof(UBYTE) * (byte_) \
)

Definition at line 389 of file form3.h.

#define PADLONG (   int_,
  word_,
  byte_ 
)
Value:
PADDUMMY(LONG, \
+ sizeof(int) * (int_) \
+ sizeof(WORD) * (word_) \
+ sizeof(UBYTE) * (byte_) \
)

Definition at line 396 of file form3.h.

#define PADINT (   word_,
  byte_ 
)
Value:
PADDUMMY(int, \
+ sizeof(WORD) * (word_) \
+ sizeof(UBYTE) * (byte_) \
)

Definition at line 402 of file form3.h.

#define PADWORD (   byte_)
Value:
PADDUMMY(WORD, \
+ sizeof(UBYTE) * (byte_) \
)

Definition at line 407 of file form3.h.