File: [Platon] / ep / src / platon-str.h (download)
Revision 1.3, Sun Oct 13 13:35:31 2002 UTC (21 years, 6 months ago) by nepto
Changes since 1.2: +3 -3
lines
Changes to make ep compile against libcfg+ shared library.
All occurences of tag $Id changed to $Platon.
|
#ifndef _PLATON_STR_H
#define _PLATON_STR_H
/* $Platon: platon-str.h,v 1.2 2002/10/03 15:51:53 nepto Exp $ */
/* Here are some <platon/str/...> prototypes from libplaton library.
They are compiled into libcfg+ and we will use them. But note, we need this
header file, because they are not present in platon/cfg+.h header file. */
#ifndef PLATON_FUNC
# define PLATON_FUNC(_name) cfg_ ## _name
#endif
/* #include <platon/str/strplus.h> */
/* #include <platon/str/strdyn.h> */
void PLATON_FUNC(strdyn_free)(char **ar);
void PLATON_FUNC(strdyn_safe_free)(char **ar);
int PLATON_FUNC(strdyn_get_size)(char **ar);
char **PLATON_FUNC(strdyn_safe_create_ar)(char **ar);
char **PLATON_FUNC(strdyn_explode2_ar)(char *str, char **sep);
int PLATON_FUNC(strdyn_casecompare)(char **ar, char *s);
#define cfg_strdyn_safe_duplicate(ar) PLATON_FUNC(strdyn_safe_create_ar)(ar)
#define cfg_strdyn_casecmp(ar, s) PLATON_FUNC(strdyn_casecompare)(ar, s)
#endif /* _PLATON_STR_H */
Platon Group <platon@platon.org> http://platon.org/
|