bugWeeChat - Bugs: bug #41345, Sending a signal that is hooked to...

 
 

bug #41345: Sending a signal that is hooked to a function in other script calls other function with the same name in current script

Submitted by:  tomoe mami <tomoe_mami>
Submitted on:  Sat 25 Jan 2014 10:36:44 AM UTC  
 
Category:  script API plugins Severity:  3 - Normal
Item Group:  other Status:  Fixed
Privacy:  Public Assigned to:  Sebastien Helleu <flashcode>
Originator Name:  Open/Closed:  Closed
Release:  0.4.2 IRC nick:  tomoe-mami

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Sun 02 Feb 2014 07:34:01 PM UTC, comment #2:

Thanks, the warning should be fixed.

Sebastien Helleu <flashcode>
Project AdministratorIn charge of this item.
Sun 02 Feb 2014 05:16:01 PM UTC, comment #1:

After the commit http://git.savannah.gnu.org/gitweb/?p=weechat.git;a=commit;h=86a99af60625c78f685d43a8224c3750f2054a54 I'm getting a warning while compiling:

[ 79%] Building C object src/plugins/ruby/CMakeFiles/ruby.dir/weechat-ruby.o
/home/john/weechat/src/plugins/ruby/weechat-ruby.c:74:29: warning: initialization makes integer from pointer without a cast [enabled by default]

Anonymous
Sat 25 Jan 2014 10:36:44 AM UTC, original submission:

When a script (two.lua) send a signal that is hooked to a function in other script (one.lua), and inside that function I send another signal that is hooked to other function in two.lua that has the same name as the function inside one.lua, the one that is called by that second signal is the function inside one.lua. Not the correct callback for that signal in two.lua.

See attachments for example scripts.

tomoe mami <tomoe_mami>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

Attached Files
file #30373:  output added by tomoe_mami (275B - application/octet-stream - This is the expected output and the output by Weechat)
file #30371:  one.lua added by tomoe_mami (356B - text/x-lua)
file #30372:  two.lua added by tomoe_mami (353B - text/x-lua)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by flashcode (Updated the item)
  • -email is unavailable- added by tomoe_mami (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

     

     

    Follow 7 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2014-02-09 flashcode Open/ClosedOpen => Closed
    2014-01-25 flashcode StatusNone => Fixed
        Assigned toNone => flashcode
        Release2.4-dev => 0.4.2
    2014-01-25 tomoe_mami Attached File- => Added output, #30373
    2014-01-25 tomoe_mami Attached File- => Added one.lua, #30371
        Attached File- => Added two.lua, #30372

    Back to the top


    Powered by Savane 3.4