]> granicus.if.org Git - yasm/log
yasm
21 years agoDisplay fatal errors as FATAL, and perform other error display cleanups.
Peter Johnson [Sun, 8 Jun 2003 22:58:21 +0000 (22:58 -0000)]
Display fatal errors as FATAL, and perform other error display cleanups.
Exit immediately after bad arch/objfmt/etc selections to avoid "bad option"
secondary errors.

svn path=/trunk/yasm/; revision=978

21 years agoMissed a couple instances of yasm__error(0, ...) -> yasm_fatal().
Peter Johnson [Sun, 8 Jun 2003 21:30:22 +0000 (21:30 -0000)]
Missed a couple instances of yasm__error(0, ...) -> yasm_fatal().

svn path=/trunk/yasm/; revision=977

21 years agoCheck for supported architectures (for now, just x86).
Peter Johnson [Sun, 8 Jun 2003 21:26:43 +0000 (21:26 -0000)]
Check for supported architectures (for now, just x86).
Call yasm_fatal() instead of yasm__error(0, ...).

svn path=/trunk/yasm/; revision=976

21 years agoMake yasm_fatal() and implementations take a list of printf-like parameters.
Peter Johnson [Sun, 8 Jun 2003 21:21:22 +0000 (21:21 -0000)]
Make yasm_fatal() and implementations take a list of printf-like parameters.
Also, don't abort(), just exit()... unlike internal errors, which we want a
backtrace for, fatal errors may happen during normal operation.

svn path=/trunk/yasm/; revision=975

21 years agoUse standard basename() function if available.
Peter Johnson [Sun, 8 Jun 2003 20:45:02 +0000 (20:45 -0000)]
Use standard basename() function if available.

svn path=/trunk/yasm/; revision=974

21 years agoSimplify preloaded search case by removing any library extension in
Peter Johnson [Sun, 8 Jun 2003 20:17:21 +0000 (20:17 -0000)]
Simplify preloaded search case by removing any library extension in
list_modules() rather than trying to figure it out in list_module_load().
Also avoids the corner failure case when archives aren't named *.a.

svn path=/trunk/yasm/; revision=973

