diff options
| author | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-09-11 11:07:24 -0300 |
|---|---|---|
| committer | Roberto Ierusalimschy <roberto@inf.puc-rio.br> | 2006-09-11 11:07:24 -0300 |
| commit | a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7 (patch) | |
| tree | f452f26770539293979a3dbd752ee0b38b849123 /lstrlib.c | |
| parent | cedd2092ebe402e0c6d600969ec926496a8a9d22 (diff) | |
| download | lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.tar.gz lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.tar.bz2 lua-a7c9e45c64a4bff9bdaf0d1177509bdd00fc53f7.zip | |
avoid trailing white spaces
Diffstat (limited to 'lstrlib.c')
| -rw-r--r-- | lstrlib.c | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -1,5 +1,5 @@ | |||
| 1 | /* | 1 | /* |
| 2 | ** $Id: lstrlib.c,v 1.132 2006/04/26 20:41:19 roberto Exp roberto $ | 2 | ** $Id: lstrlib.c,v 1.133 2006/06/22 16:12:59 roberto Exp roberto $ |
| 3 | ** Standard library for string operations and pattern-matching | 3 | ** Standard library for string operations and pattern-matching |
| 4 | ** See Copyright Notice in lua.h | 4 | ** See Copyright Notice in lua.h |
| 5 | */ | 5 | */ |
| @@ -630,7 +630,7 @@ static void add_value (MatchState *ms, luaL_Buffer *b, const char *s, | |||
| 630 | break; | 630 | break; |
| 631 | } | 631 | } |
| 632 | default: { | 632 | default: { |
| 633 | luaL_argerror(L, 3, "string/function/table expected"); | 633 | luaL_argerror(L, 3, "string/function/table expected"); |
| 634 | return; | 634 | return; |
| 635 | } | 635 | } |
| 636 | } | 636 | } |
| @@ -639,7 +639,7 @@ static void add_value (MatchState *ms, luaL_Buffer *b, const char *s, | |||
| 639 | lua_pushlstring(L, s, e - s); /* keep original text */ | 639 | lua_pushlstring(L, s, e - s); /* keep original text */ |
| 640 | } | 640 | } |
| 641 | else if (!lua_isstring(L, -1)) | 641 | else if (!lua_isstring(L, -1)) |
| 642 | luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1)); | 642 | luaL_error(L, "invalid replacement value (a %s)", luaL_typename(L, -1)); |
| 643 | luaL_addvalue(b); /* add result to accumulator */ | 643 | luaL_addvalue(b); /* add result to accumulator */ |
| 644 | } | 644 | } |
| 645 | 645 | ||
