* util.h (str_unconst): Added a conditional INLINE_STR_UNCONST
that makes str_unconst() an inline function.
Этот коммит содержится в:
родитель
3db06a9dd2
Коммит
14a8919772
@ -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 */
|
||||
|
||||
|
Загрузка…
x
Ссылка в новой задаче
Block a user