Peter Johnson
7c8c850f10
optimizer.h should be listed in yasm_SOURCES and it wasn't.
...
svn path=/trunk/yasm/; revision=177
23 years ago
Peter Johnson
863ac29d02
Add doc to automake and configure.
...
Only build queue docs if dev is enabled (--enable-dev).
svn path=/trunk/yasm/; revision=176
23 years ago
Peter Johnson
4e810ecf77
Add queue(3) docs from FreeBSD.
...
svn path=/trunk/yasm/; revision=175
23 years ago
Peter Johnson
b2890b8f9d
$Id$ -> $IdPath$.
...
svn path=/trunk/yasm/; revision=174
23 years ago
Peter Johnson
23e3786f58
Reorder generated Makefile list a little (to be consistent with
...
src/Makefile.am).
svn path=/trunk/yasm/; revision=172
24 years ago
Peter Johnson
1f499ab545
Expand out list of generated Makefiles and add RCS id.
...
svn path=/trunk/yasm/; revision=171
24 years ago
Peter Johnson
d758a063b2
Add barebones optimizer module framework.
...
svn path=/trunk/yasm/; revision=169
24 years ago
Peter Johnson
305d332441
Add prefix on local functions so they're easy to find in the debugger.
...
svn path=/trunk/yasm/; revision=168
24 years ago
Peter Johnson
20daa47e62
Reindent to match other code for the most part.
...
svn path=/trunk/yasm/; revision=167
24 years ago
Peter Johnson
695ab62056
Whoa, oops! Bad bug in bytecode_new_common (wasn't returning allocated bc).
...
svn path=/trunk/yasm/; revision=166
24 years ago
Peter Johnson
f8b36698fa
Update file descriptions to indicate that these files are just for the
...
NASM-compatible parser.
svn path=/trunk/yasm/; revision=165
24 years ago
Peter Johnson
3c2a67ca1c
Use bytecode * instead of bytecode in parser.
...
Rename and restructure bytecode functions to make this use clearer.
svn path=/trunk/yasm/; revision=164
24 years ago
Peter Johnson
013530034e
Start building of sections and bytecodes in parser.
...
Still need to add section switching (currently never switches away from
default section).
svn path=/trunk/yasm/; revision=163
24 years ago
Peter Johnson
ca16006ce9
Allow whitespace before a directive.
...
svn path=/trunk/yasm/; revision=162
24 years ago
Peter Johnson
d6c93d5d7e
Use strcasecmp instead of strcmp when searching by keyword.
...
svn path=/trunk/yasm/; revision=161
24 years ago
Peter Johnson
303bc90f72
Add prototypes for strcasecmp and strncasecmp if we use our own implementation.
...
svn path=/trunk/yasm/; revision=160
24 years ago
Peter Johnson
c09f4addc8
Check for case-insensitive string comparisons. Use strcasecmp and strncasecmp
...
in the source: if stricmp or strcmpi is available, they're mapped to
strcasecmp.
svn path=/trunk/yasm/; revision=159
24 years ago
Peter Johnson
fa6e459ce5
Use abort() instead of exit() if it's available for InternalError() and
...
Fatal().
svn path=/trunk/yasm/; revision=158
24 years ago
Peter Johnson
84e0411c49
Use queue.h macros in section.h, and reference bytecode using bytecodehead.
...
Remove old "append" function from bytecode.h
Add generic parser functions, clean up parser struct.
svn path=/trunk/yasm/; revision=157
24 years ago
Peter Johnson
810cdc7e7b
Update to match outfmt->objfmt change.
...
svn path=/trunk/yasm/; revision=156
24 years ago
Peter Johnson
074b748ece
Rename outfmt to objfmt and related files and directories. "objfmt" is more
...
descriptive of what the module is actually used for ("output" is rather
generic).
svn path=/trunk/yasm/; revision=155
24 years ago
Michael Urman
2f630084b3
Updates to pass make distcheck.
...
Added linux as a bogus sysqueue.
svn path=/trunk/yasm/; revision=154
24 years ago
Peter Johnson
45df22d110
Convert to using gettext instead of the ugly errwarn constant strings.
...
NOTE: gettextize now needs to be run before building.
svn path=/trunk/yasm/; revision=153
24 years ago
Peter Johnson
86f7268ea8
Add RCSID().
...
svn path=/trunk/yasm/; revision=151
24 years ago
Peter Johnson
77fc6dd491
Standardize order of include statements as well as autoconf'ing those source
...
files that weren't yet.
svn path=/trunk/yasm/; revision=150
24 years ago
Peter Johnson
bcd6236091
Add RCSID() function.
...
Indent some of the preprocessor directives a bit nicer.
svn path=/trunk/yasm/; revision=149
24 years ago
Peter Johnson
7faa6f4fc6
Add checks for <limits.h> and <sys/cdefs.h>.
...
svn path=/trunk/yasm/; revision=148
24 years ago
Peter Johnson
a34646760c
Allow multiple labels on one line (it's still on the TODO list for NASM :).
...
svn path=/trunk/yasm/; revision=147
24 years ago
Peter Johnson
ae600ce442
Use STAILQ's for datavals and bytecodes.
...
svn path=/trunk/yasm/; revision=146
24 years ago
Peter Johnson
8d62e17ce2
Use the FreeBSD version of <sys/queue.h> instead of the OpenBSD version
...
because the OpenBSD version doesn't have STAILQ_*.
svn path=/trunk/yasm/; revision=145
24 years ago
Peter Johnson
b4668a5405
Use header-reuse #defines that are ANSI C compatible.
...
svn path=/trunk/yasm/; revision=144
24 years ago
Peter Johnson
28940100d4
Add <sys/queue.h> to util.h and pull in compatible, portable version from
...
OpenSSH-portable.
svn path=/trunk/yasm/; revision=143
24 years ago
Peter Johnson
b619f63541
Add check for <sys/queue.h> and specific checks for bogus implementations.
...
Idea taken from OpenSSH-portable.
svn path=/trunk/yasm/; revision=142
24 years ago
Peter Johnson
edf74fe9ea
Run through GNU indent using indent profile. Manually fix some changes
...
(particularly functions such as BuildBC_Insn() which have large numbers
of arguments).
svn path=/trunk/yasm/; revision=141
24 years ago
Peter Johnson
961e609d4d
Add dataval as a type.
...
svn path=/trunk/yasm/; revision=140
24 years ago
Peter Johnson
a674dcd93d
Add FILE as a type. Why it's not built-in, I don't know.
...
svn path=/trunk/yasm/; revision=139
24 years ago
Peter Johnson
5189b1b234
First version of indentation profile.
...
svn path=/trunk/yasm/; revision=138
24 years ago
Peter Johnson
382f245f47
Give prototype for nasm_parser_parse().
...
svn path=/trunk/yasm/; revision=137
24 years ago
Peter Johnson
5cd594556a
Declare type enum correctly.
...
svn path=/trunk/yasm/; revision=136
24 years ago
Peter Johnson
3ce026a098
Remove & from function pointer references.
...
svn path=/trunk/yasm/; revision=135
24 years ago
Peter Johnson
fa49ca5544
Add new subdirectories for new src/ directory structures.
...
svn path=/trunk/yasm/; revision=134
24 years ago
Peter Johnson
7ba343f346
New modular directory structure: parsers, preprocs, and outfmts.
...
Moved token.l.in, bison.y.in, and gen_instr.pl to parsers/nasm/.
New parser, preproc, and outfmt structures. None are complete; outfmt
needs the most work.
The raw preprocessor added (for no preprocessing).
Currently the default for the nasm parser is to use the raw preproc; this
should be changed to nasm_preproc once the nasm preprocessor is finished.
A dbg output format is also new; because outfmt isn't done yet, there's not
much implementation.
What structures still need creating: listfmt, debugfmt.
svn path=/trunk/yasm/; revision=133
24 years ago
Peter Johnson
ce3c2283b0
Update to reflect 0-based groupdata array.
...
svn path=/trunk/yasm/; revision=132
24 years ago
Peter Johnson
b3a5266c00
Add "error when reading from file" error.
...
svn path=/trunk/yasm/; revision=131
24 years ago
Peter Johnson
50cd4f238f
Add global filename variable and handling for a filename passed on the
...
command line (no real command-line parsing yet).
svn path=/trunk/yasm/; revision=130
24 years ago
Peter Johnson
1fa31332b6
Add lexing, parsing, and internal format for strings and character constants.
...
Completely handle data declarations (db/dw/etc) and reserve space declarations
(resb/resw/etc).
svn path=/trunk/yasm/; revision=129
24 years ago
Peter Johnson
bb595a8f02
Formatting changes and starting to comment more heavily.
...
svn path=/trunk/yasm/; revision=128
24 years ago
Peter Johnson
d4c6d24a9e
At least in NASM syntax, there is no differentation between labels and data
...
declarations, so delete SYM_DATA. We may add it back in someday if we add
another syntax.
svn path=/trunk/yasm/; revision=127
24 years ago
Peter Johnson
6232670d62
Add unary precedence to some of the expression rules.
...
Add '+' as a unary operator.
Change target to use expr instead of just explabel.
svn path=/trunk/yasm/; revision=126
24 years ago
Peter Johnson
1b34a9ea2a
Add strdup and strtoul replacements to EXTRA_DIST.
...
svn path=/trunk/yasm/; revision=125
24 years ago