Commit Graph

1341 Commits

Author SHA1 Message Date
H. Peter Anvin
72edbb87ef macros.c: compress by tokenizing macro directives
Compress macros.c by representing macro directives with a single byte.
We can do this because we only use the ASCII character range inside
the standard macro files.

Note: we could save significant additional space by not having a
pointer array, and instead relying on the fact that we sweep
sequentially through the output array.
2008-06-19 16:00:04 -07:00
H. Peter Anvin
d2456590fc preproc: add support for builtin include modules (%use)
Add a builtin equivalent to the %include directive called %use.
%use includes a standard macro file compiled into the binary; these
come from the macros/ directory in the source code.

The idea here is to be able to provide optional macro packages with
the distribution, without adding complex host filesystem dependencies.
2008-06-19 15:04:18 -07:00
H. Peter Anvin
9dee352dee doc: macroize texi2ipf and ipfc
Macroize the texi2ipf and ipfc commands (used for OS/2).
2008-06-19 11:47:13 -07:00
H. Peter Anvin
eec3b52505 doc: for ps to pdf conversion, use "acrodist", "ps2pdf" or "pstopdf"
For PostScript to PDF conversion, use whichever of "acrodist",
"ps2pdf", or "pstopdf" which we can find on the system.  I haven't
tried either acrodist or pstopdf myself, only going my the
documentation, but prefer acrodist since it is claimed to produce
smaller output files than ps2pdf.
2008-06-19 11:39:23 -07:00
H. Peter Anvin
ca6a242dcd Merge branch 'nasm-2.03.x'
Conflicts:

	Makefile.in
	Mkfiles/msvc.mak
	Mkfiles/netware.mak
	Mkfiles/openwcom.mak
	Mkfiles/owlinux.mak
2008-06-16 21:45:42 -07:00
H. Peter Anvin
07c1468307 doc: add missing nasmdoc.txt target 2008-06-16 21:19:34 -07:00
H. Peter Anvin
96b18600ce NASM 2.03.01 2008-06-16 21:11:59 -07:00
H. Peter Anvin
90c419ac17 Backport the syncfiles script to the nasm-2.03.x branch
This is a maintenance tool only, it doesn't change the code in any
way.  However, it makes it a lot less likely that we'll have a release
go out with a broken Makefile.
2008-06-16 15:55:19 -07:00
H. Peter Anvin
c0d6066d99 syncfiles: use #-- ... --# for consistency with mkdep.pl
mkdep.pl already used #-- ... --# (two dashes) whereas syncfiles.pl
was using #--- ... ---# (three dashes).  Change syncfiles.pl to match
mkdep.pl.
2008-06-15 23:50:50 -07:00
H. Peter Anvin
c5d8030768 syncfiles: terminate directory names at equal signs
In the case where the directory name should be removed (null pathname
separator) don't search backwards past an equal sign, just in case
there isn't a space after the assignment.
2008-06-15 23:43:44 -07:00
H. Peter Anvin
64ca4b6998 Merge branch 'nasm-2.03.x' 2008-06-15 21:51:52 -07:00
H. Peter Anvin
c4f1685736 -F implies -g backported to 2.03.01 2008-06-15 21:51:17 -07:00
H. Peter Anvin
018a6700c4 CHANGES: document backport of -F implies -g 2008-06-15 21:50:41 -07:00
H. Peter Anvin
1794876088 Merge branch 'nasm-2.03.x'
Conflicts:

	doc/nasmdoc.src
2008-06-15 21:27:30 -07:00
H. Peter Anvin
04e225ccef Make -F imply -g (BR 1991213)
When the user specifies -F, imply the -g option.  Too many users seem
to make this mistake.

Conflicts:

	doc/nasmdoc.src
2008-06-15 21:25:56 -07:00
H. Peter Anvin
d11c48d910 Merge branch 'nasm-2.03.x'
Conflicts:

	doc/nasmdoc.src
2008-06-15 21:22:40 -07:00
H. Peter Anvin
eafc83fc65 doc: Nasm -> NASM
Consistently write NASM in all capitals
2008-06-15 21:21:07 -07:00
H. Peter Anvin
1b18ece43c doc: title capitalization 2008-06-15 21:20:59 -07:00
H. Peter Anvin
f83781db62 doc: add missing period.
Conflicts:
2008-06-15 21:20:45 -07:00
H. Peter Anvin
cca25b8a13 doc: Makefile fixes missing from previous checkin 2008-06-15 21:18:24 -07:00
H. Peter Anvin
702400f314 doc: another case of the RTF backend corrupting state
Another case of the RTF backend corrupting global state.  "Fix" it by
only outputting one format at a time; this also makes it possible to
run in parallel.
2008-06-15 21:18:17 -07:00
H. Peter Anvin
bcd0b9903c doc: ps/pdf: set page numbers in normal-sized italic
Set page numbers in normal-sized italic, instead of large and bold.
We might want to consider using bold italic, but I think this is just
fine.
2008-06-15 21:18:08 -07:00
H. Peter Anvin
a43569cb9b doc: Add NASMENV to the index (BR 1917084)
Add NASMENV to the documentation index.
2008-06-15 21:18:01 -07:00
H. Peter Anvin
0ee9c37a52 Merge branch 'nasm-2.03.x'
Conflicts:

	doc/psfonts.ph
