bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Juergen Sauermann
Subject: Re: [Bug-apl] Macintosh compile errors and warnings SVN 583
Date: Wed, 01 Apr 2015 15:32:57 +0200
User-agent: Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.4.0

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()
usually happens a little later (depending on the insert() position).

And it pulls, so you need to store your data somewhere (vector<cstring> ?) until the interpreter is ready to
fetch them.

/// Jürgen


On 04/01/2015 07:50 AM, Elias Mårtenson wrote:
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 05:39, Peter Teeson <address@hidden> wrote:
Hi Jürgen:

On 2015-03-31, at 12:53 PM, Juergen Sauermann <address@hidden> 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 following is in /usr/include/unistd.h starting at line701... on my box which is OS X 10.8.5
I also checked OS X 10.9.5 and it's also there in the same file at the same location (+- a few lines).
….
int mkpath_np(const char *path, mode_t omode) 
__OSX_AVAILABLE_STARTING(__MAC_10_8, __IPHONE_5_0); /* returns errno */
int mkstemp(char *);
int mkstemps(char *, int);
char *mktemp(char *);

HTH

respect….

Peter



reply via email to

[Prev in Thread] Current Thread [Next in Thread]