All pastes #778926 Raw Edit

Mine

public text v1 · immutable
#778926 ·published 2007-11-18 01:33 UTC
rendered paste body
   /* Define some paths used by gwenhywfar; add the windows
       registry entries first, because on Unix those functions
       simply do nothing and on windows they will ensure that the
       most valid paths (which are those from the registry) are
       first in the path lists. */

    /* $prefix e.g. "/usr" */
GWEN_PathManager_DefinePath(GWEN_PM_LIBNAME, GWEN_PM_INSTALLDIR);
 
 tmp = getenv("GWEN_PM_INSTALLDIR");
 if (tmp)
    GWEN_PathManager_AddPath(GWEN_PM_LIBNAME,
                             GWEN_PM_LIBNAME,
                             GWEN_PM_INSTALLDIR,
                             tmp);
 else 
printf("variable not defined");

    /* $sysconfdir e.g. "/etc" */
    GWEN_PathManager_DefinePath(GWEN_PM_LIBNAME, GWEN_PM_SYSCONFDIR);
 
 tmp = getenv("GWEN_PM_SYSCONFDIR");
 if (tmp)
    GWEN_PathManager_AddPath(GWEN_PM_LIBNAME,
                             GWEN_PM_LIBNAME,
                             GWEN_PM_SYSCONFDIR,
                             tmp);
 else 
printf("variable not defined");
 

    /* $localedir e.g. "/usr/share/locale" */
    
    GWEN_PathManager_DefinePath(GWEN_PM_LIBNAME, GWEN_PM_LOCALEDIR);
 
 tmp = getenv("GWEN_PM_LOCALEDIR");
 if (tmp)
    GWEN_PathManager_AddPath(GWEN_PM_LIBNAME,
                             GWEN_PM_LIBNAME,
                             GWEN_PM_LOCALEDIR,
                             tmp);
 else 
printf("variable not defined");
 
     
    /* $libdir e.g. "/usr/lib" */
     
    GWEN_PathManager_DefinePath(GWEN_PM_LIBNAME, GWEN_PM_LIBDIR);
 
 tmp = getenv("GWEN_PM_LIBDIR");
 if (tmp)
    GWEN_PathManager_AddPath(GWEN_PM_LIBNAME,
                             GWEN_PM_LIBNAME,
                             GWEN_PM_LIBDIR,
                             tmp);
 else 
printf("variable not defined");