summaryrefslogtreecommitdiffstats
path: root/src/vppinfra
diff options
context:
space:
mode:
Diffstat (limited to 'src/vppinfra')
-rw-r--r--src/vppinfra/format.h16
-rw-r--r--src/vppinfra/unformat.c16
2 files changed, 16 insertions, 16 deletions
diff --git a/src/vppinfra/format.h b/src/vppinfra/format.h
index ee47a2099c2..2cd636d0be8 100644
--- a/src/vppinfra/format.h
+++ b/src/vppinfra/format.h
@@ -200,6 +200,22 @@ unformat_put_input (unformat_input_t * input)
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)
diff --git a/src/vppinfra/unformat.c b/src/vppinfra/unformat.c
index 0f6da4fd3b9..3904b450f48 100644
--- a/src/vppinfra/unformat.c
+++ b/src/vppinfra/unformat.c
@@ -70,22 +70,6 @@ _unformat_fill_input (unformat_input_t * i)
return i->index;
}
-always_inline uword
-is_white_space (uword c)
-{
- switch (c)
- {
- case ' ':
- case '\t':
- case '\n':
- case '\r':
- return 1;
-
- default:
- return 0;
- }
-}
-
/* Format function for dumping input stream. */
__clib_export u8 *
format_unformat_error (u8 * s, va_list * va)