From: Enoch <ix...@ho...> - 2013-03-24 04:28:11
|
Hello Matthias & All, Just in case someone is interested in my kernel patching exercise for automatic wordlist selection :-) > I prepared a kernel patch, it's very simple, but ain't working, for some > stupid reason, I guess :) > The kernel patch is here: http://pastebin.com/8MShMtn4 Delving into the asm code I see that my current docreate.asm patch is insufficient since the created word is actually linked to the selected wordlist outside XT_DOCREATE. It would save some code and would be cleaner programming to put the equivalent to [.dw XT_GET_CURRENT, .dw XT_STOREE] inside XT_HERE except for the XT_COLON / XT_SEMICOLON "smudge" issue. Will have it done tomorrow. > Here's a simple test case. > > ---------------------------------------------------------------------- > > wordlist constant private > > : scope ( c-addr u -- c-addr u wid ) > over c@ [char] ~ = if > private > else > get-current > then > ; > > ' scope is wlscope I hope that I managed to persuade some of you that auto wordlist selection is a good thing ;-) Regards, Enoch. |