21 years agoChange module loader interface a bit (use enum instead of string to specify
Peter Johnson [Sat, 7 Jun 2003 21:56:47 +0000 (21:56 -0000)]
Change module loader interface a bit (use enum instead of string to specify
module type), and make "yasm -[adfpr] help" work dynamically by scanning
preloaded symbols and filesystem directories.

svn path=/trunk/yasm/; revision=972

21 years agoSimplify RCSID() definition.
Peter Johnson [Sat, 7 Jun 2003 20:48:40 +0000 (20:48 -0000)]
Simplify RCSID() definition.

svn path=/trunk/yasm/; revision=971

21 years agoBe a bit friendlier to those compiling without HAVE_CONFIG_H by always
Peter Johnson [Wed, 4 Jun 2003 05:25:10 +0000 (05:25 -0000)]
Be a bit friendlier to those compiling without HAVE_CONFIG_H by always
including the "standard C" headers.

svn path=/trunk/yasm/; revision=965

21 years agoOnly include config.h if HAVE_CONFIG_H is defined.
Peter Johnson [Wed, 4 Jun 2003 05:03:40 +0000 (05:03 -0000)]
Only include config.h if HAVE_CONFIG_H is defined.

svn path=/trunk/yasm/; revision=964

21 years agoFix some Doxygen documentation nits. Comment-only change.
Peter Johnson [Mon, 2 Jun 2003 00:56:33 +0000 (00:56 -0000)]
Fix some Doxygen documentation nits.  Comment-only change.

svn path=/trunk/yasm/; revision=963

21 years agoDocument for Doxygen.
Peter Johnson [Mon, 2 Jun 2003 00:23:33 +0000 (00:23 -0000)]
Document for Doxygen.

svn path=/trunk/yasm/; revision=962

21 years agoChange parameter name for yasm_expr_extract_segment declaration to ep to
Peter Johnson [Mon, 2 Jun 2003 00:11:14 +0000 (00:11 -0000)]
Change parameter name for yasm_expr_extract_segment declaration to ep to
match documentation and function definition.
No functional change.

svn path=/trunk/yasm/; revision=961

21 years agoAdd an architecture to support the LC-3b ISA as used in the ECE 312 course
Peter Johnson [Sat, 31 May 2003 22:37:58 +0000 (22:37 -0000)]
Add an architecture to support the LC-3b ISA as used in the ECE 312 course
at the University of Illinois, Urbana-Champaign.
See http://courses.ece.uiuc.edu/ece312/ for more details.

svn path=/trunk/yasm/; revision=960

21 years agoReformat multi-file lists to use many += lines instead of using \
Peter Johnson [Sat, 31 May 2003 22:23:08 +0000 (22:23 -0000)]
Reformat multi-file lists to use many += lines instead of using \
(line-continued) lines.  Format-only change, no functional change.

svn path=/trunk/yasm/; revision=959

21 years agoMake architecture selectable at the command line.
Peter Johnson [Sat, 31 May 2003 16:59:54 +0000 (16:59 -0000)]
Make architecture selectable at the command line.
Also, fix bug that caused parser to not actually be selectable (any user
choice was overridden).

svn path=/trunk/yasm/; revision=958

21 years agoBring yasm_x86__bc_print() up-to-date with x86_jmp[rel] changes.
Peter Johnson [Tue, 27 May 2003 05:51:25 +0000 (05:51 -0000)]
Bring yasm_x86__bc_print() up-to-date with x86_jmp[rel] changes.

svn path=/trunk/yasm/; revision=957

21 years agoRename jmprel->jmp, JMPREL->JMP, JR->JMP, and others, as FAR jumps are not
Peter Johnson [Tue, 27 May 2003 05:41:08 +0000 (05:41 -0000)]
Rename jmprel->jmp, JMPREL->JMP, JR->JMP, and others, as FAR jumps are not
relative jumps.

svn path=/trunk/yasm/; revision=956

21 years agoAdd basic FAR test for things like jmp 4:5. The test for CALL FAR procedure
Peter Johnson [Tue, 27 May 2003 04:18:45 +0000 (04:18 -0000)]
Add basic FAR test for things like jmp 4:5.  The test for CALL FAR procedure
will have to wait for an objfmt with support for SEG (such as .OBJ).

svn path=/trunk/yasm/; revision=955

21 years agoAdd support for FAR call/jmp. Because of the jmp label, label equ seg:off
Peter Johnson [Tue, 27 May 2003 04:13:16 +0000 (04:13 -0000)]
Add support for FAR call/jmp.  Because of the jmp label, label equ seg:off
problem, adding this required adding some fields to x86_jmprel (now a
misnomer, as FAR jumps are absolute) to save the far opcode, and additional
support in libyasm's yasm_expr_* to properly handle the YASM_EXPR_SEGOFF
operator.

svn path=/trunk/yasm/; revision=954

21 years agoAdd lindex parameter to yasm_intnum_calc(), and add error messages for SEG,
Peter Johnson [Mon, 26 May 2003 19:16:44 +0000 (19:16 -0000)]
Add lindex parameter to yasm_intnum_calc(), and add error messages for SEG,
WRT, and ':' (SEGOFF) usage.  This change also brings the yasm_intnum_calc()
interface in line with the yasm_floatnum_calc() interface.

Note: This may not be the final place we want these error messages to reside,
but the lindex addition should remain for the sake of consistency.

svn path=/trunk/yasm/; revision=953

21 years agoFix crash in "no non-local label before `%s'" warning (misuse of s.tok).
Peter Johnson [Wed, 21 May 2003 00:39:24 +0000 (00:39 -0000)]
Fix crash in "no non-local label before `%s'" warning (misuse of s.tok).
Add testcase for this warning while we're at it.

svn path=/trunk/yasm/; revision=952

21 years agoFix crash on Linux due to double-fclose(). The NASM preprocessor was closing
Peter Johnson [Sat, 10 May 2003 20:05:39 +0000 (20:05 -0000)]
Fix crash on Linux due to double-fclose().  The NASM preprocessor was closing
the original input file, which was then closed again by the frontend.  Fix
saves the original file passed in and special-checks for it before calling
fclose().

svn path=/trunk/yasm/; revision=951

21 years agoPre-include libyasm/coretype.h to avoid #defining functions such as
Peter Johnson [Sat, 10 May 2003 05:40:44 +0000 (05:40 -0000)]
Pre-include libyasm/coretype.h to avoid #defining functions such as
yasm__strsep() (here) before their prototypes are declared (in coretype.h).
Header protections keep coretype.h from being included again (from libyasm.h).

svn path=/trunk/yasm/; revision=948

21 years agoWe're licensed under the 2-clause BSD license, not the 3-clause.
Peter Johnson [Mon, 5 May 2003 07:01:52 +0000 (07:01 -0000)]
We're licensed under the 2-clause BSD license, not the 3-clause.

svn path=/trunk/yasm/; revision=947

21 years agoRevert previous commit: stamp-h.in is now back in the top directory.
Peter Johnson [Mon, 5 May 2003 06:59:14 +0000 (06:59 -0000)]
Revert previous commit: stamp-h.in is now back in the top directory.

svn path=/trunk/yasm/; revision=946

21 years agoSimplify brief description. Comment-only change.
Peter Johnson [Mon, 5 May 2003 06:14:33 +0000 (06:14 -0000)]
Simplify brief description.  Comment-only change.

svn path=/trunk/yasm/; revision=945

21 years agoClean up and simplify libyasm.h options and symbol visibility:
Peter Johnson [Mon, 5 May 2003 03:42:12 +0000 (03:42 -0000)]
Clean up and simplify libyasm.h options and symbol visibility:
- Move config.h and util.h from libyasm (and installed libyasm) to top level.
- Move yasm_* functions from util.h to coretype.h.
- Remove a number of autoconf-related YASM_*_INTERNAL options from libyasm.h.
- Rename YASM_INTERNAL to YASM_LIB_INTERNAL; it now actually means what the
  comment describes: enables definitions that violate the yasm_* namespace.

While we're at it, no longer define YASM_LIB_INTERNAL from yasm frontend, so
it's closer to what a real typical libyasm-using application would look like.

svn path=/trunk/yasm/; revision=944

21 years agoDon't create a dependency on $(top_builddir)/re2c; BSD make can't figure out
Peter Johnson [Mon, 5 May 2003 01:38:07 +0000 (01:38 -0000)]
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

21 years agoChange how bytecode and section lists are allocated. When YASM_INTERNAL is not
Peter Johnson [Sun, 4 May 2003 22:15:09 +0000 (22:15 -0000)]
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

21 years agodmalloc expects never to get a NULL deallocation; nasm preproc expects
Peter Johnson [Sun, 4 May 2003 22:12:14 +0000 (22:12 -0000)]
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

21 years agoMake yasm_section_delete() static. It's unsafe to call from outside, because
Peter Johnson [Sun, 4 May 2003 20:31:57 +0000 (20:31 -0000)]
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

21 years agoComment for Doxygen documentation generation. Comment-only changes.
Peter Johnson [Sun, 4 May 2003 20:28:28 +0000 (20:28 -0000)]
Comment for Doxygen documentation generation.  Comment-only changes.

svn path=/trunk/yasm/; revision=939

21 years agoWatch placement of \internal Doxygen tag.
Peter Johnson [Sun, 4 May 2003 08:40:35 +0000 (08:40 -0000)]
Watch placement of \internal Doxygen tag.

svn path=/trunk/yasm/; revision=938

21 years agoComment for Doxygen documentation generation. Comment-only changes.
Peter Johnson [Sun, 4 May 2003 03:27:29 +0000 (03:27 -0000)]
Comment for Doxygen documentation generation.  Comment-only changes.

svn path=/trunk/yasm/; revision=937

21 years agoComment for Doxygen documentation generation.
Peter Johnson [Sun, 4 May 2003 01:39:10 +0000 (01:39 -0000)]
Comment for Doxygen documentation generation.

svn path=/trunk/yasm/; revision=936

21 years agoUndefine __STRICT__ANSI__ when compiling with gcc -ansi and glibc to avoid many
Peter Johnson [Sat, 3 May 2003 08:02:15 +0000 (08:02 -0000)]
Undefine __STRICT__ANSI__ when compiling with gcc -ansi and glibc to avoid many
spurious compiler warnings.

svn path=/trunk/yasm/; revision=924

21 years agoDon't use "select" as a variable name. Causes warnings on Linux, at the least
Peter Johnson [Sat, 3 May 2003 08:01:09 +0000 (08:01 -0000)]
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

21 years agoRemove typedefs for uint/uchar/ushort/ulong to avoid compiler warnings on Linux.
Peter Johnson [Sat, 3 May 2003 07:29:29 +0000 (07:29 -0000)]
Remove typedefs for uint/uchar/ushort/ulong to avoid compiler warnings on Linux.

svn path=/trunk/yasm/; revision=922

21 years agoInstall modules into pkglibdir rather than libdir, and rename to type_keyword
Peter Johnson [Sat, 3 May 2003 06:26:15 +0000 (06:26 -0000)]
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

21 years agoFix crash on the valid NASM preprocessor syntax:
Peter Johnson [Thu, 3 Apr 2003 06:14:29 +0000 (06:14 -0000)]
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

21 years agoCorrect typo "keword" in print_list_keyword_desc()
Michael Urman [Wed, 2 Apr 2003 03:38:50 +0000 (03:38 -0000)]
Correct typo "keword" in print_list_keyword_desc()

svn path=/trunk/yasm/; revision=919

21 years agoAvoid "unrecognized option `help'" error on "-[fprg] help".
Peter Johnson [Wed, 2 Apr 2003 03:27:45 +0000 (03:27 -0000)]
Avoid "unrecognized option `help'" error on "-[fprg] help".

svn path=/trunk/yasm/; revision=918

21 years agoAdd module listing on "-[fprg] help" so users know what's available.
Michael Urman [Tue, 1 Apr 2003 20:12:34 +0000 (20:12 -0000)]
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

21 years agoSplit short and long options when they don't fit in the first column alone.
Michael Urman [Tue, 1 Apr 2003 19:53:30 +0000 (19:53 -0000)]
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

21 years agoDisable yapp usage and default to "real" nasm preprocessor.
Peter Johnson [Tue, 1 Apr 2003 07:26:33 +0000 (07:26 -0000)]
Disable yapp usage and default to "real" nasm preprocessor.

svn path=/trunk/yasm/; revision=910

21 years agoRemove yapp from Mkfiles builds.
Peter Johnson [Tue, 1 Apr 2003 07:01:46 +0000 (07:01 -0000)]
Remove yapp from Mkfiles builds.

svn path=/trunk/yasm/; revision=909

21 years agoAdd library install directory to ltdl search directory list.
Peter Johnson [Tue, 1 Apr 2003 06:57:37 +0000 (06:57 -0000)]
Add library install directory to ltdl search directory list.

svn path=/trunk/yasm/; revision=908

21 years agoRename yasm-module to yasm_module for better libtool compatibility (part of
Peter Johnson [Tue, 1 Apr 2003 05:24:32 +0000 (05:24 -0000)]
Rename yasm-module to yasm_module for better libtool compatibility (part of
tracking down an installation bug).

svn path=/trunk/yasm/; revision=907

21 years agoImplemented -I and -P command line options frontend, nasm and raw preprocs.
Michael Urman [Tue, 1 Apr 2003 04:06:47 +0000 (04:06 -0000)]
Implemented -I and -P command line options frontend, nasm and raw preprocs.

svn path=/trunk/yasm/; revision=906

21 years agoRemove references to yapp source files now that it's no longer being built.
Peter Johnson [Tue, 1 Apr 2003 01:21:16 +0000 (01:21 -0000)]
Remove references to yapp source files now that it's no longer being built.

svn path=/trunk/yasm/; revision=905

21 years agoStart commenting for Doxygen documentation generation. Comment-only changes.
Peter Johnson [Mon, 31 Mar 2003 08:22:05 +0000 (08:22 -0000)]
Start commenting for Doxygen documentation generation.  Comment-only changes.

svn path=/trunk/yasm/; revision=904

21 years agoFlatten arch interface, changing some parse function names in the process.
Peter Johnson [Mon, 31 Mar 2003 05:36:30 +0000 (05:36 -0000)]
Flatten arch interface, changing some parse function names in the process.
No functional changes.

svn path=/trunk/yasm/; revision=903

21 years agoFor now, remove yapp from the build. It needs rewriting and currently the
Peter Johnson [Mon, 31 Mar 2003 05:13:29 +0000 (05:13 -0000)]
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

21 years agoProtect yasm_bc_new_common() by YASM_INTERNAL ifdef as it uses
Peter Johnson [Sun, 30 Mar 2003 23:22:50 +0000 (23:22 -0000)]
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

21 years agoMove libyasm/file.h out of YASM_INTERNAL only inclusion (always include it).
Peter Johnson [Sun, 30 Mar 2003 21:27:25 +0000 (21:27 -0000)]
Move libyasm/file.h out of YASM_INTERNAL only inclusion (always include it).

svn path=/trunk/yasm/; revision=900

21 years agoClean up formatting of options[] array (whitespace only change).
Peter Johnson [Sat, 29 Mar 2003 19:32:40 +0000 (19:32 -0000)]
Clean up formatting of options[] array (whitespace only change).

svn path=/trunk/yasm/; revision=899

21 years agoRe-license under 2-clause BSD license.
Peter Johnson [Fri, 28 Mar 2003 07:06:46 +0000 (07:06 -0000)]
Re-license under 2-clause BSD license.

svn path=/trunk/yasm/; revision=898

21 years agoBump copyright year range.
Peter Johnson [Fri, 28 Mar 2003 07:02:56 +0000 (07:02 -0000)]
Bump copyright year range.

svn path=/trunk/yasm/; revision=897

21 years agoUpdate DJGPP and flat Makefiles and config.h with new source organization.
Peter Johnson [Wed, 26 Mar 2003 07:56:50 +0000 (07:56 -0000)]
Update DJGPP and flat Makefiles and config.h with new source organization.

svn path=/trunk/yasm/; revision=890

21 years agoUpdate DJGPP and flat Makefiles and config.h with new source organization.
Peter Johnson [Wed, 26 Mar 2003 07:56:50 +0000 (07:56 -0000)]
Update DJGPP and flat Makefiles and config.h with new source organization.

svn path=/trunk/yasm/; revision=889

21 years agoUse system include instead of local include in vc/yasm-module.c as well.
Peter Johnson [Wed, 26 Mar 2003 07:45:39 +0000 (07:45 -0000)]
Use system include instead of local include in vc/yasm-module.c as well.

svn path=/trunk/yasm/; revision=888

21 years agoUse system includes instead of local includes. This allows replacement of
Peter Johnson [Wed, 26 Mar 2003 05:07:57 +0000 (05:07 -0000)]
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

21 years agoForgot win32_test.sh in initial win32 objfmt commit.
Peter Johnson [Tue, 25 Mar 2003 02:32:24 +0000 (02:32 -0000)]
Forgot win32_test.sh in initial win32 objfmt commit.

svn path=/trunk/yasm/; revision=886

21 years agoAdd Win32 object format.
Peter Johnson [Mon, 24 Mar 2003 06:57:21 +0000 (06:57 -0000)]
Add Win32 object format.

svn path=/trunk/yasm/; revision=885

21 years agoAdd Win32 object format (untested, but compared against NASM output).
Peter Johnson [Mon, 24 Mar 2003 06:54:17 +0000 (06:54 -0000)]
Add Win32 object format (untested, but compared against NASM output).

svn path=/trunk/yasm/; revision=884

21 years agoDe-constify yasm_bytecode parameter to yasm_output_expr_func.
Peter Johnson [Mon, 24 Mar 2003 06:46:22 +0000 (06:46 -0000)]
De-constify yasm_bytecode parameter to yasm_output_expr_func.

svn path=/trunk/yasm/; revision=883

21 years agoUse re2c -s instead of re2c -b. -b generates code that causes extremely long
Peter Johnson [Sun, 23 Mar 2003 23:01:22 +0000 (23:01 -0000)]
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

21 years agoAdd some ELF32 support functions. Note: currently only supports little-endian
Peter Johnson [Wed, 19 Mar 2003 04:56:06 +0000 (04:56 -0000)]
Add some ELF32 support functions.  Note: currently only supports little-endian
ELF.

svn path=/trunk/yasm/; revision=881

21 years agoHandle absolute sections.
Peter Johnson [Tue, 18 Mar 2003 06:28:04 +0000 (06:28 -0000)]
Handle absolute sections.

svn path=/trunk/yasm/; revision=880

21 years agoAdd all_syms parameter to objfmt->output() for debugging purposes.
Peter Johnson [Tue, 18 Mar 2003 06:25:30 +0000 (06:25 -0000)]
Add all_syms parameter to objfmt->output() for debugging purposes.

svn path=/trunk/yasm/; revision=879

21 years agoAdd directive() and yasm_objfmt * parameter to initialize().
Peter Johnson [Tue, 18 Mar 2003 05:51:26 +0000 (05:51 -0000)]
Add directive() and yasm_objfmt * parameter to initialize().

svn path=/trunk/yasm/; revision=878

21 years agoRemove -Wtraditional. It's way too noisy in GCC 3.x.
Peter Johnson [Tue, 18 Mar 2003 05:00:54 +0000 (05:00 -0000)]
Remove -Wtraditional.  It's way too noisy in GCC 3.x.

svn path=/trunk/yasm/; revision=877

21 years agoTake out the CXX and GCJ tests; we don't need them, and they break builds on
Peter Johnson [Tue, 18 Mar 2003 04:42:49 +0000 (04:42 -0000)]
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

21 years agoAdd nasm and yapp to the list of allowed preprocessors.
Peter Johnson [Mon, 17 Mar 2003 02:06:49 +0000 (02:06 -0000)]
Add nasm and yapp to the list of allowed preprocessors.

svn path=/trunk/yasm/; revision=875

21 years agoFix header/type reference in comment.
Peter Johnson [Mon, 17 Mar 2003 00:42:20 +0000 (00:42 -0000)]
Fix header/type reference in comment.

svn path=/trunk/yasm/; revision=874

21 years agoEnable more warnings and perform code cleanups to avoid them.
Peter Johnson [Mon, 17 Mar 2003 00:03:02 +0000 (00:03 -0000)]
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

21 years agoyasm_vp_new() should take a char *, not a const char *.
Peter Johnson [Sun, 16 Mar 2003 23:53:31 +0000 (23:53 -0000)]
yasm_vp_new() should take a char *, not a const char *.

svn path=/trunk/yasm/; revision=872

21 years agoChange yasm__conv_unprint to take an int parameter instead of a char (safer).
Peter Johnson [Sun, 16 Mar 2003 23:52:54 +0000 (23:52 -0000)]
Change yasm__conv_unprint to take an int parameter instead of a char (safer).

svn path=/trunk/yasm/; revision=871

21 years agoMatch signedness of loop counters with loop bounds.
Peter Johnson [Sun, 16 Mar 2003 23:52:23 +0000 (23:52 -0000)]
Match signedness of loop counters with loop bounds.

svn path=/trunk/yasm/; revision=870

21 years agoAvoid warning by splitting LTDL_SET_PRELOADED_SYMBOLS() into its components.
Peter Johnson [Sun, 16 Mar 2003 23:50:59 +0000 (23:50 -0000)]
Avoid warning by splitting LTDL_SET_PRELOADED_SYMBOLS() into its components.

svn path=/trunk/yasm/; revision=869

21 years agoRemove unused yyaccept variables (eliminates warnings from generated code).
Peter Johnson [Sun, 16 Mar 2003 23:47:32 +0000 (23:47 -0000)]
Remove unused yyaccept variables (eliminates warnings from generated code).

svn path=/trunk/yasm/; revision=868

21 years agoInclude new Visual Studio build files in distribution.
Peter Johnson [Sun, 16 Mar 2003 01:04:43 +0000 (01:04 -0000)]
Include new Visual Studio build files in distribution.

svn path=/trunk/yasm/; revision=867

21 years agoRemove old Visual C++ makefile; new build structure is in vc subdirectory.
Peter Johnson [Sun, 16 Mar 2003 00:37:35 +0000 (00:37 -0000)]
Remove old Visual C++ makefile; new build structure is in vc subdirectory.

svn path=/trunk/yasm/; revision=866

21 years agoVisual Studio 6.0 build files (including generated .mak files) reflecting new
Peter Johnson [Sun, 16 Mar 2003 00:36:13 +0000 (00:36 -0000)]
Visual Studio 6.0 build files (including generated .mak files) reflecting new
source tree structure.

svn path=/trunk/yasm/; revision=865

21 years agoVisual Studio 6.0 build files (including generated .mak files) reflecting new
Peter Johnson [Sun, 16 Mar 2003 00:36:13 +0000 (00:36 -0000)]
Visual Studio 6.0 build files (including generated .mak files) reflecting new
source tree structure.

svn path=/trunk/yasm/; revision=864

21 years agoDon't try to use ltdl if compiling under Visual C++ (WIN32 defined).
Peter Johnson [Sun, 16 Mar 2003 00:19:19 +0000 (00:19 -0000)]
Don't try to use ltdl if compiling under Visual C++ (WIN32 defined).

svn path=/trunk/yasm/; revision=863

21 years agoDon't redefine NDEBUG if it's already defined.
Peter Johnson [Sun, 16 Mar 2003 00:17:08 +0000 (00:17 -0000)]
Don't redefine NDEBUG if it's already defined.

svn path=/trunk/yasm/; revision=862

21 years agoyasm_vp_new() should return its newly created structure!
Peter Johnson [Sun, 16 Mar 2003 00:02:15 +0000 (00:02 -0000)]
yasm_vp_new() should return its newly created structure!

svn path=/trunk/yasm/; revision=861

21 years agoUpdate to GNU Libtool 20030216 (from Cygwin) to get dynamic linking working
Peter Johnson [Sat, 15 Mar 2003 23:19:33 +0000 (23:19 -0000)]
Update to GNU Libtool 20030216 (from Cygwin) to get dynamic linking working
under Cygwin.

svn path=/trunk/yasm/; revision=860

21 years agoThis commit was generated by cvs2svn to compensate for changes in r857,
cvs2svn [Sat, 15 Mar 2003 23:08:41 +0000 (23:08 -0000)]
This commit was generated by cvs2svn to compensate for changes in r857,
which included commits to RCS files with non-trunk default branches.

svn path=/trunk/yasm/; revision=858

21 years agoInitial revision
Peter Johnson [Sat, 15 Mar 2003 22:04:29 +0000 (22:04 -0000)]
Initial revision

svn path=/trunk/yasm/; revision=853

21 years agoUse yasm__mergesort() in expr.c and use correct xmalloc/xfree in mergesort.c.
Peter Johnson [Sat, 15 Mar 2003 21:59:55 +0000 (21:59 -0000)]
Use yasm__mergesort() in expr.c and use correct xmalloc/xfree in mergesort.c.

svn path=/trunk/yasm/; revision=852

21 years agostamp-h.in is now in libyasm/.
Peter Johnson [Sat, 15 Mar 2003 07:17:42 +0000 (07:17 -0000)]
stamp-h.in is now in libyasm/.

svn path=/trunk/yasm/; revision=851

21 years agoSafe to use -no-undefined on all the modules.
Peter Johnson [Sat, 15 Mar 2003 07:15:05 +0000 (07:15 -0000)]
Safe to use -no-undefined on all the modules.

svn path=/trunk/yasm/; revision=850

21 years agoMake libyasm a "real" library, including installing header files.
Peter Johnson [Sat, 15 Mar 2003 05:07:49 +0000 (05:07 -0000)]
Make libyasm a "real" library, including installing header files.
Start separating modules and frontends from libyasm internals.

svn path=/trunk/yasm/; revision=849

21 years agoMinor cleanups (no functional changes) after src split.
Peter Johnson [Fri, 14 Mar 2003 04:40:04 +0000 (04:40 -0000)]
Minor cleanups (no functional changes) after src split.

svn path=/trunk/yasm/; revision=848

21 years agoSplit src into frontends, libyasm, and modules (forced commit after repo-copy).
Peter Johnson [Thu, 13 Mar 2003 06:55:46 +0000 (06:55 -0000)]
Split src into frontends, libyasm, and modules (forced commit after repo-copy).

svn path=/trunk/yasm/; revision=847

21 years agoReplace --enable-dev functionality with --enable-maintainer-mode usage, other
Peter Johnson [Thu, 13 Mar 2003 04:03:59 +0000 (04:03 -0000)]
Replace --enable-dev functionality with --enable-maintainer-mode usage, other
fixes and whitespace cleanup.  Renamed ANSI_CFLAGS to MORE_CFLAGS.  Enable
"morewarn" along with --enable-maintainer-mode if GCC is present by default.

svn path=/trunk/yasm/; revision=846

21 years agoUse AC_HELP_STRING() for custom argument help strings.
Peter Johnson [Thu, 13 Mar 2003 03:08:45 +0000 (03:08 -0000)]
Use AC_HELP_STRING() for custom argument help strings.

svn path=/trunk/yasm/; revision=845