Did you have a look at Jbreak - Interrupt Execution in the User Manual? ~ Gilles
---------- Original Message ----------- From: Jack Andrews <[email protected]> To: Programming forum <[email protected]> Sent: Fri, 13 Feb 2009 01:00:35 +1100 Subject: [Jprogramming] jfex.c > hi! > > i'm doing some work with the j.dll similar to jfex.c. i'm trying to > understand the jfex code and i have posted it to > > http://www.jsoftware.com/jwiki/Interfaces/JFEX > > in the hope of documenting the j.dll interface better. > > the main problem i have at the moment is understanding the concept of > 'break' in J. breaks are handled in jfex with this code: > > static char **adadbreak; > static void sigint(int k){**adadbreak+=1;signal(SIGINT,sigint);} > [ snip ] > // in main() > adadbreak=(char**)jt; // first address in jt is address of breakdata > > i don't see how a break signal is sent to j.dll as it is caught by > sigint. is the signal sent by incrementing **adadbreak? should > adadbreak be decremented at some time? when does j.dll read > adadbreak? > > can you give me a sequence of keystrokes that result in a number of > break levels? and that revert j.dll back to no breaks? > > ta, jack > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ------- End of Original Message ------- ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
