FORM v5.0.0-35-g6318119
Macros | Typedefs | Functions
form3.h File Reference
#include <stdint.h>
#include <stddef.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <stdarg.h>
#include <time.h>
#include "ftypes.h"
#include "fsizes.h"
#include "minos.h"
#include "structs.h"
#include "declare.h"
#include "variable.h"
Include dependency graph for form3.h:

Go to the source code of this file.

Macros

#define MAJORVERSION   5
 
#define MINORVERSION   0
 
#define PATCHVERSION   0
 
#define PRODUCTIONDATE   "27-jan-2026"
 
#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 BITSINWORD   32
 
#define BITSINLONG   64
 
#define WORD_MIN_VALUE   INT32_MIN
 
#define WORD_MAX_VALUE   INT32_MAX
 
#define LONG_MIN_VALUE   INT64_MIN
 
#define LONG_MAX_VALUE   INT64_MAX
 
#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 form_alignof(type)   offsetof(struct { char c_; type x_; }, x_)
 
#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 int32_t WORD
 
typedef int64_t LONG
 
typedef uint32_t UWORD
 
typedef uint64_t ULONG
 
typedef signed char SBYTE
 
typedef unsigned char UBYTE
 
typedef unsigned int UINT
 
typedef ULONG RLONG
 
typedef int64_t MLONG
 
typedef char BOOL
 

Functions

 STATIC_ASSERT (sizeof(WORD) *8==BITSINWORD)
 
 STATIC_ASSERT (sizeof(LONG) *8==BITSINLONG)
 
 STATIC_ASSERT (sizeof(LONG) >=sizeof(int *))
 
 STATIC_ASSERT (sizeof(int *) >=sizeof(int))
 
 STATIC_ASSERT (sizeof(int) >=sizeof(WORD))
 
 STATIC_ASSERT (sizeof(WORD) >=sizeof(char))
 
 STATIC_ASSERT (sizeof(char)==1)
 
 STATIC_ASSERT (sizeof(off_t) >=sizeof(LONG))
 

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

◆ MAJORVERSION

#define MAJORVERSION   5

Definition at line 47 of file form3.h.

◆ MINORVERSION

#define MINORVERSION   0

Definition at line 48 of file form3.h.

◆ PATCHVERSION

#define PATCHVERSION   0

Definition at line 49 of file form3.h.

◆ PRODUCTIONDATE

#define PRODUCTIONDATE   "27-jan-2026"

Definition at line 54 of file form3.h.

◆ inline

#define inline

Definition at line 121 of file form3.h.

◆ NDEBUG

#define NDEBUG

Definition at line 148 of file form3.h.

◆ STATIC_ASSERT

#define STATIC_ASSERT (   condition)    STATIC_ASSERT__1(condition,__LINE__)

Definition at line 159 of file form3.h.

◆ STATIC_ASSERT__1

#define STATIC_ASSERT__1 (   X,
 
)    STATIC_ASSERT__2(X,L)

Definition at line 160 of file form3.h.

◆ STATIC_ASSERT__2

#define STATIC_ASSERT__2 (   X,
 
)    STATIC_ASSERT__3(X,L)

Definition at line 161 of file form3.h.

◆ STATIC_ASSERT__3

#define STATIC_ASSERT__3 (   X,
 
)     typedef char static_assertion_failed_##L[(!!(X))*2-1]

Definition at line 162 of file form3.h.

◆ BITSINWORD

#define BITSINWORD   32

Definition at line 201 of file form3.h.

◆ BITSINLONG

#define BITSINLONG   64

Definition at line 202 of file form3.h.

◆ WORD_MIN_VALUE

#define WORD_MIN_VALUE   INT32_MIN

Definition at line 203 of file form3.h.

◆ WORD_MAX_VALUE

#define WORD_MAX_VALUE   INT32_MAX

Definition at line 204 of file form3.h.

◆ LONG_MIN_VALUE

#define LONG_MIN_VALUE   INT64_MIN

Definition at line 205 of file form3.h.

◆ LONG_MAX_VALUE

#define LONG_MAX_VALUE   INT64_MAX

Definition at line 206 of file form3.h.

◆ TOPBITONLY

#define TOPBITONLY   ((ULONG)1 << (BITSINWORD - 1)) /* 0x00008000UL */

Definition at line 243 of file form3.h.

◆ TOPLONGBITONLY

#define TOPLONGBITONLY   ((ULONG)1 << (BITSINLONG - 1)) /* 0x80000000UL */

Definition at line 244 of file form3.h.

◆ SPECMASK

#define SPECMASK   ((UWORD)1 << (BITSINWORD - 1)) /* 0x8000U */

Definition at line 245 of file form3.h.

