Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 209307
b: refs/heads/master
c: bf5e327
h: refs/heads/master
i:
  209305: bcf6361
  209303: 8a299dc
v: v3
  • Loading branch information
Jean Sacren authored and Michal Marek committed Aug 12, 2010
1 parent 48e1208 commit 1896409
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 866af407dad3f2202e5d5d717ebd6156ccc33cdd
refs/heads/master: bf5e327a300a9ac959a89440e7c67dc89f3bd804
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ static void conf_write_string(bool headerfile, const char *name,
while (1) {
l = strcspn(str, "\"\\");
if (l) {
fwrite(str, l, 1, out);
xfwrite(str, l, 1, out);
str += l;
}
if (!*str)
Expand Down
2 changes: 1 addition & 1 deletion trunk/scripts/kconfig/expr.c
Original file line number Diff line number Diff line change
Expand Up @@ -1087,7 +1087,7 @@ void expr_print(struct expr *e, void (*fn)(void *, struct symbol *, const char *

static void expr_print_file_helper(void *data, struct symbol *sym, const char *str)
{
fwrite(str, strlen(str), 1, data);
xfwrite(str, strlen(str), 1, data);
}

void expr_fprint(struct expr *e, FILE *out)
Expand Down
7 changes: 7 additions & 0 deletions trunk/scripts/kconfig/lkc.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,13 @@ void sym_set_change_count(int count);
void sym_add_change_count(int count);
void conf_set_all_new_symbols(enum conf_def_mode mode);

/* confdata.c and expr.c */
static inline void xfwrite(const void *str, size_t len, size_t count, FILE *out)
{
if (fwrite(str, len, count, out) < count)
fprintf(stderr, "\nError in writing or end of file.\n");
}

/* kconfig_load.c */
void kconfig_load(void);

Expand Down

0 comments on commit 1896409

Please sign in to comment.