1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-25 21:11:53 +02:00

eeshow/diag.c (warning): don't require user to supply newline

This commit is contained in:
Werner Almesberger 2016-08-22 05:02:09 -03:00
parent 3c8c7ef6e1
commit 1812d1af86
3 changed files with 13 additions and 12 deletions

View File

@ -375,7 +375,7 @@ static bool related_other_repo(struct vcs_git *vcs_git)
/* @@@ find revision <= date of revision in related */ /* @@@ find revision <= date of revision in related */
if (!shown) if (!shown)
warning("related_other_repo is not yet implemented\n"); warning("related_other_repo is not yet implemented");
shown = 1; shown = 1;
return 0; return 0;
} }

View File

@ -141,7 +141,7 @@ static bool process_setup(struct pl_ctx *pl, const struct expr *e)
for (; e; e = e->next) { for (; e; e = e->next) {
if (!e->e) { if (!e->e) {
warning("ignoring non-list\n"); warning("ignoring non-list");
continue; continue;
} }
@ -171,7 +171,7 @@ static bool process_setup(struct pl_ctx *pl, const struct expr *e)
if (!get_float(next, &pl->b)) if (!get_float(next, &pl->b))
return 0; return 0;
} else { } else {
warning("ignoring \"%s\"\n", s); warning("ignoring \"%s\"", s);
} }
} }
return 1; return 1;
@ -190,12 +190,12 @@ static bool process_font(struct pl_obj *obj, const struct expr *e)
else if (!strcmp(e->s, "italic")) else if (!strcmp(e->s, "italic"))
obj->font |= font_italic; obj->font |= font_italic;
else else
warning("ignoring \"%s\"\n", e->s); warning("ignoring \"%s\"", e->s);
continue; continue;
} }
if (!e->e) { if (!e->e) {
warning("ignoring empty list\n"); warning("ignoring empty list");
continue; continue;
} }
s = e->e->s; s = e->e->s;
@ -208,7 +208,7 @@ static bool process_font(struct pl_obj *obj, const struct expr *e)
if (!get_size(next, &obj->ex, &obj->ey)) if (!get_size(next, &obj->ex, &obj->ey))
return 0; return 0;
} else { } else {
warning("ignoring \"%s\"\n", s); warning("ignoring \"%s\"", s);
} }
} }
return 1; return 1;
@ -219,7 +219,7 @@ static bool process_justify(struct pl_obj *obj, const struct expr *e)
{ {
for (; e; e = e->next) { for (; e; e = e->next) {
if (e->e) { if (e->e) {
warning("ignoring list\n"); warning("ignoring list");
continue; continue;
} }
@ -234,7 +234,7 @@ static bool process_justify(struct pl_obj *obj, const struct expr *e)
else if (!strcmp(e->s, "bottom")) else if (!strcmp(e->s, "bottom"))
obj->vert = text_min; obj->vert = text_min;
else else
warning("ignoring \"%s\"\n", e->s); warning("ignoring \"%s\"", e->s);
} }
return 1; return 1;
} }
@ -270,7 +270,7 @@ static bool process_obj(struct pl_ctx *pl, const struct expr *e,
continue; continue;
} }
if (!e->e) { if (!e->e) {
warning("ignoring empty list\n"); warning("ignoring empty list");
continue; continue;
} }
@ -311,7 +311,7 @@ static bool process_obj(struct pl_ctx *pl, const struct expr *e,
if (!process_justify(obj, next)) if (!process_justify(obj, next))
return 0; return 0;
} else } else
warning("ignoring \"%s\"\n", s); warning("ignoring \"%s\"", s);
} }
obj->next = pl->objs; obj->next = pl->objs;
@ -328,7 +328,7 @@ static bool process_layout(struct pl_ctx *pl, const struct expr *e)
for (; e; e = e->next) { for (; e; e = e->next) {
if (!e->e) { if (!e->e) {
warning("ignoring non-list\n"); warning("ignoring non-list");
continue; continue;
} }
@ -350,7 +350,7 @@ static bool process_layout(struct pl_ctx *pl, const struct expr *e)
if (!process_obj(pl, next, pl_obj_text)) if (!process_obj(pl, next, pl_obj_text))
return 0; return 0;
} else { } else {
warning("ignoring \"%s\"\n", s); warning("ignoring \"%s\"", s);
} }
} }
return 1; return 1;

View File

@ -70,6 +70,7 @@ void warning(const char *fmt, ...)
fprintf(stderr, "warning: "); fprintf(stderr, "warning: ");
vfprintf(stderr, fmt, ap); vfprintf(stderr, fmt, ap);
va_end(ap); va_end(ap);
fprintf(stderr, "\n");
} }