summaryrefslogtreecommitdiff
path: root/kicad
diff options
context:
space:
mode:
authorWerner Almesberger <werner@almesberger.net>2016-09-08 01:26:44 (GMT)
committerWerner Almesberger <werner@almesberger.net>2016-09-08 01:31:18 (GMT)
commit2a64264e445dd46121c1e966bbe1d2b44b29d33f (patch)
tree76dd5225c653bdb983a1c7b7a241fff5570086c7 /kicad
parentdafe079f9bd26ee63e685db638d578236abd6eb3 (diff)
downloadeeshow-2a64264e445dd46121c1e966bbe1d2b44b29d33f.zip
eeshow-2a64264e445dd46121c1e966bbe1d2b44b29d33f.tar.gz
eeshow-2a64264e445dd46121c1e966bbe1d2b44b29d33f.tar.bz2
fix numerous whitespace atrocities
- trailing spaces - trailing tabs - space before tab - more than four spaces ... - at the beginning of a line - after tab - in general (okay in many cases, but not all) - caught a stray blank line as well
Diffstat (limited to 'kicad')
-rw-r--r--kicad/delta.c10
-rw-r--r--kicad/ext.h2
-rw-r--r--kicad/lib-render.c2
-rw-r--r--kicad/lib.h1
-rw-r--r--kicad/pl-common.h6
5 files changed, 10 insertions, 11 deletions
diff --git a/kicad/delta.c b/kicad/delta.c
index 35ed774..2b9a30a 100644
--- a/kicad/delta.c
+++ b/kicad/delta.c
@@ -272,9 +272,9 @@ static bool obj_eq(const struct sch_obj *a, const struct sch_obj *b,
switch (a->type) {
case sch_obj_junction:
- return 1;
+ return 1;
case sch_obj_noconn:
- return 1;
+ return 1;
case sch_obj_glabel:
case sch_obj_text:
if (a->u.text.fn != b->u.text.fn)
@@ -440,9 +440,9 @@ static void init_res(struct sheet *res)
res->title = NULL;
res->file = NULL;
res->path = NULL;
- res->objs = NULL;
- res->next_obj = &res->objs;
- res->next = NULL;
+ res->objs = NULL;
+ res->next_obj = &res->objs;
+ res->next = NULL;
}
diff --git a/kicad/ext.h b/kicad/ext.h
index 77d66a4..38cf60c 100644
--- a/kicad/ext.h
+++ b/kicad/ext.h
@@ -35,7 +35,7 @@ struct file_names {
enum ext identify(const char *path);
-void classify_files(struct file_names *fn, char *const *args,
+void classify_files(struct file_names *fn, char *const *args,
unsigned n_args);
void classify_files_ab(struct file_names *a, struct file_names *b,
char *const *args, unsigned n_args);
diff --git a/kicad/lib-render.c b/kicad/lib-render.c
index 88a161d..88691ec 100644
--- a/kicad/lib-render.c
+++ b/kicad/lib-render.c
@@ -324,10 +324,10 @@ static void draw_pin_line(const struct lib_pin *pin, struct gfx *gfx,
int len = pin->length;
int x[4], y[4];
int ex, ey;
+
if ((shape & pin_inverted) || (shape & pin_falling_edge))
len = pin->length - 2 * PIN_R;
-
x[0] = pin->x;
y[0] = pin->y;
x[1] = pin->x + dx * len;
diff --git a/kicad/lib.h b/kicad/lib.h
index 12addc9..6730166 100644
--- a/kicad/lib.h
+++ b/kicad/lib.h
@@ -127,7 +127,6 @@ struct lib {
struct comp *curr_comp; /* current component */
struct comp **next_comp;
struct lib_obj **next_obj;
-
};
diff --git a/kicad/pl-common.h b/kicad/pl-common.h
index 8b52bf4..3f27fe1 100644
--- a/kicad/pl-common.h
+++ b/kicad/pl-common.h
@@ -31,11 +31,11 @@ struct pl_obj {
pl_obj_text,
} type;
- const char *s; /* tbtext */
+ const char *s; /* tbtext */
int repeat; /* line, rect, tbtext */
- float x, y; /* line, rect, tbtext */
+ float x, y; /* line, rect, tbtext */
int dx, dy;
- float ex, ey; /* line, rect; font size for tbtext */
+ float ex, ey; /* line, rect; font size for tbtext */
int edx, edy;
float incrx, incry;
int incrlabel; /* tbtext */