diff options
author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-07 14:36:56 -0300 |
---|---|---|
committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2002-05-07 14:36:56 -0300 |
commit | dea6b6da9422f34ad91c8f6ad9ad3ed650e95713 (patch) | |
tree | 3016b2fbcd67d75c71ee1b190aff2c24ada9b168 /ldebug.c | |
parent | 71144e3ff0cb81bd9b8bb56d94dc76074c638c64 (diff) | |
download | lua-dea6b6da9422f34ad91c8f6ad9ad3ed650e95713.tar.gz lua-dea6b6da9422f34ad91c8f6ad9ad3ed650e95713.tar.bz2 lua-dea6b6da9422f34ad91c8f6ad9ad3ed650e95713.zip |
new function `lua_vpushstr' to replace uses of `sprintf'
Diffstat (limited to 'ldebug.c')
-rw-r--r-- | ldebug.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,5 +1,5 @@ | |||
1 | /* | 1 | /* |
2 | ** $Id: ldebug.c,v 1.110 2002/04/24 20:07:46 roberto Exp roberto $ | 2 | ** $Id: ldebug.c,v 1.111 2002/05/02 13:06:20 roberto Exp roberto $ |
3 | ** Debug Interface | 3 | ** Debug Interface |
4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
5 | */ | 5 | */ |
@@ -487,10 +487,10 @@ void luaG_typeerror (lua_State *L, const TObject *o, const char *op) { | |||
487 | if (isinstack(L->ci, o)) | 487 | if (isinstack(L->ci, o)) |
488 | kind = getobjname(L, L->ci, o - L->ci->base, &name); | 488 | kind = getobjname(L, L->ci, o - L->ci->base, &name); |
489 | if (kind) | 489 | if (kind) |
490 | luaO_verror(L, "attempt to %.30s %.20s `%.40s' (a %.10s value)", | 490 | luaO_verror(L, "attempt to %s %s `%s' (a %s value)", |
491 | op, kind, name, t); | 491 | op, kind, name, t); |
492 | else | 492 | else |
493 | luaO_verror(L, "attempt to %.30s a %.10s value", op, t); | 493 | luaO_verror(L, "attempt to %s a %s value", op, t); |
494 | } | 494 | } |
495 | 495 | ||
496 | 496 | ||
@@ -513,8 +513,8 @@ void luaG_ordererror (lua_State *L, const TObject *p1, const TObject *p2) { | |||
513 | const char *t1 = luaT_typenames[ttype(p1)]; | 513 | const char *t1 = luaT_typenames[ttype(p1)]; |
514 | const char *t2 = luaT_typenames[ttype(p2)]; | 514 | const char *t2 = luaT_typenames[ttype(p2)]; |
515 | if (t1[2] == t2[2]) | 515 | if (t1[2] == t2[2]) |
516 | luaO_verror(L, "attempt to compare two %.10s values", t1); | 516 | luaO_verror(L, "attempt to compare two %s values", t1); |
517 | else | 517 | else |
518 | luaO_verror(L, "attempt to compare %.10s with %.10s", t1, t2); | 518 | luaO_verror(L, "attempt to compare %s with %s", t1, t2); |
519 | } | 519 | } |
520 | 520 | ||