summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 04:19:06 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-08 04:19:34 (GMT)
commit61c29a9d460573cb1095351c8de48c4f985facbe (patch)
treee8d2d2b9a8a3131c76545bb05435fd4eff9d98ae /kicad
parent1dafa964313fd0d2b8beac13797685efba93e37a (diff)
downloadeeshow-61c29a9d460573cb1095351c8de48c4f985facbe.zip
eeshow-61c29a9d460573cb1095351c8de48c4f985facbe.tar.gz
eeshow-61c29a9d460573cb1095351c8de48c4f985facbe.tar.bz2
kicad/pl-parse.c (get_size): rename to get_xy
We use it for more things that just sizes.
Diffstat (limited to 'kicad')
-rw-r--r--kicad/pl-parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kicad/pl-parse.c b/kicad/pl-parse.c
index b9eab73..27a4628 100644
--- a/kicad/pl-parse.c
+++ b/kicad/pl-parse.c
@@ -82,7 +82,7 @@ static bool get_coord(const struct expr *e,
}
-static bool get_size(const struct expr *e, float *x, float *y)
+static bool get_xy(const struct expr *e, float *x, float *y)
{
unsigned n = 0;
@@ -176,7 +176,7 @@ static bool process_setup(struct pl_ctx *pl, const struct expr *e)
continue;
if (!strcmp(s, "textsize")) {
- if (!get_size(next, &pl->tx, &pl->ty))
+ if (!get_xy(next, &pl->tx, &pl->ty))
return 0;
} else if (!strcmp(s, "linewidth")) {
// meh
@@ -229,7 +229,7 @@ static bool process_font(struct pl_obj *obj, const struct expr *e)
continue;
if (!strcmp(s, "size")) {
- if (!get_size(next, &obj->ex, &obj->ey))
+ if (!get_xy(next, &obj->ex, &obj->ey))
return 0;
} else {
warning("font: ignoring \"%s\"", s);