source: git/libpolys/resources/feResource.h @ 6c98d52

spielwiese
Last change on this file since 6c98d52 was 2c52441, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
FIX: last corrections for broken libpolys
  • Property mode set to 100644
File size: 1.5 KB
Line 
1#ifndef FERESOURCE_H
2#define FERESOURCE_H
3
4#ifdef HAVE_SYS_PARAM_H
5#include <sys/param.h>
6#endif
7
8#include <misc/auxiliary.h>
9#include <misc/mylimits.h>
10
11#define DIR_SEP '/'
12#define DIR_SEPP "/"
13
14#ifndef MAXPATHLEN
15#define MAXPATHLEN 1024
16#endif
17
18#ifdef __cplusplus
19/*****************************************************************
20 *
21 * Resource management (feResources.cc)
22 *
23 *****************************************************************/
24// returns value of Resource as read-only string, or NULL
25// if Resource not found
26// issues warning, if explicitely requested (warn > 0), or
27// if warn < 0 and Resource is gotten for the first time
28// Always quiet if warn == 0
29char* feResource(const char id, int warn = -1);
30char* feResource(const char* key, int warn = -1);
31
32char* feGetResource(const char id);
33
34// char* feResourceDefault(const char id);
35// char* feResourceDefault(const char* key);
36
37
38// This needs to be called before the first call to feResource
39// Initializes Resources, SearchPath, and extends PATH
40void feInitResources(const char* argv0 = NULL);
41// Re-inits resources, should be called after changing env. variables
42void feReInitResources();
43// Prints resources into string with StringAppend, etc
44void feStringAppendResources(int warn = -1);
45#endif /* end ifdef __cplusplus */
46
47extern char* feArgv0; 
48
49const char fePathSep =
50/* not really cygwin, applies to all windows systems:*/
51#if (defined(CYGWIN) || defined(ix86_Win))
52                ';'
53#else
54                ':'
55#endif
56                ;
57
58
59
60#endif
Note: See TracBrowser for help on using the repository browser.