Update main files to include support for yapp.

This includes defaulting to yapp for ./yasm -e passes.

svn path=/trunk/yasm/; revision=482
0.3
Michael Urman 23 years ago
parent 62750a30d3
commit 6b65e7a522
  1. 2
      frontends/yasm/yasm.c
  2. 1
      libyasm/preproc.h
  3. 4
      modules/preprocs/Makefile.inc
  4. 2
      src/main.c
  5. 1
      src/preproc.c
  6. 1
      src/preproc.h
  7. 4
      src/preprocs/Makefile.inc

@ -189,7 +189,7 @@ main(int argc, char *argv[])
/* If not already specified, default to raw preproc. */
if (!cur_preproc)
cur_preproc = find_preproc("raw");
cur_preproc = find_preproc("yapp");
assert(cur_preproc != NULL);
/* Pre-process until done */

@ -48,6 +48,7 @@ struct preproc {
/* Available preprocessors */
extern preproc raw_preproc;
extern preproc yapp_preproc;
/* Finds a preproc based on its keyword. Returns NULL if no match was found.
*/

@ -1,8 +1,10 @@
# $IdPath$
EXTRA_DIST += \
src/preprocs/raw/Makefile.inc
src/preprocs/raw/Makefile.inc \
src/preprocs/yapp/Makefile.inc
YASMPREPROCFILES =
include src/preprocs/raw/Makefile.inc
include src/preprocs/yapp/Makefile.inc
yasm_SOURCES += $(YASMPREPROCFILES)

@ -189,7 +189,7 @@ main(int argc, char *argv[])
/* If not already specified, default to raw preproc. */
if (!cur_preproc)
cur_preproc = find_preproc("raw");
cur_preproc = find_preproc("yapp");
assert(cur_preproc != NULL);
/* Pre-process until done */

@ -34,6 +34,7 @@
/*@-nullassign@*/
static preproc *preprocs[] = {
&raw_preproc,
&yapp_preproc,
NULL
};
/*@=nullassign@*/

@ -48,6 +48,7 @@ struct preproc {
/* Available preprocessors */
extern preproc raw_preproc;
extern preproc yapp_preproc;
/* Finds a preproc based on its keyword. Returns NULL if no match was found.
*/

@ -1,8 +1,10 @@
# $IdPath$
EXTRA_DIST += \
src/preprocs/raw/Makefile.inc
src/preprocs/raw/Makefile.inc \
src/preprocs/yapp/Makefile.inc
YASMPREPROCFILES =
include src/preprocs/raw/Makefile.inc
include src/preprocs/yapp/Makefile.inc
yasm_SOURCES += $(YASMPREPROCFILES)

Loading…
Cancel
Save