Commit graph

47 commits

Author SHA1 Message Date
George Koehler 229b80a004 Free buf in GetFile().
aprintf() returns a const char *; the assignment to char * caused both
clang and gcc to warn of the dropped const.

Commit 893471a introduced a tiny memory leak, because GetFile()
stopped freeing buf.  The const return type of aprintf() suggests that
the buffer must not be freed.

Now use Malloc() to allocate the buffer and free() to free it.  This
also checks if we are out of memory, because Malloc() does the check
and aprintf() currently doesn't.
2017-11-13 21:34:31 -05:00
David Given 893471a42e No longer truncate module names at 10 characters when constructing paths;
rename some library modules to their full names.
2017-01-07 23:00:52 +01:00
David Given d50a6f99de Run through clang-format. 2017-01-07 22:56:00 +01:00
David Given 9a513e8ef3 Fix warning. 2013-05-17 00:04:54 +01: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 014be56fb0 Replaced calls to the custom strindex() and strrindex() functions with the
exactly equivalent and standard strchr() and strrchr() functions instead.
2006-07-23 20:01:02 +00:00
ceriel 1db6a3029b Header --> Id 1994-06-24 14:02:31 +00:00
ceriel 9eec0812a1 Improved previous fix 1993-01-19 15:33: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 1e19db9d3a empty string in directory list now means current directory 1989-02-16 11:24:01 +00:00
ceriel a7a80689bf Only generate FIL when needed 1988-10-25 17:43:19 +00:00
ceriel ce0ec1c143 delinted somewhat 1988-10-13 15:43:23 +00:00
ceriel 1da83e161b made to fit on PDP-11 again, and some other minor mods 1988-04-13 18:37:45 +00:00
ceriel 7f9fd963fd many minor mods 1988-03-23 17:44:25 +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 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 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 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 8dfafeb4e3 fixes 1987-07-13 11:49:32 +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 c839c01680 some fixes, and changed priority of unary minus 1987-06-18 15:46:08 +00:00
ceriel bb9b16ab50 fixes, added some standard functions to handle LONGREAL, LONGINT 1987-05-27 10:16:03 +00:00
ceriel 946006fb08 many minor corrections 1987-05-18 15:57:33 +00:00
ceriel fbc0415761 make to work on sun, added copyright, etc 1987-04-29 10:22:07 +00:00
ceriel a92c8bf067 D_BUSY added, to check recursive deps in def modules 1986-12-16 15:22:33 +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 9291d87dab Several bug fixes 1986-11-05 14:33:00 +00:00
ceriel 3030eb8cae newer version 1986-10-06 20:36:30 +00:00
ceriel a0db745586 newer version with bug fixes 1986-08-26 14:33:24 +00:00
ceriel bcfca75b56 newer version 1986-06-26 09:39:36 +00:00
ceriel caf99ea472 newer version 1986-06-06 02:22:09 +00:00
ceriel 6382054ae5 newer version 1986-05-28 18:36:51 +00:00
ceriel 0bf57a9c64 newer version 1986-05-01 19:06:53 +00:00
ceriel 4173e3c487 newer version 1986-04-25 10:14:08 +00:00
ceriel 674791bf91 newer version 1986-04-21 17:27:06 +00:00
ceriel 426c273de8 newer version 1986-04-15 17:51:53 +00:00
ceriel 6ff4d852e1 newer version 1986-04-08 23:34:10 +00:00
ceriel 629b8fdb88 newer version 1986-04-08 18:15:46 +00:00
ceriel 0e4311490c A newer version 1986-04-04 13:47:04 +00:00
ceriel 52d743f223 Newer version, safety commit 1986-04-03 00:44:39 +00:00