From: cuz Date: Fri, 2 May 2003 14:38:27 +0000 (+0000) Subject: Added getenv() X-Git-Tag: V2.12.0~1591 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=73240932de4daa5193172bb4ca679ef03fa6928c;p=cc65 Added getenv() git-svn-id: svn://svn.cc65.org/cc65/trunk@2123 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- 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" + +