summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-10-28 07:02:12 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-10-28 07:02:12 (GMT)
commit812bd145ddb39f6fbab53196652ad47520beffd2 (patch)
treeb5c5d0d906d5715d3a0c5723762e1d8b6a34b25a
parent629c56a6c1013625a37e8fa725783fa30abc5359 (diff)
downloadeeshow-812bd145ddb39f6fbab53196652ad47520beffd2.zip
eeshow-812bd145ddb39f6fbab53196652ad47520beffd2.tar.gz
eeshow-812bd145ddb39f6fbab53196652ad47520beffd2.tar.bz2
kicad/pl-render.c: add section comments
-rw-r--r--kicad/pl-render.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/kicad/pl-render.c b/kicad/pl-render.c
index 7bd697d..b1dba23 100644
--- a/kicad/pl-render.c
+++ b/kicad/pl-render.c
@@ -38,6 +38,9 @@ bool suppress_page_layout = 0;
const char *date_override = NULL;
+/* ----- Coordinate transform ---------------------------------------------- */
+
+
/*
* Eeschema works in mil
* Page layouts are in mm
@@ -56,6 +59,9 @@ static int coord(int v, int d, int o, int e)
}
+/* ----- String expansion -------------------------------------------------- */
+
+
static char *expand(const struct pl_ctx *pl, const char *s,
const struct sheet *sheets, const struct sheet *sheet)
{
@@ -150,6 +156,9 @@ static char *expand(const struct pl_ctx *pl, const char *s,
}
+/* ----- Rendering --------------------------------------------------------- */
+
+
static char *increment(char *s, int inc, const char *range)
{
char *t;