summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-01 15:22:16 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-01 15:22:16 (GMT)
commitd21c4c84e7977e658757b7d82209ec4f87b3285c (patch)
tree2b1d1d68741956ba36b5858801d25fdb6cca6c8e /kicad
parent2475f29dc2e08668a326a5964906f070bd6b4169 (diff)
downloadeeshow-d21c4c84e7977e658757b7d82209ec4f87b3285c.zip
eeshow-d21c4c84e7977e658757b7d82209ec4f87b3285c.tar.gz
eeshow-d21c4c84e7977e658757b7d82209ec4f87b3285c.tar.bz2
kicad/pl-render.c (expand): move decription of format symbol to "case"
Diffstat (limited to 'kicad')
-rw-r--r--kicad/pl-render.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index ded0373..392f643 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -73,32 +73,32 @@ static char *expand(const struct pl_ctx *pl, const char *s,
case '%':
x = "%";
break;
- case 'C':
- x = "%C"; // comment #n
+ case 'C': // comment #n
+ x = "%C";
break;
- case 'D':
- x = "%D"; // date
+ case 'D': // date
+ x = "%D";
break;
- case 'F':
- x = "%F"; // file name
+ case 'F': // file name
+ x = "%F";
break;
- case 'K':
- x = "%K"; // KiCad version
+ case 'K': // KiCad version
+ x = "%K";
break;
- case 'N':
+ case 'N': // number of sheets
n = 0;
for (sch = sheets; sch; sch = sch->next)
n++;
alloc_printf(&x, "%u", n);
do_free = 1;
break;
- case 'P':
- x = "%P"; // sheet path
+ case 'P': // sheet path
+ x = "%P";
break;
- case 'R':
- x = "%R"; // revision
+ case 'R': // revision
+ x = "%R";
break;
- case 'S':
+ case 'S': // sheet number
n = 1;
for (sch = sheets; sch != sheet;
sch = sch->next)
@@ -106,14 +106,14 @@ static char *expand(const struct pl_ctx *pl, const char *s,
alloc_printf(&x, "%u", n);
do_free = 1;
break;
- case 'T':
+ case 'T': // title
x = (char *) sheet->title;
break;
- case 'Y':
- x = "%Y"; // company name
+ case 'Y': // company name
+ x = "%Y";
break;
- case 'Z':
- x = "%Z"; // paper format
+ case 'Z': // paper format
+ x = "%Z";
break;
default:
x = "???";