1
1

* util.h (str_unconst): Added a conditional INLINE_STR_UNCONST

that makes str_unconst() an inline function.
Этот коммит содержится в:
Roland Illig 2005-04-14 18:16:04 +00:00
родитель 3db06a9dd2
Коммит 14a8919772
2 изменённых файлов: 13 добавлений и 0 удалений

@ -1,3 +1,8 @@
2005-04-14 Roland Illig <roland.illig@gmx.de>
* util.h (str_unconst): Added a conditional INLINE_STR_UNCONST
that makes str_unconst() an inline function.
2005-04-14 Roland Illig <roland.illig@gmx.de>
* view.c (struct WView): Removed the view_active field. It was

@ -7,7 +7,15 @@
* intended to pass strings to legacy libraries that don't know yet
* about the "const" modifier. The return value of this function
* MUST NOT be modified. */
#ifdef INLINE_STR_UNCONST
static char *str_unconst_inlined (const char *s)
{
return (char *) s;
}
#define str_unconst(s) str_unconst_inlined(s)
#else
extern char *str_unconst (const char *);
#endif
/* String managing functions */