diff options
Diffstat (limited to 'scripts/kconfig/preprocess.c')
-rw-r--r-- | scripts/kconfig/preprocess.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/preprocess.c b/scripts/kconfig/preprocess.c index 5ca2df790d3c..592dfbfa9fb3 100644 --- a/scripts/kconfig/preprocess.c +++ b/scripts/kconfig/preprocess.c | |||
@@ -2,6 +2,7 @@ | |||
2 | // | 2 | // |
3 | // Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com> | 3 | // Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com> |
4 | 4 | ||
5 | #include <ctype.h> | ||
5 | #include <stdarg.h> | 6 | #include <stdarg.h> |
6 | #include <stdbool.h> | 7 | #include <stdbool.h> |
7 | #include <stdio.h> | 8 | #include <stdio.h> |
@@ -9,6 +10,7 @@ | |||
9 | #include <string.h> | 10 | #include <string.h> |
10 | 11 | ||
11 | #include "list.h" | 12 | #include "list.h" |
13 | #include "lkc.h" | ||
12 | 14 | ||
13 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) | 15 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) |
14 | 16 | ||
@@ -555,8 +557,7 @@ char *expand_string(const char *in) | |||
555 | 557 | ||
556 | static bool is_end_of_token(char c) | 558 | static bool is_end_of_token(char c) |
557 | { | 559 | { |
558 | /* Why are '.' and '/' valid characters for symbols? */ | 560 | return !(isalnum(c) || c == '_' || c == '-'); |
559 | return !(isalnum(c) || c == '_' || c == '-' || c == '.' || c == '/'); | ||
560 | } | 561 | } |
561 | 562 | ||
562 | /* | 563 | /* |