Re: [fpc-pascal] Pointer to a const char

2013-11-05 Thread Jonas Maebe
On 05 Nov 2013, at 09:07, Antonio Fortuny wrote: > I don't know a way to make the data pointed to, as being constant. There is indeed no way to specify that in Pascal. Jonas ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.fre

Re: [fpc-pascal] Pointer to a const char

2013-11-05 Thread Antonio Fortuny
Le 04/11/2013 14:18, Alexander a écrit : How can I describe a "pointer to a constant char" in FreePascal? For example this C function: int some_func(const char *arg, ...); ... coulb be translated to some_proc(const arg: PChar, ...

Re: [fpc-pascal] Pointer to a const char

2013-11-05 Thread Michael Schnell
On 11/04/2013 02:18 PM, Alexander wrote: How can I describe a "pointer to a constant char" in FreePascal? For example this C function: int some_func(const char *arg, ...); My guess in FreePascal is this(with ctypes unit): function some_func(const arg: pcchar): cint; cdecl; external; A const

[fpc-pascal] Pointer to a const char

2013-11-04 Thread Alexander
How can I describe a "pointer to a constant char" in FreePascal? For example this C function: int some_func(const char *arg, ...); My guess in FreePascal is this(with ctypes unit): function some_func(const arg: pcchar): cint; cdecl; external; A constant argument to a function. I'm not sure, i