mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 18:02:25 +00:00
* Deduplicate common constants into OPM and do some source format tidying. * Fix postpush buildall script to force checkout of updated buildall. * Show enlistment branch in makefiles * Support non-printables in string literals and tidy case alignment and constant literals. * Common code for MIN and MAX of integer types. * Common code for SInt/Int/LInt in ConstOp parameter preparation. * Common code for SInt/Int/LInt in Op parameter preparation. * Refactor SetIntType to work with byte size directly. Prepare to revert my incorrect VAL changes. * Original meaning of VAL restored. Many library files disabled until use of VAL in 64 bits fixed. * Make Reals.Mod independent of INTEGER size and add reals tests. * Implement fraction, IsInfinity and IsNaN in oocLowReal.Mod. * OPB little simplifications and ShorterSize/LongerSize functions. * Add test for alignment computability * Replace alignment constants with calculated alignment. * typ.size aware OPV.Convert * Add SYSTEM_INT64 and make tests name independent. * Remove SYSTEM.H includes (string.h and stdint.h). * Replace uses of uintptr_t and size_t with SYSTEM_ADDRESS. * Sad hack to make FreeBSD and OpenBSD happy with memcpy declaration. * Detect 64 bit on FreeBSD, and size_t defined on OpenBSD. * %zd not supportd by mingw, cast strnlen return to int. * Add debug for intermittent failure only on OpenBSD. * Add textTexts as a confidence test and tidy up a couple of other tests. * Update binary test process.
55 lines
1.2 KiB
C
55 lines
1.2 KiB
C
/* voc 1.95 [2016/08/23] for gcc LP64 on cygwin xtspkaSfF */
|
|
|
|
#ifndef Modules__h
|
|
#define Modules__h
|
|
|
|
#define LARGE
|
|
#include "SYSTEM.h"
|
|
|
|
typedef
|
|
struct Modules_CmdDesc *Modules_Cmd;
|
|
|
|
typedef
|
|
void (*Modules_Command)(void);
|
|
|
|
typedef
|
|
struct Modules_CmdDesc {
|
|
Modules_Cmd next;
|
|
CHAR name[24];
|
|
Modules_Command cmd;
|
|
} Modules_CmdDesc;
|
|
|
|
typedef
|
|
struct Modules_ModuleDesc *Modules_Module;
|
|
|
|
typedef
|
|
CHAR Modules_ModuleName[20];
|
|
|
|
typedef
|
|
struct Modules_ModuleDesc {
|
|
Modules_Module next;
|
|
Modules_ModuleName name;
|
|
LONGINT refcnt;
|
|
Modules_Cmd cmds;
|
|
LONGINT types;
|
|
void (*enumPtrs)(void(*)(LONGINT));
|
|
char _prvt0[16];
|
|
} Modules_ModuleDesc;
|
|
|
|
|
|
import INTEGER Modules_res;
|
|
import CHAR Modules_resMsg[256];
|
|
import Modules_ModuleName Modules_imported, Modules_importing;
|
|
|
|
import LONGINT *Modules_ModuleDesc__typ;
|
|
import LONGINT *Modules_CmdDesc__typ;
|
|
|
|
import void Modules_Free (CHAR *name, LONGINT name__len, BOOLEAN all);
|
|
import Modules_Command Modules_ThisCommand (Modules_Module mod, CHAR *name, LONGINT name__len);
|
|
import Modules_Module Modules_ThisMod (CHAR *name, LONGINT name__len);
|
|
import void *Modules__init(void);
|
|
|
|
#define Modules_modules() (Modules_Module)Heap_modules
|
|
#define Modules_setmodules(m) Heap_modules = m
|
|
|
|
#endif
|