Skip to content

Commit a9da238

Browse files
committed
LuaFAR: rename a variable
1 parent 773873a commit a9da238

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

plugins/luamacro/luafar/lf_regex.c

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ int func_gmatchW(lua_State *L) { return _Gmatch(L, 1, 1); }
162162
int method_gmatch(lua_State *L) { return _Gmatch(L, 0, 0); }
163163
int method_gmatchW(lua_State *L) { return _Gmatch(L, 0, 1); }
164164

165-
int rx_find_match(lua_State *L, int operation, int is_function, int is_wide)
165+
int rx_find_match(lua_State *L, int Op, int is_function, int is_wide)
166166
{
167167
size_t len;
168168
FARAPIREGEXPCONTROL RegExpControl = GetRegExpControl(L);
@@ -205,14 +205,14 @@ int rx_find_match(lua_State *L, int operation, int is_function, int is_wide)
205205
if (RegExpControl(fr->hnd, RECTL_SEARCHEX, 0, &data))
206206
{
207207
int i;
208-
int skip = (operation != OP_MATCH || data.Count>1) ? 1 : 0;
208+
int skip = (Op != OP_MATCH || data.Count>1) ? 1 : 0;
209209

210-
if (operation != OP_MATCH)
210+
if (Op != OP_MATCH)
211211
{
212212
lua_pushinteger(L, data.Match[0].start+1);
213213
lua_pushinteger(L, data.Match[0].end);
214214
}
215-
if (operation == OP_EXEC)
215+
if (Op == OP_EXEC)
216216
{
217217
lua_createtable(L, 2*(int)data.Count, 0);
218218
for(i=skip; i<data.Count; i++)
@@ -237,7 +237,7 @@ int rx_find_match(lua_State *L, int operation, int is_function, int is_wide)
237237
else
238238
{
239239
i = (int)data.Count - skip + 1;
240-
if (operation == OP_TFIND)
240+
if (Op == OP_TFIND)
241241
lua_newtable(L);
242242
else if (!lua_checkstack(L, i))
243243
luaL_error(L, "cannot add %d stack slots", i);
@@ -253,11 +253,11 @@ int rx_find_match(lua_State *L, int operation, int is_function, int is_wide)
253253
else
254254
lua_pushboolean(L, 0);
255255

256-
if (operation == OP_TFIND)
256+
if (Op == OP_TFIND)
257257
lua_rawseti(L, -2, i);
258258
}
259259
}
260-
switch (operation)
260+
switch (Op)
261261
{
262262
case OP_FIND: return 2 + (int)data.Count - skip;
263263
case OP_MATCH: return 0 + (int)data.Count - skip;

0 commit comments

Comments
 (0)