ceriel
948aa06740
fixed: signed divide by power of 2 not equivalent to shift-right
1989-05-02 18:00:37 +00:00
ceriel
6877184666
improved version with better PushBack
1989-04-04 14:49:31 +00:00
ceriel
4797a7d4ce
make realloc behave like most Unix realloc versions when handed a
...
null pointer
1989-03-29 12:58:18 +00:00
ceriel
1e3877b595
documented null-string behaviour
1989-03-16 15:41:43 +00:00
ceriel
8aee01de95
made easier to compile with different compiler
1989-02-20 15:29:10 +00:00
ceriel
9751e398e3
Made easier to use other compiler
1989-02-16 16:33:29 +00:00
ceriel
188b1df96d
fixed; the previous change was wrong
1989-02-16 11:14:22 +00:00
ceriel
9baa112ea1
Handle empty string in search path; It means: current directory
1989-02-16 10:48:06 +00:00
ceriel
5a4933ff7f
Try to allocate to the next power of 2, instead of just aligning
...
with GRABSIZE; This way, malloc(1000000) followed by free() followed by
another malloc(1000000) will result in the same block being allocated,
because first_present will now find it
1989-02-10 09:18:19 +00:00
ceriel
c64da88289
Added FORMAT information for our lint; Documented the _format routine
1989-02-07 11:17:22 +00:00
ceriel
1e9d815c92
Documented need of em_data.a for libeme.a
1989-02-07 11:11:57 +00:00
ceriel
f3c29355f6
simplified a bit to make the resulting optimizer smaller; Added a
...
constant w2 that can be used in the patterns instead of 2*w
1989-02-02 11:41:31 +00:00
ceriel
2930ebb406
fixed bug: OO_halfflush did not work properly
1989-01-31 10:33:59 +00:00
ceriel
f2d5f15e51
fixed wr_arhdr: date and size
1988-11-18 16:06:07 +00:00
ceriel
4b5e5a9764
fixed typo
1988-11-16 13:37:46 +00:00
ceriel
0e895422bc
removed include: was already done in nopt.h
1988-11-03 10:03:45 +00:00
ceriel
7a6913dea1
some minor improvements
1988-10-28 13:37:48 +00:00
ceriel
e71c873fc1
moved comment
1988-10-21 17:35:54 +00:00
ceriel
0d9daaa18d
changed assert macro to also work with ANSI C compilers
1988-10-21 17:34:20 +00:00
ceriel
0f8489fe28
Added .distr
1988-10-14 16:47:39 +00:00
ceriel
b909bb629b
modified bts2str to also escape double quotes
1988-10-05 16:19:42 +00:00
ceriel
9c8e5b9217
corrected a bit
1988-09-30 09:36:26 +00:00
ceriel
391d115b4d
fixes from bruce: there are four, not three types of pattern that the
...
routine findworst should look for
1988-09-27 11:16:04 +00:00
ceriel
751854f36a
prevent multiple includes
1988-09-27 09:50:34 +00:00
ceriel
8a8d0d9151
prevent multiple includes
1988-09-26 15:11:25 +00:00
ceriel
2df4da50da
made names more unique
1988-09-26 15:05:00 +00:00
ceriel
b533b53690
some improvements to manual page and interface
1988-09-22 16:09:18 +00:00
ceriel
f8a9f58006
Parameterize archiver
1988-08-23 13:16:38 +00:00
ceriel
9d6a005bb2
minor change: use int in array index
1988-08-23 12:54:16 +00:00
ceriel
7ee4487924
Added ChPushBack
1988-08-19 13:07:20 +00:00
ceriel
e0fd12fd05
removed obsolete comment
1988-07-26 15:15:01 +00:00
ceriel
b1dc8c8f52
fixed
1988-07-26 09:53:47 +00:00
ceriel
b3efe7e46c
should not result in commons; does not work with some ranlibs
1988-07-12 20:34:16 +00:00
ceriel
45bb3b1413
try another SBRK
1988-07-11 14:06:11 +00:00
ceriel
0505a65a74
check results in shell script
1988-07-08 16:10:17 +00:00
ceriel
32c3955be1
don't include too much
1988-07-08 15:51:27 +00:00
ceriel
87901b15ba
declare mktemp
1988-07-08 15:31:32 +00:00
ceriel
7f6d1911e2
comment sign at begin of line
1988-07-05 12:56:43 +00:00
ceriel
bb3dc913a2
improved; delayed frees did not work anyway
1988-07-05 11:50:11 +00:00
ceriel
bbf9b03ef4
changed order in archive
1988-07-05 09:12:07 +00:00
ceriel
1f07fc05a4
fixed bug with linenumber counting
1988-06-29 14:05:37 +00:00
ceriel
c03e25dc0d
Added sys_rename
1988-06-28 11:12:18 +00:00
ceriel
c68c06d0c3
only check duplicate ms_emx
1988-06-15 15:25:50 +00:00
ceriel
62c9bd14ce
made to work for distribution
1988-04-19 18:58:08 +00:00
ceriel
347a183428
avoid installation order problem
1988-04-19 17:05:05 +00:00
ceriel
39ee09e442
order was wrong
1988-04-19 16:56:40 +00:00
ceriel
832e4c3e8d
order was wrong
1988-04-19 16:55:51 +00:00
ceriel
bbe4d39ddd
improved stupid test
1988-04-19 16:45:19 +00:00
ceriel
0de242d9bb
Added make.sh
1988-04-18 09:18:18 +00:00
ceriel
f5be4dafc6
use varargs when needed
1988-04-15 15:34:19 +00:00
ceriel
e53d23a925
some minor improvements
1988-04-13 13:05:38 +00:00
ceriel
24d7026a7a
corrected comment message
1988-04-13 12:52:40 +00:00
ceriel
cdda84eaab
minor improvement
1988-04-13 12:40:48 +00:00
ceriel
b0715c481b
also make a makecalls for code expander
1988-04-11 09:48:59 +00:00
ceriel
ea4b32d326
parameterize archiver used
1988-01-14 14:10:51 +00:00
ceriel
b5d320392c
parameterize archiver used
1988-01-14 13:58:44 +00:00
ceriel
e873fd637d
try to free mem as soon as possible
1988-01-14 13:53:58 +00:00
ceriel
fb65cda40f
make separate lib for code-expander
1988-01-14 13:50:43 +00:00
ceriel
1f3ad61fd5
parameterize archiver used
1988-01-14 13:44:36 +00:00
ceriel
bf37d48ac5
Some minor corrections
1988-01-14 13:40:56 +00:00
ceriel
1ee5101ba7
Some corrections to make it work on small machines
1988-01-14 13:34:42 +00:00
ceriel
629fc3f824
adapted to new em_code module
1988-01-14 13:19:32 +00:00
ceriel
d5c423adaf
better check if a block was already freed
1988-01-14 11:35:07 +00:00
ceriel
a726f7d49e
adapted to use new em_code module, and a minor fix
1988-01-14 10:52:36 +00:00
ceriel
2e932ba803
fixed: used wrong index in em_flag
1987-11-23 13:35:34 +00:00
ceriel
bffdad9cdc
improved a bit
1987-11-17 16:22:13 +00:00
ceriel
4359c699dc
completely new version
1987-11-12 12:26:36 +00:00
ceriel
0baf75f779
completely new version
1987-11-12 11:59:31 +00:00
ceriel
7b317f79e2
The 'ahead' mechanism was not right
1987-11-09 11:45:39 +00:00
ceriel
7d0a77821c
fixed bug in reading of longs in archive header
1987-11-05 11:55:28 +00:00
ceriel
5f35f2b26b
parameterized archiver used
1987-10-15 10:32:12 +00:00
ceriel
149a2abd07
some fixes
1987-09-29 16:07:10 +00:00
ceriel
1eda133f01
Added register decl, re-arranged some code
1987-09-23 14:22:39 +00:00
ceriel
1655b2521f
Added a register decl
1987-09-22 16:14:38 +00:00
ceriel
dd320002c2
time must be called with a 0-pointer, not with 0! Erikje toch!
1987-09-01 14:18:20 +00:00
ceriel
a2d921040d
first free-ing and then reallocing did not work properly.
...
Now, free does nothing, except remembering that a block was freed.
malloc, realloc and free check for this.
1987-08-14 11:52:17 +00:00
ceriel
34bcf4786b
make two versions: one for new peephole optimizer
1987-08-06 19:00:21 +00:00
ceriel
a5e33acf51
fixed manual page
1987-08-06 18:59:07 +00:00
ceriel
88eaeed762
code improvement
1987-08-06 14:24:08 +00:00
ceriel
5f6b6651e1
fixes
1987-08-06 14:21:01 +00:00
ceriel
912e362f11
minor mods
1987-08-06 14:20:11 +00:00
ceriel
ce6a1b9cfc
many re-arrangements
1987-08-06 10:48:14 +00:00
ceriel
c37193b667
some cosmetic changes
1987-08-03 11:01:19 +00:00
ceriel
a203a029cb
some cosmetic changes
1987-08-03 09:16:20 +00:00
ceriel
3b038786ad
removed the limitation of the next field
1987-08-03 09:07:25 +00:00
bruce
48a4d04b61
Corrected EMHOME in Makefile (yet again)
1987-07-30 09:42:39 +00:00
bruce
bf63b12a93
Added removal of dead code patterns
1987-07-29 16:10:27 +00:00
bruce
9e55f02c3b
Parser outputs some stats and fixed error is pseudo.r
1987-07-28 11:22:59 +00:00
bruce
545bed355d
Converted dfa to use row displacement compaction
1987-07-28 09:37:09 +00:00
bruce
85053cf283
Remove strings library from Makefile
1987-07-22 12:41:46 +00:00
bruce
1c1eed4fd8
Major change: All queues now in same buffer
1987-07-21 13:23:09 +00:00
bruce
287a122d85
remove a couple pieces of trivial lint
1987-07-14 09:15:10 +00:00
bruce
40b9920f8f
dfa.c now a routine for each state rather than nested switch statement
1987-07-13 15:03:27 +00:00
bruce
dc8d6ce37b
Remove free queue and use st_alloc/free from alloc module
1987-07-13 10:07:33 +00:00
bruce
c8aaa59e1c
New patterns, man page changes, other little fixes
1987-07-10 14:16:32 +00:00
bruce
1b28d14dcb
added manual pages for library and stand alone program
1987-07-10 09:08:31 +00:00
bruce
e5dd1249b2
Added lint entry to Makefile and removed some things lint complained about
1987-07-09 15:04:03 +00:00
bruce
65aab404ba
Corrected clean option in Makefile
1987-07-09 09:14:43 +00:00
bruce
64578a3afd
Changed trans.c from switch statement into series of small procedures. Output files from parser now only written if changed
1987-07-09 09:02:41 +00:00
bruce
466637933a
Convert to new READ_EM data structure. Build a em_nopt. Input names now O_ and output C_. Add insert part support.
1987-07-07 16:31:16 +00:00
ceriel
8c10914e78
added Realloc, split into separate files
1987-07-06 14:46:00 +00:00
ceriel
5ca1be74b8
bug fix: did not check externals right
1987-07-03 16:41:45 +00:00
ceriel
10caf5c785
The em_argtype sometimes was not set right
1987-07-03 10:35:55 +00:00
ceriel
1310910b23
BASE only used when INCORE
1987-07-01 18:27:00 +00:00
ceriel
83bc77ad51
Added C_insertpart mechanism
1987-07-01 17:24:10 +00:00
ceriel
1487265556
Added seek.c, an interface to the lseek systemcall
1987-07-01 13:00:43 +00:00
ceriel
6161b898cd
use proper selector names
1987-07-01 09:52:17 +00:00
ceriel
0e4defe032
again, more consistent naming
1987-06-30 18:59:51 +00:00
ceriel
db6c8a8b79
updated
1987-06-30 18:44:08 +00:00
ceriel
480e58cc9f
more consistent naming
1987-06-30 17:02:45 +00:00
ceriel
a7cb540ae3
[ek]/C_failed.c removed. Now called failed.c
1987-06-30 16:11:19 +00:00
ceriel
dce90d9491
all external names start with C_
1987-06-30 16:09:36 +00:00
ceriel
19ffd2c1f2
all external names start with C_, output buffered
1987-06-30 16:09:18 +00:00
ceriel
329cc47ca6
putbyte --> C_putbyte
1987-06-30 15:24:02 +00:00
ceriel
d3031b22b7
fix
1987-06-30 13:17:53 +00:00
ceriel
53d5e42603
minor changes, consistent naming of variables
1987-06-30 13:11:16 +00:00
ceriel
0c5b54219e
new version, different interface
1987-06-30 12:55:30 +00:00
ceriel
66bcbd7d66
declare mktemp and strcpy
1987-05-18 14:27:06 +00:00
ceriel
6a52ce38f9
botch and clear have an unsigned as second arg
1987-05-18 14:16:41 +00:00
ceriel
e938380cb8
Added lintlib
1987-05-18 13:49:59 +00:00
ceriel
869e3bdc9a
Added lintlib
1987-05-18 13:37:44 +00:00
ceriel
b14dd671b5
Added lintlib, minor fixes
1987-05-18 13:34:06 +00:00
ceriel
cdf0fa6d6b
Added lintlib, minor optim
1987-05-18 13:11:50 +00:00
ceriel
ff505d48ed
Added lintlib
1987-05-18 13:10:25 +00:00
ceriel
680e0c347c
document zero-initialization
1987-05-14 16:51:53 +00:00
ceriel
ed582b0752
Added some patterns replacing divides by shifts (done by bruce)
1987-04-29 11:35:00 +00:00
ceriel
4cbff1975f
bug fix: decode did not handle quotes within strings right
1987-04-21 19:34:52 +00:00
ceriel
22961f13af
Initial revision
1987-04-16 15:57:16 +00:00
ceriel
81b1d21c35
Initial revision
1987-04-13 10:32:47 +00:00
ceriel
f67bfc485c
moer robust version
1987-03-31 08:16:41 +00:00
ceriel
9c0aa5e7a3
updated
1987-03-29 13:33:37 +00:00
ceriel
4f41981cd8
modified to do more in the presence of errors
1987-03-29 13:07:44 +00:00
ceriel
c6cf0725d0
bug fixes
1987-03-29 12:55:25 +00:00
ceriel
8a5f7d09c9
minor mods
1987-03-25 17:54:24 +00:00
ceriel
74a1a176c5
em?.o and C_failed.o must be at the end of the archive
1987-03-18 19:20:38 +00:00
ceriel
10080ca0f2
deleted exit.c
1987-03-17 22:28:15 +00:00
ceriel
321fa30a5f
bug fix
1987-03-17 10:44:16 +00:00
ceriel
d676a5df2a
Bug fix
1987-03-17 10:39:18 +00:00
ceriel
e140a87a6b
bug fix
1987-03-16 15:11:51 +00:00
ceriel
4549b5129d
don't use "void"!
1987-03-12 22:24:19 +00:00
ceriel
60f9d1b6c6
don't use void!
1987-03-12 22:23:17 +00:00
ceriel
dbac04eb47
removed the "void" stuff. Some compilers just don't digest it.
1987-03-12 11:33:24 +00:00
ceriel
991c568ee4
moved the definition of sys_filesize. It had a funny place.
1987-03-12 09:30:03 +00:00
ceriel
f6083608f9
minor change
1987-03-11 14:19:02 +00:00
ceriel
4f0cb4abe1
Added Rcs Id
1987-03-10 09:24:02 +00:00
ceriel
d6e4d5a18c
Added copyright notice
1987-03-09 21:20:21 +00:00
ceriel
b8835cee3f
Added copyright notice
1987-03-09 15:15:03 +00:00
ceriel
55b3557f22
*** empty log message ***
1987-03-04 10:01:01 +00:00
ceriel
25dfa91caa
*** empty log message ***
1987-03-04 09:54:23 +00:00
ceriel
bb6058feaa
Remove .c files after making "all"
1987-03-03 15:52:36 +00:00
ceriel
a2da7ad5f8
Don't remove .c files
1987-03-03 15:52:09 +00:00
ceriel
c4a8f2371d
*** empty log message ***
1987-03-03 08:43:46 +00:00
ceriel
c5f0e41be9
clean up the mess after compiling
1987-03-02 19:30:24 +00:00
ceriel
1e10c0cf98
maxchunk definition made static
1987-03-02 08:55:23 +00:00
ceriel
8ed274e96e
*** empty log message ***
1987-03-02 08:48:36 +00:00
bruce
2f204ff2ca
Initial revision
1987-02-27 16:04:07 +00:00
ceriel
13a3574979
used to dump core on empty files
1987-02-27 09:54:23 +00:00
ceriel
5817719a7c
An #endif was missing
1987-02-24 12:38:21 +00:00
ceriel
141753d598
still referred to BadAssertion.c instead of BadAssert.c
1987-02-24 10:45:54 +00:00
ceriel
e2ab98dea0
*** empty log message ***
1987-02-23 14:22:16 +00:00
ceriel
3ce0d62f83
Initial revision
1987-02-23 14:14:35 +00:00
ceriel
96f6adb74b
*** empty log message ***
1987-02-23 14:06:17 +00:00
ceriel
af2b497fdf
Initial revision
1987-02-23 11:38:21 +00:00
ceriel
398021e77a
Added No_Mem
1987-02-23 11:38:15 +00:00
ceriel
f98832f587
*** empty log message ***
1987-02-23 11:23:46 +00:00
ceriel
429502815f
Added description of strzero
1987-02-19 11:28:14 +00:00
ceriel
3378831ba5
Made to work with some other compilers
1987-02-13 09:40:08 +00:00
bruce
25a7b2ae22
Added local optimization of lin to lni.
1987-02-09 17:55:46 +00:00
ceriel
375e023d8b
Initial revision
1987-02-09 14:55:59 +00:00
ceriel
97e0fbea33
*** empty log message ***
1987-02-09 14:54:29 +00:00
bruce
dd673a426f
Changed name from .c to .r and now in format required by awk.
1987-02-06 14:21:04 +00:00
bruce
8248a41994
Initial revision
1987-02-06 14:15:49 +00:00
bruce
d5e9250405
Use awk program to generate distinct C_xxx routines in separate files.
1987-02-06 14:13:22 +00:00
ceriel
e60f0f3981
bug fix
1987-02-06 10:27:57 +00:00
ceriel
4860deacf8
another bug fix
1987-02-05 18:37:12 +00:00
ceriel
d5d4c551c5
bug fix
1987-02-05 18:33:44 +00:00
ceriel
d0d5c84689
bug fix
1987-02-05 16:39:39 +00:00
ceriel
6ce38d28ae
fixed error in call of C_con_scon
1987-02-04 16:03:54 +00:00
ceriel
c9fce4aff9
typo fix
1987-01-29 14:54:26 +00:00
bruce
9e61390e78
Corrected clean option to remove libopt.a
1987-01-28 15:39:10 +00:00
bruce
6fb688f882
Ported code to Mantra and general clean up.
1987-01-27 14:15:23 +00:00
bruce
bbd5b115dd
Changed to reflect location of EMHOME and conform to standard syntax.
1987-01-27 11:42:08 +00:00
ceriel
0991948d3e
Removed all those ../../.. references
1987-01-26 16:35:04 +00:00
ceriel
74d48b9b91
bug fix for EM_MESARG
1987-01-26 14:04:33 +00:00
ceriel
b4e4250144
added EM_wordsize, EM_pointersize
1987-01-23 16:15:57 +00:00
ceriel
df1b8c8f71
corrected typo
1987-01-23 16:04:20 +00:00
ceriel
872cd52f99
Bug fix: EM_MESARG gives em_arg, not em_args!
1987-01-23 16:00:37 +00:00
bruce
f4e7c2f6ce
Fixed up indentation of trans.c output.
1987-01-22 14:27:02 +00:00
bruce
819136660e
Don't put out "return" in outputtrans if action is not tested
...
otherwise compiling trans.c give warning about statment not reached.
1987-01-21 15:36:18 +00:00
bruce
959800d9b5
Version that implements a C_XXX to O_XXX library interface.
1987-01-21 14:27:04 +00:00
ceriel
4f94fb9ea0
Bug fix (?)
1987-01-20 14:47:49 +00:00
bruce
97cd4953b0
Initial revision
1987-01-15 18:12:26 +00:00
ceriel
0ffdfb4f76
Added rd_fd and wr_fd.
1987-01-13 15:10:23 +00:00
ceriel
b2c0f64992
*** empty log message ***
1987-01-13 13:13:50 +00:00
ceriel
6adc4ef78b
Added documentation on EM_wordsize and EM_pointersize.
1987-01-12 15:54:16 +00:00
ceriel
9639f0a87b
Also export EM_wordsize and EM_pointersize.
1987-01-12 15:42:38 +00:00
ceriel
77f4f0f0c9
Bug fix.
1987-01-09 14:11:59 +00:00
ceriel
7d4d9c5c34
%c did not work on systems that have their bytes or their words reversed.
1987-01-08 17:40:25 +00:00
ceriel
5a0140cf3a
Bug fix: order in archive longs is PDP-11 order!
1987-01-08 17:39:37 +00:00
ceriel
3ca2fcad1c
added doc for C_init
1987-01-08 16:35:00 +00:00