Commit graph

69 commits

Author SHA1 Message Date
carl 3867cfdaca + M2 Compiler ISO C90 compatibility
* Fixing of potential crash issue with function tables in compiler.
+ SYSTEM.h is now renamed to SYSTEMM2.h to avoid conflicts on non case sensitive filesystems.
2019-03-02 01:44:16 +08:00
David Given f6c43b95ef Modula-2 now works.
--HG--
branch : dtrg-buildsystem
rename : lang/pc/build.mk => lang/m2/build.mk
rename : lang/pc/libpc/build.mk => lang/m2/comp/build.mk
rename : lang/pc/libpc/build.mk => lang/m2/libm2/build.mk
2013-05-14 22:24:38 +01:00
dtrg 26b17074a1 Rationalised use of #includes to be more standards-compliant. 2006-07-26 17:10:30 +00:00
ceriel 15d2949b88 Fix: opaque types my only be defined in the CORRESPONDING implementation 1995-04-26 13:54:56 +00:00
ceriel 1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
ceriel fa0bee0b26 Do not use '#endif/#else xxx'; it is not allowed for ANSI C 1991-12-17 14:36:35 +00:00
ceriel 0a517b9256 Changes to make node structure smaller, and cleaned up a bit 1991-03-12 16:52:00 +00:00
ceriel 0995f7a809 better error handling, simplified EOI handling with improved input module 1989-04-04 14:53:48 +00:00
ceriel f1245e2e00 fixed some problems:
- removed null-reference in illegal use of pointers in constant expressions
- FOR-loops that count downwards did not work
- POINTER TO mechanism changed; works better now
1988-11-15 14:45:59 +00:00
ceriel ce0ec1c143 delinted somewhat 1988-10-13 15:43:23 +00:00
ceriel 7e502b0937 fix: resolve forward references if definition is needed in lookfor() 1988-09-20 13:31:57 +00:00
ceriel 74c779b81e mods to handle forward references better 1988-06-30 14:50:30 +00:00
ceriel 7f9fd963fd many minor mods 1988-03-23 17:44:25 +00:00
ceriel 795a078d08 too many changes: some cosmetic; some for 2/4; some for added options 1988-03-21 17:22:26 +00:00
ceriel d7d501d43a made to fit on a PDP-11 again 1988-02-10 14:06:34 +00:00
ceriel 6217293e23 some fixes:
- always remove imports from definition modules
- minor improvement in error messages
1988-02-09 11:41:08 +00:00
ceriel 3627b9a16c added use checking for types and constants, improved overflow checking 1987-11-27 14:24:46 +00:00
ceriel 603c65950c Fixed some problems:
files that use the em_code module must include the em_code.h file
improved checking of definitions after use
fixed problem with ranges in case statements
1987-11-11 13:10:08 +00:00
ceriel 6e5f3632c6 fixed some minor problems 1987-11-03 12:44:09 +00:00
ceriel 5cd95d47b2 Now detects use before declaration, f.i. in
VAR k: REAL;
REAL : INTEGER;
1987-10-30 09:19:23 +00:00
ceriel 015e1b776e Some corrections and additions to improve the mechanism for
generating warnings on unused/uninitialized variables
1987-10-21 11:29:52 +00:00
ceriel 503edee161 New version, with an option for strict Modula-2, and
warnings for unused or uninitialized variables
1987-10-19 11:28:37 +00:00
ceriel fc6a8c5aa8 some minor fixes 1987-10-14 12:34:47 +00:00
ceriel e61b887e31 improved previous fix 1987-10-05 16:17:51 +00:00
ceriel 5d5e497d22 fixed a problem with procedures imported from other modules but not
declared in their definition modules
1987-10-05 15:41:30 +00:00
ceriel c5674041bf Some minor mods and a bug fix with type transfer functions 1987-09-24 13:07:31 +00:00
ceriel fd817d4dbc Minor adaptions in order to reduce the size 1987-09-23 16:39:43 +00:00
ceriel f0fc857cb4 compiler could not handle using addresses of procedures declared
in imported definition modules. This is corrected
1987-08-24 11:42:37 +00:00
ceriel 51169956dc some more fixes, and tried to make smaller 1987-08-10 21:43:47 +00:00
ceriel 0e397f09f3 many changes; some cosmetic; coercions now explicit in tree 1987-07-30 13:37:39 +00:00
ceriel e04230a126 bug fixes, name changes 1987-07-16 19:51:40 +00:00
ceriel efafb68f00 - fixes: improved POINTER TO IDENT mechanism, prevent core dump when
definition module not found, corrected typo.
- changed mechanism for variables that have their address given.
- added option for symmetric integer ranges
1987-06-29 12:46:00 +00:00
ceriel fbc0415761 make to work on sun, added copyright, etc 1987-04-29 10:22:07 +00:00
ceriel fe2e67d1c6 minor fixes 1986-12-09 17:41:06 +00:00
ceriel a0c21bf820 many bug fixes, and added flexibility in alignments 1986-11-28 11:59:08 +00:00
ceriel da54801353 newer version 1986-11-26 16:40:45 +00:00
ceriel 9d0ee46068 Trying to check more of an expression, giving some more sophisticated error messages,and be less wasteful with space for subranges 1986-11-17 11:41:28 +00:00
ceriel 3030eb8cae newer version 1986-10-06 20:36:30 +00:00
ceriel c3d4d40d1b many bug fixes 1986-09-25 19:39:06 +00:00
ceriel a0db745586 newer version with bug fixes 1986-08-26 14:33:24 +00:00
ceriel 965e75761d newer version 1986-07-08 14:59:02 +00:00
ceriel a9dfdc494b newer version 1986-06-17 12:04:05 +00:00
ceriel ec528b797e newer version 1986-06-10 13:18:52 +00:00
ceriel caf99ea472 newer version 1986-06-06 02:22:09 +00:00
ceriel 9e0ab0029b first, almost complete, version 1986-06-04 09:01:48 +00:00
ceriel db795bc07a newer version 1986-05-30 18:48:00 +00:00
ceriel 6382054ae5 newer version 1986-05-28 18:36:51 +00:00
ceriel 15896e422c newer version 1986-05-14 09:03:51 +00:00
ceriel 0bf57a9c64 newer version 1986-05-01 19:06:53 +00:00
ceriel 53e3cd60d0 newer version 1986-04-28 18:06:58 +00:00