2008-06-15 21:15:18 -07:00
H. Peter Anvin
4b247db304 Documentation facelift backported to 2.03.x 2008-06-15 21:13:12 -07:00
H. Peter Anvin
db8392ef79 CHANGES: Document documentation facelift 2008-06-15 21:11:35 -07:00
H. Peter Anvin
fac516d1e5 ps/pdf doc: default to 10-point font, wider leading
Switch the main font to 10 points Times Roman, but leave the leading
at 11 points.  This produces, in my opinion, a much more legible and
printable document.
2008-06-15 21:10:45 -07:00
H. Peter Anvin
c25a5d01ac Merge branch 'nasm-2.03.x'
Conflicts:

	CHANGES
2008-06-15 21:01:25 -07:00
H. Peter Anvin
fe2c362e3f CHANGES: call the next version on this branch 2.03.01
Call the next version on this branch 2.03.01.
2008-06-15 21:00:16 -07:00
H. Peter Anvin
85a6670ebe syncfiles: use the same regexp for hints as mkdep uses
Use the same regular expression for hints in both mkdep and syncfiles.
2008-06-15 18:35:01 -07:00
H. Peter Anvin
19b741835f syncfiles: handle the case of the null path separator
Correctly handle the null path separator (meaning remove the directory
portion entirely.)
2008-06-15 18:33:03 -07:00
H. Peter Anvin
6f4252afea utf.asm: add some error cases
Add some error cases for testing
2008-06-15 17:53:12 -07:00
H. Peter Anvin
d710e2be26 syncfiles.pl: remove obsolete comment
There isn't anything magic about the input file syntax.
2008-06-15 17:52:45 -07:00
H. Peter Anvin
2aa77394b7 Free EOT_DB_STRING_FREE in cleanup_insn()
Free EOT_DB_STRING_FREE data in cleanup_insn(), which is where we free
all the other extop data.
2008-06-15 17:39:45 -07:00
H. Peter Anvin
a0b91037e2 Mark Perl scripts executable
Be consistent about marking Perl scripts executable, even if we always
invoke them with $(PERL) in the Makefiles.
2008-06-15 16:55:39 -07:00
H. Peter Anvin
7806e96508 Script to automagically synchronize the object file lists
Add a script to automagically synchronize the list of object files
between the various Makefiles.
2008-06-15 16:54:29 -07:00
H. Peter Anvin
eb96812e9f Update Mkfiles/*.mak
Sync the file list in Mkfiles/*.mak
2008-06-15 16:18:43 -07:00
H. Peter Anvin
6680dd9a46 CHANGES: Document new features 2008-06-14 21:37:46 -07:00
H. Peter Anvin
9a377b8082 Merge branch 'nasm-2.03.x' 2008-06-14 21:36:56 -07:00
H. Peter Anvin
6d6c717fba CHANGES: document changes from nasm-2.03 2008-06-14 21:36:18 -07:00
H. Peter Anvin
9fea5c4f30 doc: Add Unicode Strings to Unicode index 2008-06-14 21:23:39 -07:00
H. Peter Anvin
5c657bdc12 Document __utf16__ and __utf32__ 2008-06-14 21:21:17 -07:00
H. Peter Anvin
05d124c30d Merge branch 'nasm-2.03.x' 2008-06-14 21:10:21 -07:00
H. Peter Anvin
312445a316 quote: fix termination condition for hexadecimal escapes
Fix reversed test for hexadecimal escape sequence termination.
2008-06-14 21:09:39 -07:00
H. Peter Anvin
9c749101ef Support __utf16__ and __utf32__ in an expression context
Support __utf16__ and __utf32__ in expression contexts.
2008-06-14 21:08:38 -07:00
H. Peter Anvin
503e71d3ee strfunc: fix UTF-8 mid-character limit 2008-06-14 21:07:09 -07:00
H. Peter Anvin
2cb033e0d9 strfunc: always null-terminate the output buffer
Make sure that the buffer is always null-terminated, even though we do
have to use the length, since the string can (and often will) have
embedded nulls.
2008-06-14 20:53:45 -07:00
H. Peter Anvin
518df30308 Implement __utf16__() and __utf32__() for the DB family
Implement __utf16__() and __utf32__() for the DB family of
pseudo-instructions.  Not yet implemented for evaluation context.
2008-06-14 16:53:48 -07:00
H. Peter Anvin
dfaa278cd5 doc: add a couple of stylistic alternatives
Add a few alternate font sets for the documentation.  I would be
interested to see if anyone thinks they are better.
2008-06-14 12:09:25 -07:00
H. Peter Anvin
099c939bcb Merge branch 'nasm-2.03.x' 2008-06-12 09:33:32 -07:00