diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-14 11:49:15 -0200 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 1998-01-14 11:49:15 -0200 |
| commit | b9acf4b4af2b600a7ee412045a4e78d430a998f9 (patch) | |
| tree | 47cbf365e985e312f4768444545460f137fab9fb | |
| parent | 44ace0aefd91d86553ff99633a3fe5cd5f9564c0 (diff) | |
| download | lua-b9acf4b4af2b600a7ee412045a4e78d430a998f9.tar.gz lua-b9acf4b4af2b600a7ee412045a4e78d430a998f9.tar.bz2 lua-b9acf4b4af2b600a7ee412045a4e78d430a998f9.zip | |
"strcoll" may not exist in ond ansi machines
| -rw-r--r-- | lvm.c | 7 |
1 files changed, 6 insertions, 1 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lvm.c,v 1.21 1997/12/30 19:08:23 roberto Exp roberto $ | 2 | ** $Id: lvm.c,v 1.22 1998/01/12 13:35:37 roberto Exp roberto $ |
| 3 | ** Lua virtual machine | 3 | ** Lua virtual machine |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -22,6 +22,11 @@ | |||
| 22 | #include "lvm.h" | 22 | #include "lvm.h" |
| 23 | 23 | ||
| 24 | 24 | ||
| 25 | #ifdef OLD_ANSI | ||
| 26 | #define strcoll(a,b) strcmp(a,b) | ||
| 27 | #endif | ||
| 28 | |||
| 29 | |||
| 25 | #define skip_word(pc) (pc+=2) | 30 | #define skip_word(pc) (pc+=2) |
| 26 | #define get_word(pc) (*(pc)+(*((pc)+1)<<8)) | 31 | #define get_word(pc) (*(pc)+(*((pc)+1)<<8)) |
| 27 | #define next_word(pc) (pc+=2, get_word(pc-2)) | 32 | #define next_word(pc) (pc+=2, get_word(pc-2)) |
