So the convention to access a system call or part of the C Library is to declare a function with same parameters and return data-type and put a C; at the end of it?
Seems too easy! :)
On Sat, 7 Feb 1998, Peter Gerwinski wrote:
Date: Sat, 7 Feb 1998 04:06:46 +0100 (MET) From: Peter Gerwinski peter@agnes.dida.physik.uni-essen.de To: jim@roland.net, gpc@hut.fi Subject: Re: BP and BO question...
According to Jim Roland:
I am in need to use the GetEnv function (and the SetEnv) function along with other borland functions.
Does your system support a `setenv()' C function? Mine (Linux) does, but I was told that it is not part of all standards.
Since `man setenv' yields
int setenv(const char *name, const char *value, int overwrite);
I can declare an equivalent GPC function as follows:
Function SetEnv ( Name, Value: CString; overwrite: Integer ): Integer; C;
(And similar for `GetEnv'.)
[BO5, BPcompat] How do I compile both? I can't get either to compile, and there don't seem to be complete instructions to compile them.
Currently, `BPcompat' only (?) supports DJGPP out of the box. Be welcome to help us to add support for UNIX systems.
BO5, OTOH, is intended to be completely portable. Unfortunatly, those versions you can find on Agnes are somehow obsolete; I am currently working on a complete new implementation of BO5 (version 0.1 rather than 0.01;-) which uses `ncurses' for terminal I/O on UNIX-like platforms. Using GRX for graphics I/O (including X11) is in preparation.
Eventually, I would like to be able to modify the sources from the BP5 library source code that I have (Borland, permitting of course) and use them to include in my programs--possibly make it part of the GNU library if they will allow it.
Sorry for being that sceptical, but I doubt (a) that Borland will agree to use *anything* from their code in a LGPLed library and that (b) it would be useful for us at all because Borland's code is highly specialized for MS-compatible DOS systems. IMHO it will be less work and cause fewer legal problems to re-write the needed code from scratch. Again: Be welcome to join us in performing this task.
Greetings,
Peter
-- Peter Gerwinski, Essen, Germany, free physicist and programmer Maintainer GNU Pascal - http://home.pages.de/~GNU-Pascal/ - 1 Oct 1997 PGP key fingerprint: AC 6C 94 45 BE 28 A4 96 0E CC E9 12 47 25 82 75 Fight the SPAM! - http://maps.vix.com/
====================================================================== Jim Roland, running the most stable operating system in the world: OS/2 v4.0--I TALK to my OS, and IT LISTENS, does yours? ----------------------------------- Running Internet Servers on OS/2 & Linux (a free & stable Unix OS) ----------------------------------- Get free PGP software today to keep your files & messages private! Don't let ANYONE deprive you of your right to privacy!! ======================================================================