Wireshark-bugs: [Wireshark-bugs] [Bug 5976] wslua_debug hides Lua's debug table

Date: Sat, 4 Jun 2011 16:37:34 -0700 (PDT)

Bobby Tables <tony19@xxxxxxxxx> changed:

           What    |Removed                     |Added
   Attachment #6460|                            |review_for_checkin?
               Flag|                            |

--- Comment #1 from Bobby Tables <tony19@xxxxxxxxx> 2011-06-04 19:37:33 EDT ---
Created an attachment (id=6460)
 --> (https://bugs.wireshark.org/bugzilla/attachment.cgi?id=6460)
Patch - adds 'log_' prefix to loggers; aliases loggers w/old names

I renamed all logger functions ("warn", "debug", "info", etc) to include a
"log_" prefix. 

I modified template-init.lua to include aliases to the old logger names in
order to provide backward compatibility. The template also defines:

A global variable to allow access to the Lua debug table while allowing for the
'debug' alias.

2) log_fix_names(): 
To undo the aliasing (i.e., restore 'debug' to its original and real self),
call log_fix_names() from Lua. This would be useful for 3rd-party Lua libraries
that require 'debug' to really be the Lua debug table.

NOTE: At some point, the aliasing should be removed, and Lua developers will be
required to use the real logger names.

Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.