projects
/
carl9170fw.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
kconfig: remove unused "file" field of yylval union
[carl9170fw.git]
/
config
/
preprocess.c
diff --git
a/config/preprocess.c
b/config/preprocess.c
index 65da87fce907ad2bc7b52adba4651dc2c32786be..592dfbfa9fb30d6804043a5bad23b9f683adefd8 100644
(file)
--- a/
config/preprocess.c
+++ b/
config/preprocess.c
@@
-2,6
+2,7
@@
//
// Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com>
//
// Copyright (C) 2018 Masahiro Yamada <yamada.masahiro@socionext.com>
+#include <ctype.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stdio.h>
@@
-9,6
+10,7
@@
#include <string.h>
#include "list.h"
#include <string.h>
#include "list.h"
+#include "lkc.h"
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
#define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]))
@@
-156,7
+158,7
@@
static char *do_shell(int argc, char *argv[])
nread--;
/* remove trailing new lines */
nread--;
/* remove trailing new lines */
- while (buf[nread - 1] == '\n')
+ while (
nread > 0 &&
buf[nread - 1] == '\n')
nread--;
buf[nread] = 0;
nread--;
buf[nread] = 0;
@@
-555,8
+557,7
@@
char *expand_string(const char *in)
static bool is_end_of_token(char c)
{
static bool is_end_of_token(char c)
{
- /* Why are '.' and '/' valid characters for symbols? */
- return !(isalnum(c) || c == '_' || c == '-' || c == '.' || c == '/');
+ return !(isalnum(c) || c == '_' || c == '-');
}
/*
}
/*