summaryrefslogtreecommitdiff
path: root/libc
diff options
context:
space:
mode:
Diffstat (limited to 'libc')
-rw-r--r--libc/Makefile4
-rw-r--r--libc/misc/strtol.c6
-rw-r--r--libc/string/string.c5
3 files changed, 10 insertions, 5 deletions
diff --git a/libc/Makefile b/libc/Makefile
index 7d1ceb9..a9a5460 100644
--- a/libc/Makefile
+++ b/libc/Makefile
@@ -15,6 +15,10 @@ DEFS=-D__LIBC__
include Make.defs
+ifeq ($(VERSION),)
+include VERSION
+endif
+
CFLAGS=$(ARCH) $(CCFLAGS) $(DEFS)
############################################################################
diff --git a/libc/misc/strtol.c b/libc/misc/strtol.c
index d8d62ea..25ea0ea 100644
--- a/libc/misc/strtol.c
+++ b/libc/misc/strtol.c
@@ -66,8 +66,8 @@ strtoul(const char *nptr, char **endptr, int base)
/* If base==0 and the string begins with "0x" then we're supposed
to assume that it's hexadecimal (base 16). */
- else
- if (base==0 && *nptr=='0')
+ if (base==0 && *nptr=='0')
+ {
if (toupper(*(nptr+1))=='X')
{
base=16;
@@ -80,7 +80,7 @@ strtoul(const char *nptr, char **endptr, int base)
base=8;
nptr++;
}
-
+ }
/* If base is still 0 (it was 0 to begin with and the string didn't begin
with "0"), then we are supposed to assume that it's base 10 */
diff --git a/libc/string/string.c b/libc/string/string.c
index d672e77..3c14e56 100644
--- a/libc/string/string.c
+++ b/libc/string/string.c
@@ -42,10 +42,11 @@ const char * str;
#ifdef PARANOID
push es
- push ds ; Im not sure if this is needed, so just in case.
+ push ds ! Im not sure if this is needed, so just in case.
pop es
cld
-#endif ! This is almost the same as memchr, but it can
+#endif
+ ! This is almost the same as memchr, but it can
! stay as a special.
#if __FIRST_ARG_IN_AX__