Commit Graph

1158 Commits

Author SHA1 Message Date
H. Peter Anvin
cb40e8a010 doc: \t is also a supported escape sequence... 2008-06-08 16:50:23 -07:00
H. Peter Anvin
9544bec3f5 doc: s/by/in/ certain preprocessor directives. 2008-06-08 16:49:16 -07:00
H. Peter Anvin
c2734cc43c Split documentation on string syntax out of "character constants"
Split the documentation on string syntax, as a lexical entity, out of
the section about character constants.  It was confusing to have
discussion that apply more to string constants than character
constants, and they use the same syntax anyway.
2008-06-08 16:46:37 -07:00
H. Peter Anvin
062ee976c4 doc: A few floating-point examples 2008-06-08 16:39:28 -07:00
H. Peter Anvin
27bdec9295 doc: add a comma
This time the comma should actually be there.
2008-06-08 16:35:45 -07:00
H. Peter Anvin
6581802f8b doc: ALL %if constructs have %elif/%ifn/%elifn variants.
All %if constructs now have %elif/%ifn/%elifn; this is hard-coded into
the preprocessor.
2008-06-08 16:34:44 -07:00
H. Peter Anvin
868067de66 doc: remove superfluous comma 2008-06-08 16:25:20 -07:00
H. Peter Anvin
66f1d9ffb1 Improve the %iftoken example 2008-06-08 16:24:06 -07:00
H. Peter Anvin
ef0145540e Fix capitalization in titles 2008-06-08 16:20:26 -07:00
H. Peter Anvin
a9862a8954 Document forward references fixed in EQU. 2008-06-08 16:06:22 -07:00
Frank Kotler
af19b09a2e Document __OUTPUT_FORMAT__
It may be "too late" for this to get into 2.03, but I've been whining
that "__OUTPUT_FORMAT__" ought to be documented. Maybe...
2008-06-08 10:48:16 -07:00
H. Peter Anvin
730e87ba76 NASM 2.03rc8 2008-06-06 10:40:32 -07:00
H. Peter Anvin
2b1c3b9527 Fix dependency list generation
The dependency list tail pointer wasn't actually updated correctly.
Fix that.  We may want to make this a structure of some sort to make
the code a bit cleaner, but this seems to be the cleanest hack for
now.
2008-06-06 10:38:46 -07:00
H. Peter Anvin
c41c6ac998 NASM 2.03rc7 2008-06-05 16:25:21 -07:00
H. Peter Anvin
5e37e2e7f7 Merge branch 'master' of git+ssh://repo.or.cz/srv/git/nasm 2008-06-05 16:24:28 -07:00
H. Peter Anvin
358c97d21f The XSAVE group are SSE-spefix-sensitive
The XSAVE group are SSE-prefix-sensitive (null prefix), and therefore
take the \360 flag.
2008-06-05 16:23:35 -07:00
Charles Crayne
7accd1ccac Merge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm 2008-06-05 16:13:06 -07:00
Charles Crayne
2d900f5488 Avoid obscure segfault in DWARF generation
If DWARF debugging info is requested, and no section
is marked executable, output empty debug sections,
instead of allowing assembler to segfault.
2008-06-05 16:12:06 -07:00
H. Peter Anvin
cb6aaa33ce insnsd.c: don't generate an inaccessible table
Some pseudo-instructions (RESB and EQU) seem to make it into the
instruction table.  This also generates an instruction table for
zero-length instructions, which of course can never actually be
accessed.  Quiet a compiler warning by simply not emitting this
useless table.  Ideally we shouldn't emit the pseudo-instructions
either, but that is a bigger change, and it's hardly a lot of memory
involved.
2008-06-05 12:28:00 -07:00
H. Peter Anvin
b2072eacd3 NASM 2.03rc6 2008-06-05 12:14:39 -07:00
H. Peter Anvin
533fb7e1f5 doc: Remove superfluous comma. 2008-06-04 17:24:35 -07:00
H. Peter Anvin
9e20016eda Add %defstr, %idefstr
Add %defstr and %idefstr, to define a macro as a quoted string.
2008-06-04 17:23:14 -07:00
Charles Crayne
0d3b89bc4e Merge branch 'master' of git+ssh://ccrayne@repo.or.cz/srv/git/nasm 2008-06-04 16:05:14 -07:00
Charles Crayne
cd3418016a Remove EQU for critical expression list
Allow redefine_label to update segment as well as offset,
thereby fixing bug which required EQU to be on the
critical expression list.
2008-06-04 15:53:21 -07:00
H. Peter Anvin
6609df9125 NASM 2.03rc5 2008-06-04 15:13:02 -07:00
H. Peter Anvin
f2936d729f Fix double free in %depend 2008-06-04 15:11:23 -07:00
H. Peter Anvin
88c9e1f88c Fix memory management issues with expanded %include
Ownership of the filename string was a bit fuzzy, with the result that
we were freeing it even though it was retained for use by __FILE__.
Clean up a number of other memory management issues with the new
quoting code, and change the stdscan implementation to one pass over
the string.
2008-06-04 11:26:59 -07:00
H. Peter Anvin
0eebf799db Update .gitignore, remove bogus dependency 2008-06-04 08:58:53 -07:00
H. Peter Anvin
3bc3c934d9 Makefile/dependency updates
Add quote.c to all the auxiliary Makefiles, and run "make alldeps".
2008-06-04 08:49:10 -07:00
H. Peter Anvin
64bd892d7f doc: Remove "what's new" since it is out of date 2008-06-02 18:32:01 -07:00
H. Peter Anvin
fbdd36cf72 quote: Change the definition of escp
Semi-arbitrary change of the definition of escp to the beginning of
the argument sequence instead of the initiator character.  This may
avoid an add in some code paths, and looks slightly cleaner to me.
2008-06-02 13:59:09 -07:00
H. Peter Anvin
2dff954903 quote: be consistent in not using C escapes for bytes
We used numbers in nasm_unquote and C escapes in nasm_quote - use
numbers in both places, just in case some C compiler does something
weird with '\r' and (especially) '\n'.
2008-06-02 10:38:54 -07:00
H. Peter Anvin
e46fec66ca nasm_unquote: make code a little more uniform
Make the code a bit more consistent:

