Next: , Previous: Library Use Example, Up: Standard Library Functions


7.3 Function Renaming

This section describes ways in which one can customize the standard library. Perhaps you don't like the names chosen, or you would like to remap selected functions to your own versions.

The source file for stdchpfn.la is also installed as stdchpfn.cc in the same location (pkglibdir). It merely contains function registration macros that map functions defined in libstdchpfn.la to names used in chpsim. One can use this file as a starting point for remapping to functions to different names, or names to different functions. To re-use the existing underlying functions, just link your new library against ‘-Lpkglibdir -lstdchpfn’ (in LIBADD, by Libtool/Automake convention), which resolves to libstdchpfn.la, not the dlopenable module, stdchpfn.la.