◆ WILDMASK

#define WILDMASK   ((UWORD)1 << (BITSINWORD - 2)) /* 0x4000U */

Definition at line 246 of file form3.h.

◆ WORDMASK

#define WORDMASK   ((ULONG)FULLMAX - 1) /* 0x0000FFFFUL */

Definition at line 247 of file form3.h.

◆ AWORDMASK

#define AWORDMASK   (WORDMASK << BITSINWORD) /* 0xFFFF0000UL */

Definition at line 248 of file form3.h.

◆ FULLMAX

#define FULLMAX   ((LONG)1 << BITSINWORD) /* 0x00010000L */

Definition at line 249 of file form3.h.

◆ MAXPOSITIVE

#define MAXPOSITIVE   ((LONG)(TOPBITONLY - 1)) /* 0x00007FFFL */

Definition at line 250 of file form3.h.

◆ MAXLONG

#define MAXLONG   ((LONG)(TOPLONGBITONLY - 1)) /* 0x7FFFFFFFL */

Definition at line 251 of file form3.h.

◆ MAXPOSITIVE2

#define MAXPOSITIVE2   (MAXPOSITIVE / 2) /* 0x00003FFFL */

Definition at line 252 of file form3.h.

◆ MAXPOSITIVE4

#define MAXPOSITIVE4   (MAXPOSITIVE / 4) /* 0x00001FFFL */

Definition at line 253 of file form3.h.

◆ form_alignof

#define form_alignof (   type)    offsetof(struct { char c_; type x_; }, x_)

Definition at line 269 of file form3.h.

◆ WITHSORTBOTS

#define WITHSORTBOTS

Definition at line 289 of file form3.h.

◆ FILES

#define FILES   FILE

Definition at line 370 of file form3.h.

◆ Uopen

#define Uopen (   x,
 
)    fopen(x,y)

Definition at line 371 of file form3.h.

◆ Uflush

#define Uflush (   x)    fflush(x)

Definition at line 372 of file form3.h.

◆ Uclose

#define Uclose (   x)    fclose(x)

Definition at line 373 of file form3.h.

◆ Uread

#define Uread (   x,
  y,
  z,
 
)    fread(x,y,z,u)

Definition at line 374 of file form3.h.

◆ Uwrite

#define Uwrite (   x,
  y,
  z,
 
)    fwrite(x,y,z,u)

Definition at line 375 of file form3.h.

◆ Usetbuf

#define Usetbuf (   x,
 
)    setbuf(x,y)

Definition at line 376 of file form3.h.

◆ Useek

#define Useek (   x,
  y,
 
)    fseek(x,y,z)

Definition at line 377 of file form3.h.

◆ Utell

#define Utell (   x)    ftell(x)

Definition at line 378 of file form3.h.

◆ Ugetpos

#define Ugetpos (   x,
 
)    fgetpos(x,y)

Definition at line 379 of file form3.h.

◆ Usetpos

#define Usetpos (   x,
 
)    fsetpos(x,y)

Definition at line 380 of file form3.h.

◆ Usync

#define Usync (   x)    fflush(x)

Definition at line 381 of file form3.h.

◆ Utruncate

#define Utruncate (   x)    _chsize(_fileno(x),0)

Definition at line 382 of file form3.h.

◆ Ustdout

#define Ustdout   stdout

Definition at line 383 of file form3.h.

◆ MAX_OPEN_FILES

#define MAX_OPEN_FILES   FOPEN_MAX

Definition at line 384 of file form3.h.

◆ bzero

#define bzero (   b,
  len 
)    (memset((b), 0, (len)), (void)0)

Definition at line 385 of file form3.h.

◆ GetPID

#define GetPID ( )    ((LONG)GetCurrentProcessId())

Definition at line 386 of file form3.h.

Typedef Documentation

◆ WORD

typedef int32_t WORD

Definition at line 197 of file form3.h.

◆ LONG

typedef int64_t LONG

Definition at line 198 of file form3.h.

◆ UWORD

typedef uint32_t UWORD

Definition at line 199 of file form3.h.

◆ ULONG

typedef uint64_t ULONG

Definition at line 200 of file form3.h.

◆ SBYTE

typedef signed char SBYTE

Definition at line 232 of file form3.h.

◆ UBYTE

typedef unsigned char UBYTE

Definition at line 233 of file form3.h.

◆ UINT

typedef unsigned int UINT

Definition at line 234 of file form3.h.

◆ RLONG

typedef ULONG RLONG

Definition at line 235 of file form3.h.

◆ MLONG

typedef int64_t MLONG

Definition at line 236 of file form3.h.

◆ BOOL

typedef char BOOL

Definition at line 241 of file form3.h.