projects
/
apps
/
madmutt.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rationnalize includes a lot:
[apps/madmutt.git]
/
lib-lib
/
str.h
diff --git
a/lib-lib/str.h
b/lib-lib/str.h
index
603e51b
..
c9c8c90
100644
(file)
--- a/
lib-lib/str.h
+++ b/
lib-lib/str.h
@@
-20,11
+20,6
@@
#ifndef MUTT_LIB_LIB_STR_H
#define MUTT_LIB_LIB_STR_H
#ifndef MUTT_LIB_LIB_STR_H
#define MUTT_LIB_LIB_STR_H
-#include <string.h>
-#include <ctype.h>
-
-#include "mem.h"
-
#define HUGE_STRING 5120
#define LONG_STRING 1024
#define STRING 256
#define HUGE_STRING 5120
#define LONG_STRING 1024
#define STRING 256
@@
-136,6
+131,12
@@
static inline const char *m_strchrnul(const char *s, int c) {
return s;
}
return s;
}
+static inline const char *m_strnextsp(const char *s) {
+ while (*s && !isspace((unsigned char)*s))
+ s++;
+ return s;
+}
+
static inline const char *skipspaces(const char *s) {
while (*s && isspace((unsigned char)*s))
s++;
static inline const char *skipspaces(const char *s) {
while (*s && isspace((unsigned char)*s))
s++;