* lib/trim.c (IF_LINT): Remove macro.
trim: Fix trim_trailing result in multibyte locales.
* lib/trim.c (trim2): Simplify algorithm for trim_trailing in multibyte
locales, to use 2 instead of 3 states.
+ (IF_LINT): Remove macro.
trim: Add tests.
* tests/test-trim.c: New file.
#include "mbiter.h"
#include "xalloc.h"
-/* Use this to suppress gcc's "...may be used before initialized" warnings. */
-#if defined GCC_LINT || defined lint
-# define IF_LINT(Code) Code
-#else
-# define IF_LINT(Code) /* empty */
-#endif
-
char *
trim2 (const char *s, int how)
{