Initial revision
This commit is contained in:
35
lib/h/em_abs.h
Executable file
35
lib/h/em_abs.h
Executable file
@@ -0,0 +1,35 @@
|
||||
/* $Header$ */
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
#define LINO_AD 0
|
||||
#define FILN_AD 4
|
||||
|
||||
#define LINO (*(int *)(_hol0()+LINO_AD))
|
||||
#define FILN (*(char **)(_hol0()+FILN_AD))
|
||||
|
||||
#define EARRAY 0
|
||||
#define ERANGE 1
|
||||
#define ESET 2
|
||||
#define EIOVFL 3
|
||||
#define EFOVFL 4
|
||||
#define EFUNFL 5
|
||||
#define EIDIVZ 6
|
||||
#define EFDIVZ 7
|
||||
#define EIUND 8
|
||||
#define EFUND 9
|
||||
#define ECONV 10
|
||||
|
||||
#define ESTACK 16
|
||||
#define EHEAP 17
|
||||
#define EILLINS 18
|
||||
#define EODDZ 19
|
||||
#define ECASE 20
|
||||
#define EMEMFLT 21
|
||||
#define EBADPTR 22
|
||||
#define EBADPC 23
|
||||
#define EBADLAE 24
|
||||
#define EBADMON 25
|
||||
#define EBADLIN 26
|
||||
#define EBADGTO 27
|
||||
16
lib/h/m2_traps.h
Executable file
16
lib/h/m2_traps.h
Executable file
@@ -0,0 +1,16 @@
|
||||
/* $Header$ */
|
||||
/*
|
||||
* (c) copyright 1990 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
|
||||
/* Modula-2 runtime errors */
|
||||
|
||||
#define M2_TOOLARGE 64 /* stack of process too large */
|
||||
#define M2_TOOMANY 65 /* too many nested traps & handlers */
|
||||
#define M2_NORESULT 66 /* no RETURN from procedure function */
|
||||
#define M2_UOVFL 67 /* cardinal overflow */
|
||||
#define M2_FORCH 68 /* FOR-loop control variable changed */
|
||||
#define M2_UUVFL 69 /* cardinal underflow */
|
||||
#define M2_INTERNAL 70 /* internal error, should not happen */
|
||||
#define M2_UNIXSIG 71 /* unix signal */
|
||||
29
lib/h/pc_err.h
Executable file
29
lib/h/pc_err.h
Executable file
@@ -0,0 +1,29 @@
|
||||
/* $Header$ */
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
#define EARGC 64
|
||||
#define EEXP 65
|
||||
#define ELOG 66
|
||||
#define ESQT 67
|
||||
#define EASS 68
|
||||
#define EPACK 69
|
||||
#define EUNPACK 70
|
||||
#define EMOD 71
|
||||
#define EBADF 72
|
||||
#define EFREE 73
|
||||
#define EFUNASS 74
|
||||
#define EWIDTH 75
|
||||
|
||||
#define EWRITEF 96
|
||||
#define EREADF 97
|
||||
#define EEOF 98
|
||||
#define EFTRUNC 99
|
||||
#define ERESET 100
|
||||
#define EREWR 101
|
||||
#define ECLOSE 102
|
||||
#define EREAD 103
|
||||
#define EWRITE 104
|
||||
#define EDIGIT 105
|
||||
#define EASCII 106
|
||||
24
lib/h/pc_file.h
Executable file
24
lib/h/pc_file.h
Executable file
@@ -0,0 +1,24 @@
|
||||
/* $Header$ */
|
||||
/*
|
||||
* (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
|
||||
* See the copyright notice in the ACK home directory, in the file "Copyright".
|
||||
*/
|
||||
#define WRBIT 0100000
|
||||
#define TXTBIT 040000
|
||||
#define EOFBIT 020000
|
||||
#define ELNBIT 010000
|
||||
#define WINDOW 04000
|
||||
#define MAGIC 0252
|
||||
|
||||
#define PC_BUFLEN 1024
|
||||
|
||||
struct file {
|
||||
char *ptr;
|
||||
unsigned flags;
|
||||
char *fname;
|
||||
int ufd;
|
||||
int size;
|
||||
int count;
|
||||
int buflen;
|
||||
char bufadr[PC_BUFLEN];
|
||||
};
|
||||
42
lib/h/pc_math.h
Executable file
42
lib/h/pc_math.h
Executable file
@@ -0,0 +1,42 @@
|
||||
/*
|
||||
* localmath.h - This header is used by the mathematical library.
|
||||
*/
|
||||
/* $Header$ */
|
||||
|
||||
/* some constants (Hart & Cheney) */
|
||||
#define M_PI 3.14159265358979323846264338327950288
|
||||
#define M_2PI 6.28318530717958647692528676655900576
|
||||
#define M_3PI_4 2.35619449019234492884698253745962716
|
||||
#define M_PI_2 1.57079632679489661923132169163975144
|
||||
#define M_3PI_8 1.17809724509617246442349126872981358
|
||||
#define M_PI_4 0.78539816339744830961566084581987572
|
||||
#define M_PI_8 0.39269908169872415480783042290993786
|
||||
#define M_1_PI 0.31830988618379067153776752674502872
|
||||
#define M_2_PI 0.63661977236758134307553505349005744
|
||||
#define M_4_PI 1.27323954473516268615107010698011488
|
||||
#define M_E 2.71828182845904523536028747135266250
|
||||
#define M_LOG2E 1.44269504088896340735992468100189213
|
||||
#define M_LOG10E 0.43429448190325182765112891891660508
|
||||
#define M_LN2 0.69314718055994530941723212145817657
|
||||
#define M_LN10 2.30258509299404568401799145468436421
|
||||
#define M_SQRT2 1.41421356237309504880168872420969808
|
||||
#define M_1_SQRT2 0.70710678118654752440084436210484904
|
||||
#define M_EULER 0.57721566490153286060651209008240243
|
||||
|
||||
/* macros for constructing polynomials */
|
||||
#define POLYNOM1(x, a) ((a)[1]*(x)+(a)[0])
|
||||
#define POLYNOM2(x, a) (POLYNOM1((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM3(x, a) (POLYNOM2((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM4(x, a) (POLYNOM3((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM5(x, a) (POLYNOM4((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM6(x, a) (POLYNOM5((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM7(x, a) (POLYNOM6((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM8(x, a) (POLYNOM7((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM9(x, a) (POLYNOM8((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM10(x, a) (POLYNOM9((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM11(x, a) (POLYNOM10((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM12(x, a) (POLYNOM11((x),(a)+1)*(x)+(a)[0])
|
||||
#define POLYNOM13(x, a) (POLYNOM12((x),(a)+1)*(x)+(a)[0])
|
||||
|
||||
#define M_LN_MAX_D (M_LN2 * DBL_MAX_EXP)
|
||||
#define M_LN_MIN_D (M_LN2 * (DBL_MIN_EXP - 1))
|
||||
Reference in New Issue
Block a user