]> git.sur5r.net Git - cc65/commitdiff
Added getenv()
authorcuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 2 May 2003 14:38:27 +0000 (14:38 +0000)
committercuz <cuz@b7a2c559-68d2-44c3-8de9-860c34a00d81>
Fri, 2 May 2003 14:38:27 +0000 (14:38 +0000)
git-svn-id: svn://svn.cc65.org/cc65/trunk@2123 b7a2c559-68d2-44c3-8de9-860c34a00d81

libsrc/apple2/Makefile
libsrc/apple2/getenv.s [new file with mode: 0644]
libsrc/atmos/Makefile
libsrc/atmos/getenv.s [new file with mode: 0644]

index 2a8b94ebe7a59ddfc4fe0f7af48f3657945edff5..bee0cb07d824dc109c8bce98e86708c3495fce74 100644 (file)
@@ -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 (file)
index 0000000..c69ec35
--- /dev/null
@@ -0,0 +1,12 @@
+;
+; Ullrich von Bassewitz, 2003-05-02
+;
+; char* getenv (const char* name);
+;
+
+       .export         _getenv
+       .import         return0
+
+_getenv        = return0               ; "not found"
+
+                                   
index 3b9bd42e6ba3e571a1d2aa6071b5fafc0e44c773..55a57c860f7f1c83b95d8c2c1f116915fa472c76 100644 (file)
@@ -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 (file)
index 0000000..c69ec35
--- /dev/null
@@ -0,0 +1,12 @@
+;
+; Ullrich von Bassewitz, 2003-05-02
+;
+; char* getenv (const char* name);
+;
+
+       .export         _getenv
+       .import         return0
+
+_getenv        = return0               ; "not found"
+
+