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

spielwiese
Last change on this file since 7f2454a was ce2120e, checked in by Mohamed Barakat <mohamed.barakat@…>, 13 years ago
created for_Hans_with_love.sh build script . added polys to libpolys/Makefile.am and to libpolys/configure.ac . updated libpolys/polys/Makefile.am . updated libpolys/polys/configure.ac . cleaned up libpolys/resources/configure.ac . updated libpolys/resources/feResource.h
  • Property mode set to 100644
File size: 1.2 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#define DIR_SEP '/'
9#define DIR_SEPP "/"
10
11/*****************************************************************
12 *
13 * Resource management (feResources.cc)
14 *
15 *****************************************************************/
16// returns value of Resource as read-only string, or NULL
17// if Resource not found
18// issues warning, if explicitely requested (warn > 0), or
19// if warn < 0 and Resource is gotten for the first time
20// Always quiet if warn == 0
21char* feResource(const char id, int warn = -1);
22char* feResource(const char* key, int warn = -1);
23// This needs to be called before the first call to feResource
24// Initializes Resources, SearchPath, and extends PATH
25void feInitResources(char* argv0);
26// Re-inits resources, should be called after changing env. variables
27void feReInitResources();
28// Prints resources into string with StringAppend, etc
29void feStringAppendResources(int warn = -1);
30
31
32
33const char fePathSep =
34// not really cygwin, applies to all windows systems:
35#if (defined(CYGWIN) || defined(ix86_Win))
36                ';'
37#else
38                ':'
39#endif
40                ;
41
42
43
44#endif
Note: See TracBrowser for help on using the repository browser.