Re: [fpc-pascal] Header translation, argument list, array of const?

2012-06-30 Thread Sven Barth
Am 30.06.2012 03:25 schrieb "kyan" : > A pascal open array of const which is the closest concept to a C > ellipsis may have similar semantics but its binary representation on > the parameter stack is completely different. First of all, since it > has to work in all calling conventions and not just

Re: [fpc-pascal] Header translation, argument list, array of const?

2012-06-30 Thread Bernd
2012/6/30 Sven Barth : > Your explanation is very nice and mostly correct, but in case of external > cdecl functions in FPC the "varargs" modifier and a "array of const" > parameter imply the same C compatible parameter passing in the compiler. See > also here: > http://freepascal.org/docs-html/re

Re: [fpc-pascal] Header translation, argument list, array of const?

2012-06-30 Thread Sven Barth
Am 30.06.2012 12:50 schrieb "Bernd" : > > 2012/6/30 Sven Barth : > > > Your explanation is very nice and mostly correct, but in case of external > > cdecl functions in FPC the "varargs" modifier and a "array of const" > > parameter imply the same C compatible parameter passing in the compiler. See