summaryrefslogtreecommitdiff
path: root/kicad/pl-parse.c
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-08-22 05:04:23 -0300
committerWerner Almesberger <werner@almesberger.net>2016-08-22 05:04:23 -0300
commitf4c830911621fca111a28ffc735a11b330975adf (patch)
treeafa7e743ddf393c0a1e2318a2710418e7b92e406 /kicad/pl-parse.c
parent4f05f33f81bcd58863e941514c291baabd89f2a9 (diff)
downloadeeshow-f4c830911621fca111a28ffc735a11b330975adf.tar.gz
eeshow-f4c830911621fca111a28ffc735a11b330975adf.tar.bz2
eeshow-f4c830911621fca111a28ffc735a11b330975adf.zip
eeshow/diag.c (error): don't require user to supply newline
Diffstat (limited to 'kicad/pl-parse.c')
-rw-r--r--kicad/pl-parse.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/kicad/pl-parse.c b/kicad/pl-parse.c
index 4931ec2..bd8f326 100644
--- a/kicad/pl-parse.c
+++ b/kicad/pl-parse.c
@@ -49,7 +49,7 @@ static bool get_coord(const struct expr *e,
float f = strtof(e->s, &end);
if (*end) {
- error("no a number \"%s\"\n", e->s);
+ error("no a number \"%s\"", e->s);
return 0;
}
if (n++)
@@ -62,12 +62,12 @@ static bool get_coord(const struct expr *e,
switch (n) {
case 0:
case 1:
- error("no enough coordinates\n");
+ error("no enough coordinates");
return 0;
case 2:
return 1;
default:
- error("too many coordinates\n");
+ error("too many coordinates");
return 0;
}
}
@@ -86,7 +86,7 @@ static bool get_size(const struct expr *e, float *x, float *y)
f = strtof(e->s, &end);
if (*end) {
- error("no a number \"%s\"\n", e->s);
+ error("no a number \"%s\"", e->s);
return 0;
}
if (n++)
@@ -98,12 +98,12 @@ static bool get_size(const struct expr *e, float *x, float *y)
switch (n) {
case 0:
case 1:
- error("no enough coordinates\n");
+ error("no enough coordinates");
return 0;
case 2:
return 1;
default:
- error("too many coordinates\n");
+ error("too many coordinates");
return 0;
}
}
@@ -116,7 +116,7 @@ static bool get_float(const struct expr *e, float *f)
*f = atof(e->s); // @@@ error checking
return 1;
}
- error("no number found\n");
+ error("no number found");
return 0;
}
@@ -129,7 +129,7 @@ static bool get_int(const struct expr *e, int *n)
*n = atoi(e->s); // @@@ error checking
return 1;
}
- error("no number found\n");
+ error("no number foundn");
return 0;
}
@@ -263,7 +263,7 @@ static bool process_obj(struct pl_ctx *pl, const struct expr *e,
for (; e; e = e->next) {
if (e->s) {
if (obj->s) {
- error("multiple strings\n");
+ error("multiple strings");
return 0;
}
obj->s = stralloc(e->s);
@@ -365,7 +365,7 @@ static bool process(struct pl_ctx *p, const struct expr *e)
return process_layout(p, e->e->next);
e = e->next;
}
- error("no layout information found\n");
+ error("no layout information found");
return 0;
}