diff --git a/src/platforms/amd64/linux/conversion.c b/src/platforms/amd64/linux/conversion.c index ad875a4..4c17cf2 100644 --- a/src/platforms/amd64/linux/conversion.c +++ b/src/platforms/amd64/linux/conversion.c @@ -1,7 +1,7 @@ #include "../../common/types.h" #include "string.h" -String intToString (Int integer) asm ("Standard.Conversion.intToString"); +String intToString (Int integer) asm ("\"Standard.Conversion~intToString\""); String intToString (Int integer) { // The following is a hack. @@ -43,7 +43,7 @@ String intToString (Int integer) return result; } -Int stringToInt (const String string) asm ("Standard.Conversion.stringToInt"); +Int stringToInt (const String string) asm ("\"Standard.Conversion~stringToInt\""); Int stringToInt (const String string) { if (string->size == 0) diff --git a/src/platforms/amd64/linux/conversion.h b/src/platforms/amd64/linux/conversion.h index d726560..f6ae008 100644 --- a/src/platforms/amd64/linux/conversion.h +++ b/src/platforms/amd64/linux/conversion.h @@ -7,10 +7,10 @@ * Converts an integer into a string. * @return A new string instance, representing the given integer value. */ -String intToString (Int integer) asm ("Standard.Conversion.intToString"); +String intToString (Int integer) asm ("\"Standard.Conversion~intToString\""); /** * Convert a string into an integer. * @return The integer value the given string represents. */ -Int stringToInt (const String string) asm ("Standard.Conversion.stringToInt"); +Int stringToInt (const String string) asm ("\"Standard.Conversion~stringToInt\""); diff --git a/src/platforms/amd64/linux/io.c b/src/platforms/amd64/linux/io.c index b19276a..ea4ece1 100644 --- a/src/platforms/amd64/linux/io.c +++ b/src/platforms/amd64/linux/io.c @@ -7,7 +7,7 @@ * Writes a string to the standard output. * @param text The string to write. */ -void write (const String text) asm ("Standard.Io.write"); +void write (const String text) asm ("\"Standard.Io~write\""); void write (const String text) { Int fileDescriptor = 1; // File descriptor ID for stdout @@ -26,7 +26,7 @@ void write (const String text) * Writes a string to the standard output, followed by a line break. * @param text The string to write. */ -void writeLine (const String text) asm ("Standard.Io.writeLine"); +void writeLine (const String text) asm ("\"Standard.Io~writeLine\""); void writeLine (const String text) { UInt8* lineBreakLiteralChar = { "\n" }; @@ -45,7 +45,7 @@ void writeLine (const String text) * Reads a line from the standard input. * @return The string that has been read in. Does not include the line break. */ -String readLine () asm ("Standard.Io.readLine"); +String readLine () asm ("\"Standard.Io~readLine\""); String readLine () { Int fileDescriptor = 0; // File descriptor ID for stdin diff --git a/src/platforms/amd64/linux/memory.c b/src/platforms/amd64/linux/memory.c index 6578e2f..623ec69 100644 --- a/src/platforms/amd64/linux/memory.c +++ b/src/platforms/amd64/linux/memory.c @@ -6,7 +6,7 @@ * @param size The size of the memory block to allocate. * @return The pointer to the allocated memory. */ -void* allocate (UInt size) asm ("Standard.Memory.allocate"); +void* allocate (UInt size) asm ("\"Standard.Memory~allocate\""); void* allocate (UInt size) { void* address = 0; diff --git a/src/platforms/amd64/linux/memory.h b/src/platforms/amd64/linux/memory.h index 5a17752..1d0c64a 100644 --- a/src/platforms/amd64/linux/memory.h +++ b/src/platforms/amd64/linux/memory.h @@ -3,5 +3,5 @@ #include "../../common/memory.h" #include "../../common/types.h" -void* allocate (UInt size) asm ("Standard.Memory.allocate"); +void* allocate (UInt size) asm ("\"Standard.Memory~allocate\""); void free (const void* address, UInt size); diff --git a/src/platforms/amd64/linux/random.c b/src/platforms/amd64/linux/random.c index 7613a6b..31f78e0 100644 --- a/src/platforms/amd64/linux/random.c +++ b/src/platforms/amd64/linux/random.c @@ -3,7 +3,7 @@ static Int seed = 0; -void randomise () asm ("Standard.Random.randomise"); +void randomise () asm ("\"Standard.Random~randomise\""); void randomise () { UInt syscode = SYSCODE_GET_RANDOM; @@ -29,7 +29,7 @@ void randomise () // TODO: Check return value. } -Int getRandom (Int range) asm ("Standard.Random.getRandom"); +Int getRandom (Int range) asm ("\"Standard.Random~getRandom\""); Int getRandom (Int range) { seed = (seed * 1103515245 + 12345); diff --git a/src/platforms/amd64/linux/random.h b/src/platforms/amd64/linux/random.h index c823a99..0831a39 100644 --- a/src/platforms/amd64/linux/random.h +++ b/src/platforms/amd64/linux/random.h @@ -4,4 +4,4 @@ void randomise () asm ("Standard.Random.randomise"); -Int getRandom (Int range) asm ("Standard.Random.getRandom"); +Int getRandom (Int range) asm ("Standard.Random..getRandom"); diff --git a/src/platforms/amd64/linux/sleep.c b/src/platforms/amd64/linux/sleep.c index e93ede3..7daa0aa 100644 --- a/src/platforms/amd64/linux/sleep.c +++ b/src/platforms/amd64/linux/sleep.c @@ -12,7 +12,7 @@ struct SleepTimeSpec * Waits for the given amount of milliseconds. * @param milliseconds The number of milliseconds to wait for. */ -void sleep (UInt milliseconds) asm ("Standard.Sleep.sleep"); +void sleep (UInt milliseconds) asm ("\"Standard.Sleep~sleep\""); void sleep (UInt milliseconds) { struct SleepTimeSpec sleepTimeSpec = { diff --git a/src/platforms/common/string.c b/src/platforms/common/string.c index 290c234..eb17f06 100644 --- a/src/platforms/common/string.c +++ b/src/platforms/common/string.c @@ -1,7 +1,7 @@ #include "types.h" #include "string.h" -Bool stringsAreEqual (const String string1, const String string2) asm ("Standard.String.stringsAreEqual"); +Bool stringsAreEqual (const String string1, const String string2) asm ("\"Standard.String~stringsAreEqual\""); Bool stringsAreEqual (const String string1, const String string2) { if (string1->size != string2->size) diff --git a/src/platforms/common/string.h b/src/platforms/common/string.h index 5d863b3..aa6197f 100644 --- a/src/platforms/common/string.h +++ b/src/platforms/common/string.h @@ -15,4 +15,4 @@ typedef struct */ typedef const StringValue* String; -Bool stringsAreEqual (const String string1, const String string2) asm ("Standard.String.stringsAreEqual"); +Bool stringsAreEqual (const String string1, const String string2) asm ("\"Standard.String~stringsAreEqual\"");