Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 689598 | Differences between
and this patch

Collapse All | Expand All

(-)old/src/luaconf.h (-5 / +5 lines)
Lines 340-353 Link Here
340
** CHANGE it to undefined as soon as your programs use only '...' to
340
** CHANGE it to undefined as soon as your programs use only '...' to
341
** access vararg parameters (instead of the old 'arg' table).
341
** access vararg parameters (instead of the old 'arg' table).
342
*/
342
*/
343
#define LUA_COMPAT_VARARG
343
#undef LUA_COMPAT_VARARG
344
344
345
/*
345
/*
346
@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
346
@@ LUA_COMPAT_MOD controls compatibility with old math.mod function.
347
** CHANGE it to undefined as soon as your programs use 'math.fmod' or
347
** CHANGE it to undefined as soon as your programs use 'math.fmod' or
348
** the new '%' operator instead of 'math.mod'.
348
** the new '%' operator instead of 'math.mod'.
349
*/
349
*/
350
#define LUA_COMPAT_MOD
350
#undef LUA_COMPAT_MOD
351
351
352
/*
352
/*
353
@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
353
@@ LUA_COMPAT_LSTR controls compatibility with old long string nesting
Lines 355-368 Link Here
355
** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
355
** CHANGE it to 2 if you want the old behaviour, or undefine it to turn
356
** off the advisory error when nesting [[...]].
356
** off the advisory error when nesting [[...]].
357
*/
357
*/
358
#define LUA_COMPAT_LSTR		1
358
#undef LUA_COMPAT_LSTR
359
359
360
/*
360
/*
361
@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
361
@@ LUA_COMPAT_GFIND controls compatibility with old 'string.gfind' name.
362
** CHANGE it to undefined as soon as you rename 'string.gfind' to
362
** CHANGE it to undefined as soon as you rename 'string.gfind' to
363
** 'string.gmatch'.
363
** 'string.gmatch'.
364
*/
364
*/
365
#define LUA_COMPAT_GFIND
365
#undef LUA_COMPAT_GFIND
366
366
367
/*
367
/*
368
@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
368
@@ LUA_COMPAT_OPENLIB controls compatibility with old 'luaL_openlib'
Lines 370-376 Link Here
370
** CHANGE it to undefined as soon as you replace to 'luaL_register'
370
** CHANGE it to undefined as soon as you replace to 'luaL_register'
371
** your uses of 'luaL_openlib'
371
** your uses of 'luaL_openlib'
372
*/
372
*/
373
#define LUA_COMPAT_OPENLIB
373
#undef LUA_COMPAT_OPENLIB
374
374
375
375
376
376
(-)old/test/sieve.lua~ (-1 / +1 lines)
Lines 14-20 Link Here
14
    while 1 do
14
    while 1 do
15
      local n = g()
15
      local n = g()
16
      if n == nil then return end
16
      if n == nil then return end
17
      if math.mod(n, p) ~= 0 then coroutine.yield(n) end
17
      if math.fmod(n, p) ~= 0 then coroutine.yield(n) end
18
    end
18
    end
19
  end)
19
  end)
20
end
20
end

Return to bug 689598