- ndig is now always a countdown, and we always to the (p > escp+1)
  test to see if we got anything at all (this is to deal with stuff
  like \x without a digit.)
- Add missing break; after 'v' (bug!).
- Preinitialize nval to zero.
2008-06-02 10:02:36 -07:00
H. Peter Anvin
1df123bdbf quote: massively simplify nasm_skip_string()
Greatly simplify nasm_skip_string() by observing that for the purpose
of string skipping, all states other than st_backslash are equivalent
to st_start.
2008-06-02 09:57:46 -07:00
H. Peter Anvin
e8a092976e Document UTF-8 conversion better, use "byte" instead of "ASCII"
ASCII specifically refers to characters <= 127, so to use "ASCII" for
literal bytes is really confusing in a multibyte environment.  Give an
example of using Unicode escapes.
2008-06-01 23:00:23 -07:00
H. Peter Anvin
677befc461 Document that underscores in numbers is permitted. 2008-06-01 22:53:15 -07:00
H. Peter Anvin
00fe4e8fde NASM 2.03rc4 2008-06-01 22:37:32 -07:00
H. Peter Anvin
b86e62d826 Update CHANGES 2008-06-01 22:36:56 -07:00
H. Peter Anvin
c23b2a9d47 nasmdoc: document %substr, ... 2008-06-01 22:36:09 -07:00
H. Peter Anvin
39fe51eedf Fix bug where the WinHelp backend corrupts the internal data
WinHelp/RTF needs to convert \ to \\, but did so on the global data,
so the DIP output was corrupted.
2008-06-01 22:34:55 -07:00
H. Peter Anvin
427cc912f8 qstring: fix unquoting in %pathsearch directive
%pathsearch unquoting should be done on the "t" token, not on the
"tline" token...
2008-06-01 21:43:03 -07:00
H. Peter Anvin
6ecc159a54 qstring: backquoted strings seem to work now...
Hopefully backquoted strings should work correctly now.
2008-06-01 21:34:49 -07:00
H. Peter Anvin
8cad14bbcf qstring: first cut at full quoted string support in the preprocessor
First attempt at properly handle quoted strings in the preprocessor.
This also adds range support in %substr.

No support in the assembler yet.
2008-06-01 17:23:51 -07:00
H. Peter Anvin
7f2f8b35e6 qstring: add nasm_unquote() supporting ...
Add a nasm_unquote() function supporting the intended `...` syntax.
2008-06-01 16:07:48 -07:00
H. Peter Anvin
311d27d328 doc: Single section for all the date/time macros
Move all the date/time macros to a common section so we can give a
common example.  We don't have support for a fourth level of headers,
so just use a bulleted list.
2008-05-30 14:32:16 -07:00
H. Peter Anvin
7d6fae6537 doc: fix __UTC_DATE__ and __UTC_TIME__ description 2008-05-30 14:11:40 -07:00
H. Peter Anvin
1d19fbf537 incbin: use the macro name itself as context name
Use the macro name itself as the context name, this is consistent with
other standard macros.
2008-05-30 11:31:35 -07:00
H. Peter Anvin
6353a6c524 Update CHANGES 2008-05-30 11:08:14 -07:00
H. Peter Anvin
e2129a7272 Add missing %rotate directive to the FLOAT macro. 2008-05-30 11:06:28 -07:00
H. Peter Anvin
1b4efa816f incbin definition: use %? 2008-05-30 11:04:07 -07:00