+Fri Feb 7 18:56:57 1997 Richard Basch <basch@lehman.com>
+
+ * prof_int.h:
+ Include com_err.h rather than redefining errcode_t
+ Structure element "magic" should not be errcode_t
+
Wed Feb 5 20:18:33 1997 Richard Basch <basch@lehman.com>
* profile.hin: Do not process the contents of profile.h
*/
#include <time.h>
+#include "com_err.h"
#include "prof_err.h"
#if defined(__STDC__) || defined(_MSDOS) || defined(_WIN32)
#define NO_SYS_STAT_H
#endif
-typedef long errcode_t;
+typedef long prf_magic_t;
/*
* This is the structure which stores the profile information for a
* particular configuration file.
*/
struct _prf_file_t {
- errcode_t magic;
- char *comment;
- char *filename;
+ prf_magic_t magic;
+ char *comment;
+ char *filename;
struct profile_node *root;
- time_t timestamp;
- int flags;
+ time_t timestamp;
+ int flags;
struct _prf_file_t *next;
};
* configuration file(s)
*/
struct _profile_t {
- errcode_t magic;
+ prf_magic_t magic;
prf_file_t first_file;
};
* returned to the user when a section is searched.
*/
struct _profile_section_t {
- errcode_t magic;
+ prf_magic_t magic;
int top_lvl:1, top_lvl_search:1;
char *name;
void *state;
/* prof_init.c */
-errcode_t profile_init
+extern errcode_t profile_init
PROTOTYPE ((const char **filenames, profile_t *ret_profile));
-errcode_t profile_init_path
+extern errcode_t profile_init_path
PROTOTYPE ((const char *filepath, profile_t *ret_profile));
extern void profile_release