X-Git-Url: http://git.tuebingen.mpg.de/?a=blobdiff_plain;ds=sidebyside;f=osl.c;h=e31811b9c57eb0d897aee1c92c41b72cb35a97cc;hb=9aadc0af8df91d309f9f701f07a6db0542341618;hp=66661969e3720193d7f7af4c5295ee02d8db13d5;hpb=b24e3c93a2faa94b138739d1b3e8b631f8123492;p=osl.git diff --git a/osl.c b/osl.c index 6666196..e31811b 100644 --- a/osl.c +++ b/osl.c @@ -13,7 +13,14 @@ #include "util.h" #include "osl_core.h" -/* Taken from Drepper: How to write shared libraries, Appendix B. */ +/* + * Taken from Drepper: How to write shared libraries, Appendix B. + * + * The main reason for this rather fancy implementation of strerror() is to + * avoid having an array of pointers. This is desirable because initialized + * pointer variables increase the startup time of the library due to the + * processing of relocations. + */ #include #define MSGSTRFIELD(line) MSGSTRFIELD1(line) #define MSGSTRFIELD1(line) str##line