mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 20:22:24 +00:00
Update bootstrap sources.
This commit is contained in:
parent
57cd40aa9d
commit
f784a41f8f
201 changed files with 302 additions and 282 deletions
|
|
@ -31,11 +31,11 @@ default libraries complying with the Oakwood Guidelines for Oberon-2 compilers.
|
||||||
|
|
||||||
| Platform | Packages |
|
| Platform | Packages |
|
||||||
| --------- | ------------ |
|
| --------- | ------------ |
|
||||||
| Debian/Ubuntu/Mint ... | apt-get install git |
|
| Debian/Ubuntu/Mint ... | `apt-get install git` |
|
||||||
| Fedora/RHEL/CentOS ... | yum install git gcc glibc-static |
|
| Fedora/RHEL/CentOS ... | `yum install git gcc glibc-static` |
|
||||||
| FreeBSD/OpenBSD/NetBSD | pkg install git |
|
| FreeBSD/OpenBSD/NetBSD | `pkg install git` |
|
||||||
| Cygwin | use setup-x86[_x64] to add packages git, make and gcc-core |
|
| Cygwin | use setup-x86[_x64] to add packages git, make and gcc-core |
|
||||||
| Darwin | run 'git' at the command line and accept the prompt to install it. |
|
| Darwin | type 'git' at the command line and accept the prompt to install it. |
|
||||||
|
|
||||||
More details, including for MingW and MS C, in [Installation](/doc/Installation.md).
|
More details, including for MingW and MS C, in [Installation](/doc/Installation.md).
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
export CHAR Configuration_versionLong[41];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,5 +13,6 @@ export void *Configuration__init(void)
|
||||||
__DEFMOD;
|
__DEFMOD;
|
||||||
__REGMOD("Configuration", 0);
|
__REGMOD("Configuration", 0);
|
||||||
/* BEGIN */
|
/* BEGIN */
|
||||||
|
__MOVE("1.95 [2016/07/11] for gcc LP64 on cygwin", Configuration_versionLong, 41);
|
||||||
__ENDMOD;
|
__ENDMOD;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Configuration__h
|
#ifndef Configuration__h
|
||||||
#define Configuration__h
|
#define Configuration__h
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
import CHAR Configuration_versionLong[41];
|
||||||
|
|
||||||
|
|
||||||
import void *Configuration__init(void);
|
import void *Configuration__init(void);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Console__h
|
#ifndef Console__h
|
||||||
#define Console__h
|
#define Console__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
|
|
||||||
#ifndef Files__h
|
#ifndef Files__h
|
||||||
#define Files__h
|
#define Files__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tskSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tskSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
struct Heap__1 {
|
struct Heap__1 {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tskSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tskSfF */
|
||||||
|
|
||||||
#ifndef Heap__h
|
#ifndef Heap__h
|
||||||
#define Heap__h
|
#define Heap__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
#include "Heap.h"
|
#include "Heap.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Modules__h
|
#ifndef Modules__h
|
||||||
#define Modules__h
|
#define Modules__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
#include "OPS.h"
|
#include "OPS.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPB__h
|
#ifndef OPB__h
|
||||||
#define OPB__h
|
#define OPB__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
@ -1241,7 +1241,7 @@ static void OPC_GenHeaderMsg (void)
|
||||||
OPM_WriteString((CHAR*)"/*", (LONGINT)3);
|
OPM_WriteString((CHAR*)"/*", (LONGINT)3);
|
||||||
OPM_WriteString((CHAR*)" voc ", (LONGINT)6);
|
OPM_WriteString((CHAR*)" voc ", (LONGINT)6);
|
||||||
OPM_Write(' ');
|
OPM_Write(' ');
|
||||||
OPM_WriteString((CHAR*)"1.95 [2016/06/30] for gcc LP64 on cygwin", (LONGINT)41);
|
OPM_WriteString(Configuration_versionLong, ((LONGINT)(41)));
|
||||||
OPM_Write(' ');
|
OPM_Write(' ');
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i <= 31) {
|
while (i <= 31) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPC__h
|
#ifndef OPC__h
|
||||||
#define OPC__h
|
#define OPC__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
@ -198,7 +198,7 @@ BOOLEAN OPM_OpenPar (void)
|
||||||
if (Platform_ArgCount == 1) {
|
if (Platform_ArgCount == 1) {
|
||||||
OPM_LogWLn();
|
OPM_LogWLn();
|
||||||
OPM_LogWStr((CHAR*)"Vishap Oberon-2 compiler v", (LONGINT)27);
|
OPM_LogWStr((CHAR*)"Vishap Oberon-2 compiler v", (LONGINT)27);
|
||||||
OPM_LogWStr((CHAR*)"1.95 [2016/06/30] for gcc LP64 on cygwin", (LONGINT)41);
|
OPM_LogWStr(Configuration_versionLong, ((LONGINT)(41)));
|
||||||
OPM_LogW('.');
|
OPM_LogW('.');
|
||||||
OPM_LogWLn();
|
OPM_LogWLn();
|
||||||
OPM_LogWStr((CHAR*)"Based on Ofront by Software Templ OEG, continued by Norayr Chilingarian and others.", (LONGINT)84);
|
OPM_LogWStr((CHAR*)"Based on Ofront by Software Templ OEG, continued by Norayr Chilingarian and others.", (LONGINT)84);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPM__h
|
#ifndef OPM__h
|
||||||
#define OPM__h
|
#define OPM__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPB.h"
|
#include "OPB.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPP__h
|
#ifndef OPP__h
|
||||||
#define OPP__h
|
#define OPP__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
||||||
|
|
@ -127,7 +127,7 @@ static INTEGER Ord__7 (CHAR ch, BOOLEAN hex)
|
||||||
|
|
||||||
static void OPS_Number (void)
|
static void OPS_Number (void)
|
||||||
{
|
{
|
||||||
INTEGER i, m, n, d, e;
|
INTEGER i, m, n, d, e, maxHdig;
|
||||||
CHAR dig[24];
|
CHAR dig[24];
|
||||||
LONGREAL f;
|
LONGREAL f;
|
||||||
CHAR expCh;
|
CHAR expCh;
|
||||||
|
|
@ -182,8 +182,9 @@ static void OPS_Number (void)
|
||||||
} else if (OPS_ch == 'H') {
|
} else if (OPS_ch == 'H') {
|
||||||
OPM_Get(&OPS_ch);
|
OPM_Get(&OPS_ch);
|
||||||
OPS_numtyp = 2;
|
OPS_numtyp = 2;
|
||||||
if (n <= 8) {
|
maxHdig = 8;
|
||||||
if ((n == 8 && dig[0] > '7')) {
|
if (n <= maxHdig) {
|
||||||
|
if ((n == maxHdig && dig[0] > '7')) {
|
||||||
OPS_intval = -1;
|
OPS_intval = -1;
|
||||||
}
|
}
|
||||||
while (i < n) {
|
while (i < n) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
|
|
||||||
#ifndef OPS__h
|
#ifndef OPS__h
|
||||||
#define OPS__h
|
#define OPS__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
#include "OPS.h"
|
#include "OPS.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPT__h
|
#ifndef OPT__h
|
||||||
#define OPT__h
|
#define OPT__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPC.h"
|
#include "OPC.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPV__h
|
#ifndef OPV__h
|
||||||
#define OPV__h
|
#define OPV__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Platform__h
|
#ifndef Platform__h
|
||||||
#define Platform__h
|
#define Platform__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Reals__h
|
#ifndef Reals__h
|
||||||
#define Reals__h
|
#define Reals__h
|
||||||
|
|
|
||||||
|
|
@ -126,21 +126,21 @@ static int __str_cmp(CHAR *x, CHAR *y){
|
||||||
|
|
||||||
#define __GET(a, x, t) x= *(t*)(uintptr_t)(a)
|
#define __GET(a, x, t) x= *(t*)(uintptr_t)(a)
|
||||||
#define __PUT(a, x, t) *(t*)(uintptr_t)(a)=x
|
#define __PUT(a, x, t) *(t*)(uintptr_t)(a)=x
|
||||||
|
|
||||||
#define __LSHL(x, n, t) ((t)((unsigned t)(x)<<(n)))
|
#define __LSHL(x, n, t) ((t)((unsigned t)(x)<<(n)))
|
||||||
#define __LSHR(x, n, t) ((t)((unsigned t)(x)>>(n)))
|
#define __LSHR(x, n, t) ((t)((unsigned t)(x)>>(n)))
|
||||||
#define __LSH(x, n, t) ((n)>=0? __LSHL(x, n, t): __LSHR(x, -(n), t))
|
#define __LSH(x, n, t) ((n)>=0? __LSHL(x, n, t): __LSHR(x, -(n), t))
|
||||||
#define __ROTL(x, n, t) ((t)((unsigned t)(x)<<(n)|(unsigned t)(x)>>(8*sizeof(t)-(n))))
|
|
||||||
#define __ROTR(x, n, t) ((t)((unsigned t)(x)>>(n)|(unsigned t)(x)<<(8*sizeof(t)-(n))))
|
|
||||||
#define __LSHR(x, n, t) ((t)((unsigned t)(x)>>(n)))
|
|
||||||
#define __LSH(x, n, t) ((n)>=0? __LSHL(x, n, t): __LSHR(x, -(n), t))
|
|
||||||
#define __ROTL(x, n, t) ((t)((unsigned t)(x)<<(n)|(unsigned t)(x)>>(8*sizeof(t)-(n))))
|
|
||||||
#define __ROTR(x, n, t) ((t)((unsigned t)(x)>>(n)|(unsigned t)(x)<<(8*sizeof(t)-(n))))
|
|
||||||
#define __ROT(x, n, t) ((n)>=0? __ROTL(x, n, t): __ROTR(x, -(n), t))
|
|
||||||
#define __BIT(x, n) (*(unsigned LONGINT*)(x)>>(n)&1)
|
|
||||||
#define __MOVE(s, d, n) memcpy((char*)(uintptr_t)(d),(char*)(uintptr_t)(s),n)
|
|
||||||
#define __ASHL(x, n) ((LONGINT)(x)<<(n))
|
#define __ASHL(x, n) ((LONGINT)(x)<<(n))
|
||||||
#define __ASHR(x, n) ((LONGINT)(x)>>(n))
|
#define __ASHR(x, n) ((LONGINT)(x)>>(n))
|
||||||
#define __ASH(x, n) ((n)>=0?__ASHL(x,n):__ASHR(x,-(n)))
|
#define __ASH(x, n) ((n)>=0?__ASHL(x,n):__ASHR(x,-(n)))
|
||||||
|
|
||||||
|
#define __ROTL(x, n, t) ((t)((unsigned t)(x)<<(n)|(unsigned t)(x)>>(8*sizeof(t)-(n))))
|
||||||
|
#define __ROTR(x, n, t) ((t)((unsigned t)(x)>>(n)|(unsigned t)(x)<<(8*sizeof(t)-(n))))
|
||||||
|
#define __ROT(x, n, t) ((n)>=0? __ROTL(x, n, t): __ROTR(x, -(n), t))
|
||||||
|
|
||||||
|
#define __BIT(x, n) (*(unsigned LONGINT*)(x)>>(n)&1)
|
||||||
|
#define __MOVE(s, d, n) memcpy((char*)(uintptr_t)(d),(char*)(uintptr_t)(s),n)
|
||||||
#define __ASHF(x, n) SYSTEM_ASH((LONGINT)(x), (LONGINT)(n))
|
#define __ASHF(x, n) SYSTEM_ASH((LONGINT)(x), (LONGINT)(n))
|
||||||
#define __SHORT(x, y) ((int)((unsigned LONGINT)(x)+(y)<(y)+(y)?(x):(__HALT(-8),0)))
|
#define __SHORT(x, y) ((int)((unsigned LONGINT)(x)+(y)<(y)+(y)?(x):(__HALT(-8),0)))
|
||||||
#define __SHORTF(x, y) ((int)(__RF((x)+(y),(y)+(y))-(y)))
|
#define __SHORTF(x, y) ((int)(__RF((x)+(y),(y)+(y))-(y)))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Strings__h
|
#ifndef Strings__h
|
||||||
#define Strings__h
|
#define Strings__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Files.h"
|
#include "Files.h"
|
||||||
#include "Modules.h"
|
#include "Modules.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Texts__h
|
#ifndef Texts__h
|
||||||
#define Texts__h
|
#define Texts__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkamSf */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkamSf */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Heap.h"
|
#include "Heap.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef errors__h
|
#ifndef errors__h
|
||||||
#define errors__h
|
#define errors__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef extTools__h
|
#ifndef extTools__h
|
||||||
#define extTools__h
|
#define extTools__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
#include "Strings.h"
|
#include "Strings.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef vt100__h
|
#ifndef vt100__h
|
||||||
#define vt100__h
|
#define vt100__h
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,8 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
export CHAR Configuration_versionLong[41];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -12,5 +13,6 @@ export void *Configuration__init(void)
|
||||||
__DEFMOD;
|
__DEFMOD;
|
||||||
__REGMOD("Configuration", 0);
|
__REGMOD("Configuration", 0);
|
||||||
/* BEGIN */
|
/* BEGIN */
|
||||||
|
__MOVE("1.95 [2016/07/11] for gcc LP64 on cygwin", Configuration_versionLong, 41);
|
||||||
__ENDMOD;
|
__ENDMOD;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Configuration__h
|
#ifndef Configuration__h
|
||||||
#define Configuration__h
|
#define Configuration__h
|
||||||
|
|
@ -6,6 +6,7 @@
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
import CHAR Configuration_versionLong[41];
|
||||||
|
|
||||||
|
|
||||||
import void *Configuration__init(void);
|
import void *Configuration__init(void);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Console__h
|
#ifndef Console__h
|
||||||
#define Console__h
|
#define Console__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
|
|
||||||
#ifndef Files__h
|
#ifndef Files__h
|
||||||
#define Files__h
|
#define Files__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tskSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tskSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
struct Heap__1 {
|
struct Heap__1 {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tskSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tskSfF */
|
||||||
|
|
||||||
#ifndef Heap__h
|
#ifndef Heap__h
|
||||||
#define Heap__h
|
#define Heap__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
#include "Heap.h"
|
#include "Heap.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Modules__h
|
#ifndef Modules__h
|
||||||
#define Modules__h
|
#define Modules__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
#include "OPS.h"
|
#include "OPS.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPB__h
|
#ifndef OPB__h
|
||||||
#define OPB__h
|
#define OPB__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
@ -1241,7 +1241,7 @@ static void OPC_GenHeaderMsg (void)
|
||||||
OPM_WriteString((CHAR*)"/*", (LONGINT)3);
|
OPM_WriteString((CHAR*)"/*", (LONGINT)3);
|
||||||
OPM_WriteString((CHAR*)" voc ", (LONGINT)6);
|
OPM_WriteString((CHAR*)" voc ", (LONGINT)6);
|
||||||
OPM_Write(' ');
|
OPM_Write(' ');
|
||||||
OPM_WriteString((CHAR*)"1.95 [2016/06/30] for gcc LP64 on cygwin", (LONGINT)41);
|
OPM_WriteString(Configuration_versionLong, ((LONGINT)(41)));
|
||||||
OPM_Write(' ');
|
OPM_Write(' ');
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i <= 31) {
|
while (i <= 31) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPC__h
|
#ifndef OPC__h
|
||||||
#define OPC__h
|
#define OPC__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
@ -198,7 +198,7 @@ BOOLEAN OPM_OpenPar (void)
|
||||||
if (Platform_ArgCount == 1) {
|
if (Platform_ArgCount == 1) {
|
||||||
OPM_LogWLn();
|
OPM_LogWLn();
|
||||||
OPM_LogWStr((CHAR*)"Vishap Oberon-2 compiler v", (LONGINT)27);
|
OPM_LogWStr((CHAR*)"Vishap Oberon-2 compiler v", (LONGINT)27);
|
||||||
OPM_LogWStr((CHAR*)"1.95 [2016/06/30] for gcc LP64 on cygwin", (LONGINT)41);
|
OPM_LogWStr(Configuration_versionLong, ((LONGINT)(41)));
|
||||||
OPM_LogW('.');
|
OPM_LogW('.');
|
||||||
OPM_LogWLn();
|
OPM_LogWLn();
|
||||||
OPM_LogWStr((CHAR*)"Based on Ofront by Software Templ OEG, continued by Norayr Chilingarian and others.", (LONGINT)84);
|
OPM_LogWStr((CHAR*)"Based on Ofront by Software Templ OEG, continued by Norayr Chilingarian and others.", (LONGINT)84);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPM__h
|
#ifndef OPM__h
|
||||||
#define OPM__h
|
#define OPM__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPB.h"
|
#include "OPB.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPP__h
|
#ifndef OPP__h
|
||||||
#define OPP__h
|
#define OPP__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
||||||
|
|
@ -127,7 +127,7 @@ static INTEGER Ord__7 (CHAR ch, BOOLEAN hex)
|
||||||
|
|
||||||
static void OPS_Number (void)
|
static void OPS_Number (void)
|
||||||
{
|
{
|
||||||
INTEGER i, m, n, d, e;
|
INTEGER i, m, n, d, e, maxHdig;
|
||||||
CHAR dig[24];
|
CHAR dig[24];
|
||||||
LONGREAL f;
|
LONGREAL f;
|
||||||
CHAR expCh;
|
CHAR expCh;
|
||||||
|
|
@ -182,8 +182,9 @@ static void OPS_Number (void)
|
||||||
} else if (OPS_ch == 'H') {
|
} else if (OPS_ch == 'H') {
|
||||||
OPM_Get(&OPS_ch);
|
OPM_Get(&OPS_ch);
|
||||||
OPS_numtyp = 2;
|
OPS_numtyp = 2;
|
||||||
if (n <= 8) {
|
maxHdig = 8;
|
||||||
if ((n == 8 && dig[0] > '7')) {
|
if (n <= maxHdig) {
|
||||||
|
if ((n == maxHdig && dig[0] > '7')) {
|
||||||
OPS_intval = -1;
|
OPS_intval = -1;
|
||||||
}
|
}
|
||||||
while (i < n) {
|
while (i < n) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
|
|
||||||
#ifndef OPS__h
|
#ifndef OPS__h
|
||||||
#define OPS__h
|
#define OPS__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
#include "OPS.h"
|
#include "OPS.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPT__h
|
#ifndef OPT__h
|
||||||
#define OPT__h
|
#define OPT__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPC.h"
|
#include "OPC.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPV__h
|
#ifndef OPV__h
|
||||||
#define OPV__h
|
#define OPV__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Platform__h
|
#ifndef Platform__h
|
||||||
#define Platform__h
|
#define Platform__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Reals__h
|
#ifndef Reals__h
|
||||||
#define Reals__h
|
#define Reals__h
|
||||||
|
|
|
||||||
|
|
@ -126,21 +126,21 @@ static int __str_cmp(CHAR *x, CHAR *y){
|
||||||
|
|
||||||
#define __GET(a, x, t) x= *(t*)(uintptr_t)(a)
|
#define __GET(a, x, t) x= *(t*)(uintptr_t)(a)
|
||||||
#define __PUT(a, x, t) *(t*)(uintptr_t)(a)=x
|
#define __PUT(a, x, t) *(t*)(uintptr_t)(a)=x
|
||||||
|
|
||||||
#define __LSHL(x, n, t) ((t)((unsigned t)(x)<<(n)))
|
#define __LSHL(x, n, t) ((t)((unsigned t)(x)<<(n)))
|
||||||
#define __LSHR(x, n, t) ((t)((unsigned t)(x)>>(n)))
|
#define __LSHR(x, n, t) ((t)((unsigned t)(x)>>(n)))
|
||||||
#define __LSH(x, n, t) ((n)>=0? __LSHL(x, n, t): __LSHR(x, -(n), t))
|
#define __LSH(x, n, t) ((n)>=0? __LSHL(x, n, t): __LSHR(x, -(n), t))
|
||||||
#define __ROTL(x, n, t) ((t)((unsigned t)(x)<<(n)|(unsigned t)(x)>>(8*sizeof(t)-(n))))
|
|
||||||
#define __ROTR(x, n, t) ((t)((unsigned t)(x)>>(n)|(unsigned t)(x)<<(8*sizeof(t)-(n))))
|
|
||||||
#define __LSHR(x, n, t) ((t)((unsigned t)(x)>>(n)))
|
|
||||||
#define __LSH(x, n, t) ((n)>=0? __LSHL(x, n, t): __LSHR(x, -(n), t))
|
|
||||||
#define __ROTL(x, n, t) ((t)((unsigned t)(x)<<(n)|(unsigned t)(x)>>(8*sizeof(t)-(n))))
|
|
||||||
#define __ROTR(x, n, t) ((t)((unsigned t)(x)>>(n)|(unsigned t)(x)<<(8*sizeof(t)-(n))))
|
|
||||||
#define __ROT(x, n, t) ((n)>=0? __ROTL(x, n, t): __ROTR(x, -(n), t))
|
|
||||||
#define __BIT(x, n) (*(unsigned LONGINT*)(x)>>(n)&1)
|
|
||||||
#define __MOVE(s, d, n) memcpy((char*)(uintptr_t)(d),(char*)(uintptr_t)(s),n)
|
|
||||||
#define __ASHL(x, n) ((LONGINT)(x)<<(n))
|
#define __ASHL(x, n) ((LONGINT)(x)<<(n))
|
||||||
#define __ASHR(x, n) ((LONGINT)(x)>>(n))
|
#define __ASHR(x, n) ((LONGINT)(x)>>(n))
|
||||||
#define __ASH(x, n) ((n)>=0?__ASHL(x,n):__ASHR(x,-(n)))
|
#define __ASH(x, n) ((n)>=0?__ASHL(x,n):__ASHR(x,-(n)))
|
||||||
|
|
||||||
|
#define __ROTL(x, n, t) ((t)((unsigned t)(x)<<(n)|(unsigned t)(x)>>(8*sizeof(t)-(n))))
|
||||||
|
#define __ROTR(x, n, t) ((t)((unsigned t)(x)>>(n)|(unsigned t)(x)<<(8*sizeof(t)-(n))))
|
||||||
|
#define __ROT(x, n, t) ((n)>=0? __ROTL(x, n, t): __ROTR(x, -(n), t))
|
||||||
|
|
||||||
|
#define __BIT(x, n) (*(unsigned LONGINT*)(x)>>(n)&1)
|
||||||
|
#define __MOVE(s, d, n) memcpy((char*)(uintptr_t)(d),(char*)(uintptr_t)(s),n)
|
||||||
#define __ASHF(x, n) SYSTEM_ASH((LONGINT)(x), (LONGINT)(n))
|
#define __ASHF(x, n) SYSTEM_ASH((LONGINT)(x), (LONGINT)(n))
|
||||||
#define __SHORT(x, y) ((int)((unsigned LONGINT)(x)+(y)<(y)+(y)?(x):(__HALT(-8),0)))
|
#define __SHORT(x, y) ((int)((unsigned LONGINT)(x)+(y)<(y)+(y)?(x):(__HALT(-8),0)))
|
||||||
#define __SHORTF(x, y) ((int)(__RF((x)+(y),(y)+(y))-(y)))
|
#define __SHORTF(x, y) ((int)(__RF((x)+(y),(y)+(y))-(y)))
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Strings__h
|
#ifndef Strings__h
|
||||||
#define Strings__h
|
#define Strings__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Files.h"
|
#include "Files.h"
|
||||||
#include "Modules.h"
|
#include "Modules.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Texts__h
|
#ifndef Texts__h
|
||||||
#define Texts__h
|
#define Texts__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkamSf */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkamSf */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Heap.h"
|
#include "Heap.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef errors__h
|
#ifndef errors__h
|
||||||
#define errors__h
|
#define errors__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef extTools__h
|
#ifndef extTools__h
|
||||||
#define extTools__h
|
#define extTools__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
#include "Strings.h"
|
#include "Strings.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef vt100__h
|
#ifndef vt100__h
|
||||||
#define vt100__h
|
#define vt100__h
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,9 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
export CHAR Configuration_versionLong[41];
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -13,5 +14,6 @@ export void *Configuration__init(void)
|
||||||
__DEFMOD;
|
__DEFMOD;
|
||||||
__REGMOD("Configuration", 0);
|
__REGMOD("Configuration", 0);
|
||||||
/* BEGIN */
|
/* BEGIN */
|
||||||
|
__MOVE("1.95 [2016/07/11] for gcc LP64 on cygwin", Configuration_versionLong, 41);
|
||||||
__ENDMOD;
|
__ENDMOD;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Configuration__h
|
#ifndef Configuration__h
|
||||||
#define Configuration__h
|
#define Configuration__h
|
||||||
|
|
@ -7,6 +7,7 @@
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
||||||
|
import CHAR Configuration_versionLong[41];
|
||||||
|
|
||||||
|
|
||||||
import void *Configuration__init(void);
|
import void *Configuration__init(void);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Platform.h"
|
#include "Platform.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Console__h
|
#ifndef Console__h
|
||||||
#define Console__h
|
#define Console__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
|
|
||||||
#ifndef Files__h
|
#ifndef Files__h
|
||||||
#define Files__h
|
#define Files__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tskSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tskSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tskSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tskSfF */
|
||||||
|
|
||||||
#ifndef Heap__h
|
#ifndef Heap__h
|
||||||
#define Heap__h
|
#define Heap__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Console.h"
|
#include "Console.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef Modules__h
|
#ifndef Modules__h
|
||||||
#define Modules__h
|
#define Modules__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPB__h
|
#ifndef OPB__h
|
||||||
#define OPB__h
|
#define OPB__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
|
|
@ -1242,7 +1242,7 @@ static void OPC_GenHeaderMsg (void)
|
||||||
OPM_WriteString((CHAR*)"/*", (LONGINT)3);
|
OPM_WriteString((CHAR*)"/*", (LONGINT)3);
|
||||||
OPM_WriteString((CHAR*)" voc ", (LONGINT)6);
|
OPM_WriteString((CHAR*)" voc ", (LONGINT)6);
|
||||||
OPM_Write(' ');
|
OPM_Write(' ');
|
||||||
OPM_WriteString((CHAR*)"1.95 [2016/06/30] for gcc LP64 on cygwin", (LONGINT)41);
|
OPM_WriteString(Configuration_versionLong, ((LONGINT)(41)));
|
||||||
OPM_Write(' ');
|
OPM_Write(' ');
|
||||||
i = 0;
|
i = 0;
|
||||||
while (i <= 63) {
|
while (i <= 63) {
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPC__h
|
#ifndef OPC__h
|
||||||
#define OPC__h
|
#define OPC__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "Configuration.h"
|
#include "Configuration.h"
|
||||||
|
|
@ -199,7 +199,7 @@ BOOLEAN OPM_OpenPar (void)
|
||||||
if (Platform_ArgCount == 1) {
|
if (Platform_ArgCount == 1) {
|
||||||
OPM_LogWLn();
|
OPM_LogWLn();
|
||||||
OPM_LogWStr((CHAR*)"Vishap Oberon-2 compiler v", (LONGINT)27);
|
OPM_LogWStr((CHAR*)"Vishap Oberon-2 compiler v", (LONGINT)27);
|
||||||
OPM_LogWStr((CHAR*)"1.95 [2016/06/30] for gcc LP64 on cygwin", (LONGINT)41);
|
OPM_LogWStr(Configuration_versionLong, ((LONGINT)(41)));
|
||||||
OPM_LogW('.');
|
OPM_LogW('.');
|
||||||
OPM_LogWLn();
|
OPM_LogWLn();
|
||||||
OPM_LogWStr((CHAR*)"Based on Ofront by Software Templ OEG, continued by Norayr Chilingarian and others.", (LONGINT)84);
|
OPM_LogWStr((CHAR*)"Based on Ofront by Software Templ OEG, continued by Norayr Chilingarian and others.", (LONGINT)84);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPM__h
|
#ifndef OPM__h
|
||||||
#define OPM__h
|
#define OPM__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPB.h"
|
#include "OPB.h"
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin xtspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin xtspkaSfF */
|
||||||
|
|
||||||
#ifndef OPP__h
|
#ifndef OPP__h
|
||||||
#define OPP__h
|
#define OPP__h
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
/* voc 1.95 [2016/06/30] for gcc LP64 on cygwin tspkaSfF */
|
/* voc 1.95 [2016/07/11] for gcc LP64 on cygwin tspkaSfF */
|
||||||
#define LARGE
|
#define LARGE
|
||||||
#include "SYSTEM.h"
|
#include "SYSTEM.h"
|
||||||
#include "OPM.h"
|
#include "OPM.h"
|
||||||
|
|
@ -128,7 +128,7 @@ static INTEGER Ord__7 (CHAR ch, BOOLEAN hex)
|
||||||
|
|
||||||
static void OPS_Number (void)
|
static void OPS_Number (void)
|
||||||
{
|
{
|
||||||
INTEGER i, m, n, d, e;
|
INTEGER i, m, n, d, e, maxHdig;
|
||||||
CHAR dig[24];
|
CHAR dig[24];
|
||||||
LONGREAL f;
|
LONGREAL f;
|
||||||
CHAR expCh;
|
CHAR expCh;
|
||||||
|
|
@ -183,8 +183,9 @@ static void OPS_Number (void)
|
||||||
} else if (OPS_ch == 'H') {
|
} else if (OPS_ch == 'H') {
|
||||||
OPM_Get(&OPS_ch);
|
OPM_Get(&OPS_ch);
|
||||||
OPS_numtyp = 2;
|
OPS_numtyp = 2;
|
||||||
if (n <= 8) {
|
maxHdig = 16;
|
||||||
if ((n == 8 && dig[0] > '7')) {
|
if (n <= maxHdig) {
|
||||||
|
if ((n == maxHdig && dig[0] > '7')) {
|
||||||
OPS_intval = -1;
|
OPS_intval = -1;
|
||||||
}
|
}
|
||||||
while (i < n) {
|
while (i < n) {
|
||||||
|
|
|
||||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue