Peter Johnson
959c7e1427
Don't create a dependency on $(top_builddir)/re2c; BSD make can't figure out
...
that it's the same thing as "re2c" in the build directory.
svn path=/trunk/yasm/; revision=943
22 years ago
Peter Johnson
8f91cd9d24
Change how bytecode and section lists are allocated. When YASM_INTERNAL is not
...
defined, the structures for the list heads are not defined, so the existing
yasm_bcs_initialize() and yasm_sections_initialize() were impossible to use.
Instead, rename these functions to yasm_bcs_new() and yasm_sections_new() and
make them allocate the space internally. Update yasm_bcs_delete() and
yasm_sections_delete() to free the internally-allocated space.
svn path=/trunk/yasm/; revision=942
22 years ago
Peter Johnson
f25d1a44b0
dmalloc expects never to get a NULL deallocation; nasm preproc expects
...
nasm_free() to handle it, which it does as yasm_xfree(). But to avoid dmalloc
complaints, check for the NULL beforehand if dmalloc is in use.
svn path=/trunk/yasm/; revision=941
22 years ago
Peter Johnson
fd1c0ea4b3
Make yasm_section_delete() static. It's unsafe to call from outside, because
...
the only way to allocate a section is when making it a part of a section list,
and at present, the list is singly-linked internally.
svn path=/trunk/yasm/; revision=940
22 years ago
Peter Johnson
d710166b48
Comment for Doxygen documentation generation. Comment-only changes.
...
svn path=/trunk/yasm/; revision=939
22 years ago
Peter Johnson
f750093710
Watch placement of \internal Doxygen tag.
...
svn path=/trunk/yasm/; revision=938
22 years ago
Peter Johnson
fa6170c68d
Comment for Doxygen documentation generation. Comment-only changes.
...
svn path=/trunk/yasm/; revision=937
22 years ago
Peter Johnson
782210f44b
Comment for Doxygen documentation generation.
...
svn path=/trunk/yasm/; revision=936
22 years ago
Peter Johnson
f381195dc1
Undefine __STRICT__ANSI__ when compiling with gcc -ansi and glibc to avoid many
...
spurious compiler warnings.
svn path=/trunk/yasm/; revision=924
22 years ago
Peter Johnson
6755374824
Don't use "select" as a variable name. Causes warnings on Linux, at the least
...
(namespace violation on glibc's part).
svn path=/trunk/yasm/; revision=923
22 years ago
Peter Johnson
aa07d08e5c
Remove typedefs for uint/uchar/ushort/ulong to avoid compiler warnings on Linux.
...
svn path=/trunk/yasm/; revision=922
22 years ago
Peter Johnson
f9e36309e0
Install modules into pkglibdir rather than libdir, and rename to type_keyword
...
from yasm_keyword (separating same-keyword modules of different types). Update
yasm frontend module loader to handle this.
svn path=/trunk/yasm/; revision=921
22 years ago
Peter Johnson
ddbb053d1e
Fix crash on the valid NASM preprocessor syntax:
...
var: db 5
varlen equ $-var
%if varlen>100
...
%endif
by always acting like we're in preprocess-only mode and adjusting error
message appropriately.
This would be HARD to truly fix, as yasm only parses the input once.
svn path=/trunk/yasm/; revision=920
22 years ago
Michael Urman
eb115e9b5e
Correct typo "keword" in print_list_keyword_desc()
...
svn path=/trunk/yasm/; revision=919
22 years ago
Peter Johnson
1f3cd71224
Avoid "unrecognized option `help'" error on "-[fprg] help".
...
svn path=/trunk/yasm/; revision=918
22 years ago
Michael Urman
9a2f6e5381
Add module listing on "-[fprg] help" so users know what's available.
...
Lists are still made statically in yasm-module.c, so it's not magic. :(
svn path=/trunk/yasm/; revision=917
22 years ago
Michael Urman
4ab910d517
Split short and long options when they don't fit in the first column alone.
...
Shrink first column to 22 chars to let -e message fit.
svn path=/trunk/yasm/; revision=916
22 years ago
Peter Johnson
486718cd29
Disable yapp usage and default to "real" nasm preprocessor.
...
svn path=/trunk/yasm/; revision=910
22 years ago
Peter Johnson
928ab0a7c6
Remove yapp from Mkfiles builds.
...
svn path=/trunk/yasm/; revision=909
22 years ago
Peter Johnson
57a3269d17
Add library install directory to ltdl search directory list.
...
svn path=/trunk/yasm/; revision=908
22 years ago
Peter Johnson
c4fe05c29f
Rename yasm-module to yasm_module for better libtool compatibility (part of
...
tracking down an installation bug).
svn path=/trunk/yasm/; revision=907
22 years ago
Michael Urman
9399c65459
Implemented -I and -P command line options frontend, nasm and raw preprocs.
...
svn path=/trunk/yasm/; revision=906
22 years ago
Peter Johnson
8b0413d87d
Remove references to yapp source files now that it's no longer being built.
...
svn path=/trunk/yasm/; revision=905
22 years ago
Peter Johnson
87ce995335
Start commenting for Doxygen documentation generation. Comment-only changes.
...
svn path=/trunk/yasm/; revision=904
22 years ago
Peter Johnson
0ab3ae5153
Flatten arch interface, changing some parse function names in the process.
...
No functional changes.
svn path=/trunk/yasm/; revision=903
22 years ago
Peter Johnson
cdb3cedb7c
For now, remove yapp from the build. It needs rewriting and currently the
...
"real" nasm preprocessor serves its purpose well enough.
svn path=/trunk/yasm/; revision=902
22 years ago
Peter Johnson
e4daeb8d19
Protect yasm_bc_new_common() by YASM_INTERNAL ifdef as it uses
...
yasm_bytecode_type which is only defined under YASM_INTERNAL.
svn path=/trunk/yasm/; revision=901
22 years ago
Peter Johnson
22d86befb3
Move libyasm/file.h out of YASM_INTERNAL only inclusion (always include it).
...
svn path=/trunk/yasm/; revision=900
22 years ago
Peter Johnson
4d37cb578f
Clean up formatting of options[] array (whitespace only change).
...
svn path=/trunk/yasm/; revision=899
22 years ago
Peter Johnson
cf9d5864ea
Re-license under 2-clause BSD license.
...
svn path=/trunk/yasm/; revision=898
22 years ago
Peter Johnson
6d8f981861
Bump copyright year range.
...
svn path=/trunk/yasm/; revision=897
22 years ago
Peter Johnson
6a4ff9755c
Update DJGPP and flat Makefiles and config.h with new source organization.
...
svn path=/trunk/yasm/; revision=890
22 years ago
Peter Johnson
3afea5a845
Update DJGPP and flat Makefiles and config.h with new source organization.
...
svn path=/trunk/yasm/; revision=889
22 years ago
Peter Johnson
a198f99f3c
Use system include instead of local include in vc/yasm-module.c as well.
...
svn path=/trunk/yasm/; revision=888
22 years ago
Peter Johnson
ddc08a6994
Use system includes instead of local includes. This allows replacement of
...
key headers in certain situations (config.h when compiling with Visual C++ for
one), and is also more correct in general.
svn path=/trunk/yasm/; revision=887
22 years ago
Peter Johnson
1752e2102d
Forgot win32_test.sh in initial win32 objfmt commit.
...
svn path=/trunk/yasm/; revision=886
22 years ago
Peter Johnson
8b4f748b53
Add Win32 object format.
...
svn path=/trunk/yasm/; revision=885
22 years ago
Peter Johnson
6960b31329
Add Win32 object format (untested, but compared against NASM output).
...
svn path=/trunk/yasm/; revision=884
22 years ago
Peter Johnson
dd1d356936
De-constify yasm_bytecode parameter to yasm_output_expr_func.
...
svn path=/trunk/yasm/; revision=883
22 years ago
Peter Johnson
0894df99ca
Use re2c -s instead of re2c -b. -b generates code that causes extremely long
...
gcc 3.x compile times.
svn path=/trunk/yasm/; revision=882
22 years ago
Peter Johnson
ab65967e03
Add some ELF32 support functions. Note: currently only supports little-endian
...
ELF.
svn path=/trunk/yasm/; revision=881
22 years ago
Peter Johnson
c7c5e665e6
Handle absolute sections.
...
svn path=/trunk/yasm/; revision=880
22 years ago
Peter Johnson
395ebb7a0f
Add all_syms parameter to objfmt->output() for debugging purposes.
...
svn path=/trunk/yasm/; revision=879
22 years ago
Peter Johnson
3931d43ee0
Add directive() and yasm_objfmt * parameter to initialize().
...
svn path=/trunk/yasm/; revision=878
22 years ago
Peter Johnson
1588b69e12
Remove -Wtraditional. It's way too noisy in GCC 3.x.
...
svn path=/trunk/yasm/; revision=877
22 years ago
Peter Johnson
e0d47c5366
Take out the CXX and GCJ tests; we don't need them, and they break builds on
...
some OS'es.
svn path=/trunk/yasm/; revision=876
22 years ago
Peter Johnson
8d0646d6ba
Add nasm and yapp to the list of allowed preprocessors.
...
svn path=/trunk/yasm/; revision=875
22 years ago
Peter Johnson
d33611b360
Fix header/type reference in comment.
...
svn path=/trunk/yasm/; revision=874
22 years ago
Peter Johnson
0caa11ff3b
Enable more warnings and perform code cleanups to avoid them.
...
When -Werror is used, disable -Wconversion, because flex-generated code causes
warnings when calling fwrite() and fread().
svn path=/trunk/yasm/; revision=873
22 years ago
Peter Johnson
a8b2d5e2dc
yasm_vp_new() should take a char *, not a const char *.
...
svn path=/trunk/yasm/; revision=872
22 years ago