lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Forgive my ignorance, but how would a traditional diff be best displayed in a text only format? For now I've put a + in front of the new lines:
    if ((L->hookmask & (LUA_MASKLINE | LUA_MASKCOUNT)) &&
        (--L->hookcount == 0 || L->hookmask & LUA_MASKLINE)) {
+      const lu_byte saved_status = L->status;
+      L->status = 0;
      traceexec(L, pc);
      if (L->status == LUA_YIELD) {  /* did hook yield? */
        L->savedpc = pc - 1;
        return;
      }
+      L->status = saved_status;
      base = L->base;

-----Original Message-----
From: lua-bounces@bazar2.conectiva.com.br [mailto:lua-bounces@bazar2.conectiva.com.br] On Behalf Of Rob Kendrick
Sent: 20 July 2009 14:29
To: lua@bazar2.conectiva.com.br
Subject: Re: Potential bug in Lua when hooking functions

On Mon, 20 Jul 2009 14:22:32 +0100
Jonathan Shaw <Jonathan.Shaw@microsoft.com> wrote:

> Proposed solution in RED  

In red?  It's all black here :)  Perhaps a traditional diff would be
better.

B.