Peter Johnson
193392dcb6
Fix LOTS of little nits. Primary changes:
...
- New intnum module to replace using just unsigned long (for >32 bit values).
Read values using BitVector instead of strtoul().
- Brought both floatnum and intnum into expr (still need to integrate calc for
floatnum).
- Add traversal function to ternary tree (for use by symrec_foreach).
- Change floatnum output interface from single/double/extended to byte size.
- Try to make floatnum/intnum interfaces very similar. Still needs work.
- Add/fix *_print functions, including interating ones for sections/bytecodes.
- Fix handling of $ and $$. Both now are properly parsed and bytecode'd.
- Print out all sections and symbol table in main() in preparation for work
on "cleanup" functionality between parser and optimizer stages (really part
of the parser stage).
svn path=/trunk/yasm/; revision=270
23 years ago
Peter Johnson
b13f4e4f87
malloc->xmalloc, strdup->xstrdup, and calloc->xcalloc. The x* family performs
...
error checking. Remove check for strdup() from configure, as we don't need it.
svn path=/trunk/yasm/; revision=253
23 years ago
Peter Johnson
98e25fc1f6
Add some (optional through configure) additional warning flags. Add options
...
to configure to enable profiling and enable -Werror. Make changes to ensure
everything builds with all additional warnings and -Werror enabled. Most of
these changes consist of adding "const" modifiers for functions that get
constant literal strings.
svn path=/trunk/yasm/; revision=252
23 years ago
Peter Johnson
d1d847d5bd
Add BitVector documentation. These docs are really for the Perl side, but
...
are certainly better than nothing.
svn path=/trunk/yasm/; revision=242
23 years ago
Peter Johnson
2f6a19295d
Remove redundant check for features.h, and cache GNU C Library test.
...
svn path=/trunk/yasm/; revision=219
23 years ago
Peter Johnson
df62b73779
Add check and BSD replacement for strsep(3).
...
svn path=/trunk/yasm/; revision=218
23 years ago
Peter Johnson
a002baa1df
Check for snprintf (used in Check suite). Also define _GNU_SOURCE for Check
...
to stop warnings on Linux.
svn path=/trunk/yasm/; revision=208
23 years ago
Peter Johnson
91f41e241b
Try to fix configure and automake files so everything builds a bit cleaner.
...
Also try to fix the warnings on the GNU C Library.
Still a lot of work and testing to be done here, but making progress.
svn path=/trunk/yasm/; revision=204
23 years ago
Peter Johnson
5bfb25663d
Autoconfize Check test suite, and make it work even if fork(), wait(), and
...
msg*() aren't available.
svn path=/trunk/yasm/; revision=201
23 years ago
Peter Johnson
3bd6541c5f
Allow make check and tests module to be disabled, as it's not portable yet.
...
svn path=/trunk/yasm/; revision=200
23 years ago
Peter Johnson
344727f824
Don't always check for Perl.
...
svn path=/trunk/yasm/; revision=191
23 years ago
Peter Johnson
9397744af8
Add unit test framework using Check ( http://check.sourceforge.net/ ).
...
Only test included right now is a tiny one for one bytecode function, but
will grow as time goes on.
TODO: check for non ANSI C things required by Check.
svn path=/trunk/yasm/; revision=190
23 years ago
Peter Johnson
ef19b09dc2
Limit some tools to --enable-dev only. Only check for and use them if
...
--enable-dev is passed to configure.
svn path=/trunk/yasm/; revision=184
23 years ago
Peter Johnson
50bd17cd18
Reorganize docs into programmer and user parts. Repo-copy contrib/queue to
...
programmer/queue.
svn path=/trunk/yasm/; revision=182
23 years ago
Peter Johnson
c72e48925e
Use automake for queue docs, otherwise distcheck complains.
...
svn path=/trunk/yasm/; revision=178
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
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
23 years ago
Peter Johnson
1f499ab545
Expand out list of generated Makefiles and add RCS id.
...
svn path=/trunk/yasm/; revision=171
23 years ago
Peter Johnson
d758a063b2
Add barebones optimizer module framework.
...
svn path=/trunk/yasm/; revision=169
23 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
23 years ago
Peter Johnson
fa6e459ce5
Use abort() instead of exit() if it's available for InternalError() and
...
Fatal().
svn path=/trunk/yasm/; revision=158
23 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
7faa6f4fc6
Add checks for <limits.h> and <sys/cdefs.h>.
...
svn path=/trunk/yasm/; revision=148
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
fa49ca5544
Add new subdirectories for new src/ directory structures.
...
svn path=/trunk/yasm/; revision=134
24 years ago
Peter Johnson
06cce4e4cd
Repo-copied include files to src to make automake/autoconf build structure
...
work properly. Changed Makefile.am, src/Makefile.am, and configure.in to
match directory changes.
svn path=/trunk/yasm/; revision=120
24 years ago
Peter Johnson
0804065bd4
Add --enable-dev option to force CFLAGS to "-ansi -pedantic -Wall -g".
...
svn path=/trunk/yasm/; revision=78
24 years ago
Peter Johnson
d6c52c0c74
Move extra autoconf/automake files to config/ directory.
...
svn path=/trunk/yasm/; revision=77
24 years ago
Peter Johnson
010ef7fe6e
Force standard C compilation.
...
svn path=/trunk/yasm/; revision=76
24 years ago
Peter Johnson
93c75c63a5
Add additional checks: const, size_t, vprintf() family, strtoul, and toascii.
...
svn path=/trunk/yasm/; revision=69
24 years ago
Peter Johnson
6b93227482
Use autoconf to determine when to include our implementation of strdup, so
...
remove util.c and create strdup.c. Make util.h, strdup.c, and several source
files use config.h defines.
svn path=/trunk/yasm/; revision=61
24 years ago
Michael Urman
3a6d83db51
Initial checkin of automake/autoconf files.
...
Proper split directory builds may fail on the lex/yacc generated files.
svn path=/trunk/yasm/; revision=56
24 years ago