Re: [Bug-apl] Macintosh compile errors and warnings SVN 583

2015-04-01 Thread Juergen Sauermann
Hi Elias, there is a new callback called install_get_line_from_user_cb() in libapl.h that may be useful. The behaviour is a little different because the lines would be inserted before the content of other files while InputFile::files_todo.insert() u

Re: [Bug-apl] Macintosh compile errors and warnings SVN 583

2015-04-01 Thread Juergen Sauermann
Hi, I have changed back to Elias' initial code plus #including unistd.h. SVN 586. /// Jüergen On 03/31/2015 11:39 PM, Peter Teeson wrote: Hi Jürgen: On 2015-03-31, at 12:53 PM,

Re: [Bug-apl] Macintosh compile errors and warnings SVN 583

2015-03-31 Thread Elias Mårtenson
I would much rather completely eliminate the use of the temporary file here. The reason it's used is so that I can use InputFile::files_todo.insert() on it. Is there an alternative method by which I can queue a bunch of input lines to be read by the interpreter? Regards, Elias On 1 April 2015 at

Re: [Bug-apl] Macintosh compile errors and warnings SVN 583

2015-03-31 Thread Peter Teeson
Hi Jürgen: On 2015-03-31, at 12:53 PM, Juergen Sauermann wrote: > Peter: Chances are that on your box mkstemp is declared in > /usr/include/unistd.h instead of > /usr/include/stdlib.h. If that is so then please let me know and I will > revert the code and #include it. You are correct….. The

Re: [Bug-apl] Macintosh compile errors and warnings SVN 583

2015-03-31 Thread Juergen Sauermann
Hi Peter, Elias, I have created something that MAY compile. However: man mkstemp says:     mkstemps(): unstandardized, but appears on several other systems. man tmpnam (the one I used instead) says:    Never use this functi

Re: [Bug-apl] Macintosh compile errors and warnings SVN 583

2015-03-31 Thread Peter Teeson
GNUAPL Group Shell Script Invocation Error Group /Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/TempFileWrapper.cc:45:5: No matching function for call to 'strcpy' /Volumes/Data/Development/MyProjects/GNUAPL/apl-svn/src/TempFileWrapper.cc:47:10: No matching function for call to 'mkstemp'