Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
linux-cp: API downgrade due to namespace keyword
[vpp.git]
/
src
/
vppinfra
/
format.h
diff --git
a/src/vppinfra/format.h
b/src/vppinfra/format.h
index
ee47a20
..
2cd636d
100644
(file)
--- a/
src/vppinfra/format.h
+++ b/
src/vppinfra/format.h
@@
-200,6
+200,22
@@
unformat_put_input (unformat_input_t * input)
input->index -= 1;
}
input->index -= 1;
}
+always_inline uword
+is_white_space (uword c)
+{
+ switch (c)
+ {
+ case ' ':
+ case '\t':
+ case '\n':
+ case '\r':
+ return 1;
+
+ default:
+ return 0;
+ }
+}
+
/* Peek current input character without advancing. */
always_inline uword
unformat_peek_input (unformat_input_t * input)
/* Peek current input character without advancing. */
always_inline uword
unformat_peek_input (unformat_input_t * input)