issue-#123 *Hook proc. not seen in extension interface
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
issue-#123 *Hook proc. not seen in extension interface
Folks,
Kernel has a procedure SetLoaderHook that is marked for export "*" and yet when one
does Ctrl-D on Kernel one does not see that procedure.
That procedure is known to StdLoader which calls Kernel.SetLoaderHook so the procedure is there but it is invisible. Why?
I don't understand that behavior.
-Doug
Kernel has a procedure SetLoaderHook that is marked for export "*" and yet when one
does Ctrl-D on Kernel one does not see that procedure.
That procedure is known to StdLoader which calls Kernel.SetLoaderHook so the procedure is there but it is invisible. Why?
I don't understand that behavior.
-Doug
-
- Posts: 204
- Joined: Wed Sep 18, 2013 10:06 pm
- Contact:
Re: Exported but not seen procedures
Run the DevBrowser.ShowInterface command with the "&" option included.
In the DevBrowser Docu this is described as:
In the DevBrowser Docu this is described as:
PROCEDURE ShowInterface (opts: ARRAY OF CHAR)
...
...
opts = "&" creates an output which also shows hooks in the interface.
- DGDanforth
- Posts: 1061
- Joined: Tue Sep 17, 2013 1:16 am
- Location: Palo Alto, California, USA
- Contact:
Re: Exported but not seen procedures
Thank you Chris.cfbsoftware wrote:Run the DevBrowser.ShowInterface command with the "&" option included.
In the DevBrowser Docu this is described as:
PROCEDURE ShowInterface (opts: ARRAY OF CHAR)
...
...
opts = "&" creates an output which also shows hooks in the interface.
I was unaware of those browser options.
Its somewhat awkward to actually do that since it entails creating a menu
Code: Select all
MENU "Browser"
"Show hooks" "" "DevBrowser.ShowInterface('&')" ""
END
Thanks again.
-Doug
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Exported but not seen procedures
Doug, you can use the dialog Info->Interface...
and execute "Show Extension Interface".
This gives you information about the hooks as well.
Unfortunately, this does not show the procedure Kernel.SetLoaderHook
but only the related hook types and variables.
This seems to be a bug indeed.
The fix would be simple. In DevBrowser.Proc replace the second line by
- Josef
and execute "Show Extension Interface".
This gives you information about the hooks as well.
Unfortunately, this does not show the procedure Kernel.SetLoaderHook
but only the related hook types and variables.
This seems to be a bug indeed.
The fix would be simple. In DevBrowser.Proc replace the second line by
Code: Select all
IF global.extensioninterface & ~((obj.link # NIL) & (obj.link.link = NIL) & IsHook(obj.link.typ)) THEN RETURN END;
Re: Exported but not seen procedures
I miss this change in the last link of the Center Edition (506).
Do we add this change to the Center Edition or not ???
- Helmut
Do we add this change to the Center Edition or not ???
- Helmut
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Exported but not seen procedures
I think, not. There should be issue and voting for this fix.Zinn wrote:I miss this change in the last link of the Center Edition (506).
Do we add this change to the Center Edition or not ???
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Exported but not seen procedures
I think it is a bug indeed and a separate issue should be created for that.
It is simple to fix as I have already pointed out.
- Josef
It is simple to fix as I have already pointed out.
- Josef
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Exported but not seen procedures
Josef Templ wrote: The fix would be simple. In DevBrowser.Proc replace the second line by
Code: Select all
IF global.extensioninterface & ~((obj.link # NIL) & (obj.link.link = NIL) & IsHook(obj.link.typ)) THEN RETURN END;[/quote] We are still not include this fix. Can it be classified as a bug?
- Josef Templ
- Posts: 2047
- Joined: Tue Sep 17, 2013 6:50 am
Re: Exported but not seen procedures
To me it is a bug and it should be fixed.
-
- Posts: 1700
- Joined: Tue Sep 17, 2013 12:21 am
- Location: Russia
Re: Exported but not seen procedures
Branch for voting prepared:
http://redmine.blackboxframework.org/pr ... 3e1d01b11f
There is the test version:
http://blackboxframework.org/unstable/i ... c1.625.zip
http://redmine.blackboxframework.org/pr ... 3e1d01b11f
There is the test version:
http://blackboxframework.org/unstable/i ... c1.625.zip