Commit graph

8277 commits

Author SHA1 Message Date
tkchia 14c386561a Fix use-after-free in Modula-2 middle-end's em_m2
Partly fixes https://github.com/davidgiven/ack/issues/262
2022-08-01 17:48:54 +00:00
David Given 3757b4ad03
Merge pull request #260 from davidgiven/dtrg-ci
Build a Windows installer.
2022-07-20 01:04:58 +02:00
David Given c295920696 Make the Windows binaries actually run. 2022-07-20 00:25:07 +02:00
David Given f5acf70911 Typo fix. 2022-07-20 00:24:52 +02:00
David Given 6a3c94a9d0 Better string escaping, but it's still not good enough to support paths
with spaces.
2022-07-20 00:24:20 +02:00
David Given 3e394b95e4 Actually make the binaries runnable... and a fraction of the size. 2022-07-19 21:44:34 +02:00
David Given 4555352a18 Build a Windows installer when doing a CI build. 2022-07-19 21:21:48 +02:00
David Given 79aff56b62 Actually honour LDFLAGS. 2022-07-19 21:21:23 +02:00
David Given 33ce9169b4
Merge pull request #259 from davidgiven/dtrg-ci
Make work on Windows.
2022-07-18 23:05:01 +02:00
David Given 967ba0f417 Disable appveyor. 2022-07-18 23:03:00 +02:00
David Given 8d51f476b2 Typo fix. 2022-07-18 22:30:23 +02:00
David Given 6cd0c8c958 Properly declare close(). 2022-07-18 22:24:41 +02:00
David Given 64c62439cd Fix a bunch of issues with the new temp file generation. 2022-07-18 22:18:08 +02:00
David Given 0cd26b1d0c Get fed up with trying to make mkstemp work and wrote my own function
which does what I want.
2022-07-18 21:42:52 +02:00
David Given 0cadd6a299 Remove shf, which is obsolete and unused. 2022-07-18 20:50:26 +02:00
David Given bf8dda7aa3 Remove the K&R cpp, which is obsolete and unused. 2022-07-18 20:49:58 +02:00
David Given e9687e90b5 Remove flex, which is obsolete and unused. 2022-07-18 20:49:21 +02:00
David Given 3a417ef5a0 Remove byacc, which is obsolete and unused. 2022-07-18 20:49:05 +02:00
David Given af72a7accb Update README. 2022-07-18 20:47:29 +02:00
David Given ddee0f20e8 Disable line ending conversion. 2022-07-18 20:39:07 +02:00
David Given 56b0eb81c1 Treat \r as a space. 2022-07-18 20:35:53 +02:00
David Given 7d112a394c Open EM files in binary mode. 2022-07-18 20:25:56 +02:00
David Given 205a50d8ee Add more binary mode flags. 2022-07-18 19:36:44 +02:00
David Given 279de30935 More binary mode flag setting. 2022-07-18 19:29:53 +02:00
David Given c573b9bce2 Split aal arguments properly. 2022-07-18 16:48:14 +02:00
David Given 01c2342e18 Create archives in chunks to allow for very long lists of members. 2022-07-18 00:55:02 +02:00
David Given 20c2029753 Remove ed. We don't need it any more! 2022-07-18 00:25:22 +02:00
David Given 122bfde8bb Remove one more terrible ed script and replace it with a working Lua script. 2022-07-18 00:22:50 +02:00
David Given 78674d935f Warning fixes. 2022-07-17 23:52:05 +02:00
David Given 739b9af662 Make ego put its temporary files in the right place. 2022-07-17 21:09:18 +02:00
David Given 28d4480f62 It turns out that you can't use freopen() to set binary mode of
stdin/stdout on Windows; so add a new system function called
sys_setbinarymode which does it instead. Then find lots more binary mode
flags which need setting.
2022-07-17 20:47:53 +02:00
David Given acd2fe1351 More binary flags; and, remember to truncate existing files when trying
to create new ones.
2022-07-17 20:11:21 +02:00
David Given e640a33154
Merge pull request #258 from tkchia/tkchia/abort
plat/msdos86: fix: read() on O_TEXT fd should try to return any errors signaled by low-level read
2022-07-17 18:29:00 +02:00
David Given 2558d00d17 Replace the terrible code generation shell script with a Lua script. 2022-07-17 18:15:09 +02:00
David Given 90c6f0274a Stupid git didn't commit the files I told it to. 2022-07-17 14:53:48 +02:00
David Given 1ee6efabb0 Use Bison instead of Yacc --- we don't have Posix yacc grammars. 2022-07-17 14:51:18 +02:00
David Given f8bf333bd4 Replace the dodgy code generation shell scripts with Lua scripts. 2022-07-17 14:31:37 +02:00
David Given 544e8d474b Only Windows has O_BINARY. 2022-07-17 13:36:26 +02:00
David Given 1fa8f40beb Only Windows has O_BINARY. 2022-07-17 13:17:24 +02:00
David Given f9785629e0 Add a binary flag. 2022-07-17 13:01:11 +02:00
David Given c44f94818f Don't try to run or build the tests on Windows because too hard. 2022-07-17 13:00:39 +02:00
David Given 8e4a6ca47d Fix a nasty temporary file race condition. 2022-07-17 13:00:18 +02:00
David Given 5c2f190c29 Lots of binary mode flags. 2022-07-17 12:58:48 +02:00
David Given cb37502a23 Make work, mostly, on Windows --- temporary files are now created in the
right place, creat() isn't used because it doesn't work, partial file
read/writes work, etc.
2022-07-17 01:58:16 +02:00
David Given 1654700314 Warning fix. 2022-07-17 01:39:26 +02:00
David Given bd5ead8122 Forgot to add this to the build file... 2022-07-17 00:55:06 +02:00
David Given 92b3dfb42c Apparently Windows doesn't have strndup or index. 2022-07-17 00:47:49 +02:00
David Given b40f4e33fb Fix warnings. 2022-07-17 00:44:23 +02:00
David Given 44fc125b1a Remove signals. 2022-07-16 23:52:41 +02:00
David Given d0860c12c0 Don't build int on windows; it looks like a dead loss due to reliance on
Unix functionality.
2022-07-16 23:52:13 +02:00