On Wed, 3 Oct 2007 12:03:33 +0200 "Graeme Geldenhuys" <[EMAIL PROTECTED]> wrote:
> Hi, > > The h2pas tool obviously didn't know about parameter names when it was > used. Not sure if it does now. Yes, it does. > All xlib methods that have parameters are defined as; para1, para2, > para3 ..... Many official c headers do not contain parameter names. Then h2pas adds these names. > I've redefined some of the more frequently used functions in fpGUI so > the parameter names match those of the Xlib documentation. This makes > it much easier to work with. > > // example of a redefined function with more well know parameter names > function XmbLookupString(p1: PXIC; ev: PXKeyPressedEvent; str: PChar; > len: longword; ks: PKeySym; stat: PStatus): longint; cdecl; > external; > > > If h2pas now supports parameter names, could we regenerate the xlib.pp > unit? If h2pas still doesn't, could I submit a few patches that > renames the parameter names? It's wouldn't affect any developers > code, only improve the understanding of the parameters easier. That would be great. Mattias _______________________________________________ fpc-devel maillist - [email protected] http://lists.freepascal.org/mailman/listinfo/fpc-devel
