1#pragma once
2
3#ifdef  __cplusplus
4extern "C" {
5#endif
6
7#ifndef UINT
8typedef unsigned int UINT;
9#endif
10
11#ifdef TAGZ_UNICODE
12#if _MSC_VER <= 1200
13typedef unsigned short T_CHAR;
14#else
15typedef wchar_t T_CHAR;
16#endif
17#else
18#define T_CHAR char
19#endif
20
21typedef T_CHAR* (*TAGFUNC)(const T_CHAR *tag,void *p);    /* return 0 if not found */
22typedef void (*TAGFREEFUNC)(T_CHAR *tag,void *p);
23
24
25UINT tagz_format(const T_CHAR * spec,TAGFUNC f,TAGFREEFUNC ff,void *fp,T_CHAR * out,UINT max);
26T_CHAR * tagz_format_r(const T_CHAR * spec,TAGFUNC f,TAGFREEFUNC ff,void * fp);
27
28extern const char tagz_manual[];
29
30#ifdef __cplusplus
31}
32#endif
33