From: Kenneth L. <Ken...@se...> - 2008-07-13 14:02:52
|
In file: emc_nml.hh, line 1449 the structure element file is declared as "char file[LINELEN];". If my understanding is correct, this variable may contain the full path name of a file. The maximum length of a file name is PATH_MAX characters (which is defined as 4096 characters in /usr/include/linux/limits.h). Of course, in the usual linux style, we also have MAXPATHLEN which is defined as PATH_MAX in sys/param.h. I'm not sure which of these to use in the interp (right now, I'm using PATH_MAX). The issue come up regarding a change I'd like in Axis. Axis doesn't know when the interpreter starts to interpret a new file. I added that ability as part of the subroutine stuff. If the sub isn't defined in the current file, the interp looks for a file of that name and starts interpreting there. It works just fine -- but none of the gui's know about it. I discovered that problem when I successfully ran my first program containing wizard generated code. [This is an issue for all of the gui's; not just Axis.] I can fix the file size problem. It's just changing LINELEN to PATH_MAX. I'm concerned though, that doing that might break other stuff. I can probably also make it so that the structure containing "file" is updated when the file is changed. I'd be (very) hesitant, though, to dig into Axis and change it. Thoughts on the subject would be appreciated. Thanks, Ken -- Kenneth Lerman Mark Kenny Products Company, LLC 55 Main Street Newtown, CT 06470 888-ISO-SEVO 203-426-7166 |