diff options
author | Keith Kanios <spook@dynatos.net> | 2007-04-13 16:47:53 +0000 |
---|---|---|
committer | Keith Kanios <spook@dynatos.net> | 2007-04-13 16:47:53 +0000 |
commit | a6dfa78b7805673b2b4955a9f34e21825730f79d (patch) | |
tree | e92c44a08121248c0789b63d41908b402fcb891e /lcc | |
parent | 2cc61b34f0bc87010a649159f62d37d5ed529ee4 (diff) | |
download | nasm-a6dfa78b7805673b2b4955a9f34e21825730f79d.tar.gz nasm-a6dfa78b7805673b2b4955a9f34e21825730f79d.tar.bz2 nasm-a6dfa78b7805673b2b4955a9f34e21825730f79d.zip |
Fixed distinction between char and int8_t data types.
Diffstat (limited to 'lcc')
-rw-r--r-- | lcc/lin-aout.c | 18 | ||||
-rw-r--r-- | lcc/lin-elf.c | 18 |
2 files changed, 18 insertions, 18 deletions
diff --git a/lcc/lin-aout.c b/lcc/lin-aout.c index 9685e57..e4ac48f 100644 --- a/lcc/lin-aout.c +++ b/lcc/lin-aout.c @@ -8,31 +8,31 @@ #define NASMPATH "/usr/local/bin/nasm" -int8_t *cpp[] = { LCCDIR "cpp", "-D__STDC__=1", +char *cpp[] = { LCCDIR "cpp", "-D__STDC__=1", "-Di386", "-D__i386", "-D__i386__", "-Dlinux", "-D__linux", "-D__linux__", "-Dunix", "-D__unix", "-D__unix__", "$1", "$2", "$3", 0 }; -int8_t *include[] = { "-I" LCCDIR "include", "-I/usr/local/include", +char *include[] = { "-I" LCCDIR "include", "-I/usr/local/include", "-I/usr/include", 0 }; -int8_t *com[] = { LCCDIR "rcc", "-target=x86/nasm", +char *com[] = { LCCDIR "rcc", "-target=x86/nasm", "$1", "$2", "$3", 0 }; -int8_t *as[] = { NASMPATH, "-a", "-faout", "-o", "$3", "$1", "$2", 0 }; -int8_t *ld[] = { "/usr/bin/ld", "-m", "i386linux", +char *as[] = { NASMPATH, "-a", "-faout", "-o", "$3", "$1", "$2", 0 }; +char *ld[] = { "/usr/bin/ld", "-m", "i386linux", "-L/usr/i486-linuxaout/lib", "-o", "$3", "$1", "/usr/i486-linuxaout/lib/crt0.o", "$2", "", "-lc", 0 }; -static int8_t *bbexit = LCCDIR "bbexit.o"; +static char *bbexit = LCCDIR "bbexit.o"; -extern int8_t *concat(int8_t *, int8_t *); -extern int access(const int8_t *, int); +extern char *concat(char *, char *); +extern int access(const char *, int); -int option(int8_t *arg) +int option(char *arg) { if (strncmp(arg, "-lccdir=", 8) == 0) { cpp[0] = concat(&arg[8], "/cpp"); diff --git a/lcc/lin-elf.c b/lcc/lin-elf.c index 2f15de3..693309f 100644 --- a/lcc/lin-elf.c +++ b/lcc/lin-elf.c @@ -8,19 +8,19 @@ #define NASMPATH "/usr/local/bin/nasm" -int8_t *cpp[] = { LCCDIR "cpp", "-D__STDC__=1", +char *cpp[] = { LCCDIR "cpp", "-D__STDC__=1", "-D__ELF__", "-Di386", "-D__i386", "-D__i386__", "-Dlinux", "-D__linux", "-D__linux__", "$1", "$2", "$3", 0 }; -int8_t *include[] = { "-I" LCCDIR "include", "-I/usr/local/include", +char *include[] = { "-I" LCCDIR "include", "-I/usr/local/include", "-I/usr/include", 0 }; -int8_t *com[] = { LCCDIR "rcc", "-target=x86/nasm", +char *com[] = { LCCDIR "rcc", "-target=x86/nasm", "$1", "$2", "$3", 0 }; -int8_t *as[] = { NASMPATH, "-a", "-felf", "-o", "$3", "$1", "$2", 0 }; -int8_t *ld[] = { "/usr/bin/ld", "-m", "elf_i386", +char *as[] = { NASMPATH, "-a", "-felf", "-o", "$3", "$1", "$2", 0 }; +char *ld[] = { "/usr/bin/ld", "-m", "elf_i386", "-dynamic-linker", "/lib/ld-linux.so.1", "-L/usr/i486-linux/lib", "-o", "$3", "$1", @@ -28,12 +28,12 @@ int8_t *ld[] = { "/usr/bin/ld", "-m", "elf_i386", "$2", "", "-lc", "", "/usr/lib/crtend.o", "/usr/lib/crtn.o", 0 }; -static int8_t *bbexit = LCCDIR "bbexit.o"; +static char *bbexit = LCCDIR "bbexit.o"; -extern int8_t *concat(int8_t *, int8_t *); -extern int access(const int8_t *, int); +extern char *concat(char *, char *); +extern int access(const char *, int); -int option(int8_t *arg) +int option(char *arg) { if (strncmp(arg, "-lccdir=", 8) == 0) { cpp[0] = concat(&arg[8], "/cpp"); |