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

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Eric L.-2
URL:
  <http://savannah.nongnu.org/bugs/?41345>

                 Summary: Sending a signal that is hooked to a function in
other script calls other function with the same name in current script
                 Project: WeeChat
            Submitted by: tomoe_mami
            Submitted on: Sat 25 Jan 2014 10:36:44 AM GMT
                Category: script API plugins
                Severity: 3 - Normal
              Item Group: other
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name:
        Originator Email:
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 0.4.3-dev
                IRC nick: tomoe-mami

    _______________________________________________________

Details:

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.




    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Sat 25 Jan 2014 10:36:44 AM GMT  Name: one.lua  Size: 356B   By:
tomoe_mami

<http://savannah.nongnu.org/bugs/download.php?file_id=30371>
-------------------------------------------------------
Date: Sat 25 Jan 2014 10:36:44 AM GMT  Name: two.lua  Size: 353B   By:
tomoe_mami

<http://savannah.nongnu.org/bugs/download.php?file_id=30372>

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41345>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

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

Eric L.-2
Additional Item Attachment, bug #41345 (project weechat):

File name: output                         Size:0 KB


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41345>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

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

Eric L.-2
Update of bug #41345 (project weechat):

                  Status:                    None => Fixed                  
             Assigned to:                    None => flashcode              
                 Release:               0.4.3-dev => 0.4.2                  


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41345>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

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

Eric L.-2
Follow-up Comment #1, bug #41345 (project weechat):

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]


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41345>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev
Reply | Threaded
Open this post in threaded view
|

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

Eric L.-2
Follow-up Comment #2, bug #41345 (project weechat):

Thanks, the warning should be fixed.

    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/bugs/?41345>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/


_______________________________________________
Weechat-dev mailing list
[hidden email]
https://lists.nongnu.org/mailman/listinfo/weechat-dev