nl_types.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011 #ifndef NL_TYPES_INTERCEPTOR_H
00012 #define NL_TYPES_INTERCEPTOR_H 1
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #if !defined(DISABLE_NL_TYPES_SYMBOL_RENAMING)
00023
00024 # define catopen my_catopen
00025 # define catclose my_catclose
00026 # define catgets my_catgets
00027 # define catgetmsg my_catgetmsg
00028 # define catmsgfmt my_catmsgfmt
00029
00030 #endif
00031
00032
00033
00034
00035
00036 #if !(defined(__CYGWIN__) || defined(__MACH__))
00037
00038
00039 # include <../../usr/include/nl_types.h>
00040
00041 #else
00042
00043
00044
00045
00046 # define NL_SETD 1
00047
00048
00049 # define NL_CAT_LOCALE 1
00050
00051
00052 typedef void *nl_catd;
00053
00054
00055 typedef int nl_item;
00056
00057
00058 # ifdef __cplusplus
00059 extern "C" {
00060 # endif
00061
00062 extern nl_catd catopen(const char *name, int oflag);
00063 extern int catclose(nl_catd catd);
00064 extern char *catgets(nl_catd catd, int set_num, int msg_num,
00065 const char *s);
00066
00067
00068 #if 0
00069 # define catopen(cat_name, flag) ((nl_catd)42)
00070 # define catclose(catalog) ((int)0)
00071 # define catgets(catalog, set, number, string) \
00072 ((char*)"catgets: Bogus message.")
00073 #endif
00074
00075 # ifdef __cplusplus
00076 }
00077 # endif
00078
00079
00080
00081
00082 #endif
00083
00084
00085
00086 #endif