Hi Les,

probably a parameter, which gets updated in interp::synch
There are a couple of GET_EXTERNAL_FOO functions defined in canon, that get 
called from the interpreter.
So the sanest path imo is read the variable from task, then use a canon 
function to set a canon variable, and have another canon function that gets 
called from interp to query that.
I think you can even call the GET_EXTERNAL_* function from read_x(), there 
are a couple of functions where it's done just like that.

Regards,
Alex

----- Original Message ----- 
From: "Leslie Newell" <e...@sheetcam.com>
To: "EMC developers" <emc-developers@lists.sourceforge.net>
Sent: Monday, December 15, 2008 9:42 PM
Subject: [Emc-developers] Adding lathe diameter mode


>I am working on adding lathe diameter mode. I need to have an option for
> read_x() in interp_read.cc to either read the x value (radius mode) or
> half the X value (diameter mode).
>
> What is the best way to pass that flag to read_x()? As far as I can see,
> the read_XX functions only have access to the parameters and not to the
> setup_struct. Would it be acceptable to use a parameter to switch
> radius/diameter modes? If not, what would be the cleanest way of doing 
> this?
>
> Thanks,
> Les
>
> ------------------------------------------------------------------------------
> SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, 
> Nevada.
> The future of the web can't happen without you.  Join us at MIX09 to help
> pave the way to the Next Web now. Learn more and register at
> http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
> _______________________________________________
> Emc-developers mailing list
> Emc-developers@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/emc-developers


--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - http://www.avg.com
Version: 8.0.176 / Virus Database: 270.9.18/1849 - Release Date: 15.12.2008 
09:01


------------------------------------------------------------------------------
SF.Net email is Sponsored by MIX09, March 18-20, 2009 in Las Vegas, Nevada.
The future of the web can't happen without you.  Join us at MIX09 to help
pave the way to the Next Web now. Learn more and register at
http://ad.doubleclick.net/clk;208669438;13503038;i?http://2009.visitmix.com/
_______________________________________________
Emc-developers mailing list
Emc-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/emc-developers

Reply via email to