X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=lib%2Fstr.h;h=636e28813b88a1980a1944b84374223a00e0db4e;hb=871a94fc21c9d349bb0fe8851e0f2e3a07527ed5;hp=8a480c33b0b2ee7e2bf1ca629e111a8480ba30ed;hpb=c98480f8568e6c1bc927c6c5f2b5e80b4aa6548c;p=apps%2Fmadmutt.git diff --git a/lib/str.h b/lib/str.h index 8a480c3..636e288 100644 --- a/lib/str.h +++ b/lib/str.h @@ -12,29 +12,6 @@ #include -# define HUGE_STRING 5120 -# define LONG_STRING 1024 -# define STRING 256 -# define SHORT_STRING 128 - -/* - * Create a format string to be used with scanf. - * To use it, write, for instance, MUTT_FORMAT(HUGE_STRING). - * - * See K&R 2nd ed, p. 231 for an explanation. - */ -# define _MUTT_FORMAT_2(a,b) "%" a b -# define _MUTT_FORMAT_1(a, b) _MUTT_FORMAT_2(#a, b) -# define MUTT_FORMAT(a) _MUTT_FORMAT_1(a, "s") -# define MUTT_FORMAT2(a,b) _MUTT_FORMAT_1(a, b) - -# define ISSPACE(c) isspace((unsigned char)c) -# define ISBLANK(c) (c == ' ' || c == '\t') -# define strfcpy(A,B,C) m_strcpy(A,C,B) -/* this macro must check for *c == 0 since isspace(0) has - * unreliable behavior on some systems */ -# define SKIPWS(c) while (*(c) && isspace ((unsigned char) *(c))) c++; - /* * tools */ @@ -45,7 +22,6 @@ void str_replace (char**, const char*); void str_adjust (char**); int str_eq (const char*, const char*); const char *str_isstr (const char*, const char*); -char* str_skip_initws (char*); void str_skip_trailws (char*); #endif /* !_LIB_STR_H */