29 #define DISABLE_DEBUGLOG
32 #include "pathmanager_p.h"
33 #include <gwenhywfar/db.h>
34 #include <gwenhywfar/debug.h>
35 #include <gwenhywfar/directory.h>
70 const char *pathName) {
81 "Path \"%s/%s\" already exists",
94 const char *pathName) {
119 const char *pathName,
120 const char *pathValue) {
160 const char *pathName,
161 const char *pathValue,
169 pcwd=getcwd(cwd,
sizeof(cwd)-1);
224 "Could not determine HOME directory (%d)",
250 const char *pathName,
251 const char *pathValue) {
287 const char *pathName,
288 const char *pathValue) {
311 (!callingLib && !s) ||
312 (callingLib && s && strcasecmp(s, callingLib)==0)
314 strcasecmp(p, pathValue)==0
355 if (s && strcasecmp(s, callingLib)==0) {
372 const char *pathName) {
395 const char *pathName) {
441 const char *pathName,
442 const char *fileName,
479 "File \"%s\" found in folder \"%s\"",
503 const char *pathName,
504 const char *subFolderName,
532 if (subFolderName && *subFolderName) {
560 const char *pathName,
562 const char *varname){
571 snprintf(nbuffer,
sizeof(nbuffer), keypath);
574 if (RegOpenKey(HKEY_LOCAL_MACHINE, nbuffer, &hkey)){
581 nsize=
sizeof(nbuffer);
582 vsize=
sizeof(vbuffer);
583 if (ERROR_SUCCESS!=RegEnumValue(hkey,
592 if (strcasecmp(nbuffer, varname)==0 && typ==REG_SZ) {
604 "In RegKey \"%s\" the variable \"%s\" does not exist",