source: git/libpolys/resources/feResource.h @ 7d0225

fieker-DuValspielwiese
Last change on this file since 7d0225 was 7d1a26, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
CHG: prefer *limits.h from misc/ over it from omalloc/.
  • Property mode set to 100644
File size: 1.4 KB
RevLine 
[46395ad]1#ifndef FERESOURCE_H
2#define FERESOURCE_H
[ce2120e]3
4#ifdef HAVE_SYS_PARAM_H
5#include <sys/param.h>
6#endif
7
[7d1a26]8#include <misc/auxiliary.h>
9#include <misc/mylimits.h>
[8c9912]10
[ce2120e]11#define DIR_SEP '/'
12#define DIR_SEPP "/"
13
[8c9912]14#ifndef MAXPATHLEN
15#define MAXPATHLEN 1024
16#endif
17
18
[46395ad]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);
[8c9912]31
32char* feGetResource(const char id);
33
34// char* feResourceDefault(const char id);
35// char* feResourceDefault(const char* key);
36
37
[46395ad]38// This needs to be called before the first call to feResource
39// Initializes Resources, SearchPath, and extends PATH
[59a62bd]40void feInitResources(char* argv0 = NULL);
[46395ad]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);
[5df856]45
46
47
[8c9912]48
[5df856]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
[46395ad]60#endif
Note: See TracBrowser for help on using the repository browser.