From 73240932de4daa5193172bb4ca679ef03fa6928c Mon Sep 17 00:00:00 2001 From: cuz Date: Fri, 2 May 2003 14:38:27 +0000 Subject: [PATCH] Added getenv() git-svn-id: svn://svn.cc65.org/cc65/trunk@2123 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- libsrc/apple2/Makefile | 1 + libsrc/apple2/getenv.s | 12 ++++++++++++ libsrc/atmos/Makefile | 3 ++- libsrc/atmos/getenv.s | 12 ++++++++++++ 4 files changed, 27 insertions(+), 1 deletion(-) create mode 100644 libsrc/apple2/getenv.s create mode 100644 libsrc/atmos/getenv.s diff --git a/libsrc/apple2/Makefile b/libsrc/apple2/Makefile index 2a8b94ebe..bee0cb07d 100644 --- a/libsrc/apple2/Makefile +++ b/libsrc/apple2/Makefile @@ -37,6 +37,7 @@ OBJS= _scrsize.o \ crt0.o \ ctype.o \ cvline.o \ + getenv.o \ joy_stddrv.o \ kbhit.o \ mainargs.o \ diff --git a/libsrc/apple2/getenv.s b/libsrc/apple2/getenv.s new file mode 100644 index 000000000..c69ec35bc --- /dev/null +++ b/libsrc/apple2/getenv.s @@ -0,0 +1,12 @@ +; +; Ullrich von Bassewitz, 2003-05-02 +; +; char* getenv (const char* name); +; + + .export _getenv + .import return0 + +_getenv = return0 ; "not found" + + diff --git a/libsrc/atmos/Makefile b/libsrc/atmos/Makefile index 3b9bd42e6..55a57c860 100644 --- a/libsrc/atmos/Makefile +++ b/libsrc/atmos/Makefile @@ -30,6 +30,7 @@ S_OBJS = _scrsize.o \ crt0.o \ ctype.o \ cvline.o \ + getenv.o \ gotox.o \ gotoxy.o \ gotoy.o \ @@ -39,7 +40,7 @@ S_OBJS = _scrsize.o \ systime.o \ wherex.o \ wherey.o \ - write.o + write.o #-------------------------------------------------------------------------- # Targets diff --git a/libsrc/atmos/getenv.s b/libsrc/atmos/getenv.s new file mode 100644 index 000000000..c69ec35bc --- /dev/null +++ b/libsrc/atmos/getenv.s @@ -0,0 +1,12 @@ +; +; Ullrich von Bassewitz, 2003-05-02 +; +; char* getenv (const char* name); +; + + .export _getenv + .import return0 + +_getenv = return0 ; "not found" + + -- 2.39.5