path: root/kicad
AgeCommit message (Collapse)AuthorFilesLines
2016-09-19kicad/: support remaining header fields (date, revision, company)Werner Almesberger3-6/+26
2016-09-19kicad/lib-parse.c (lib_parse_line): use "n" only for %nWerner Almesberger1-4/+5
2016-09-19kicad/sch-parse.c (parse_line): use "n" only for %nWerner Almesberger1-7/+6
Else, we need to ensure it never gets set by partially accepted lines, like Comment1 "" with format string Comment%d %[\"] Just avoiding reuse of "n" is easier and thus safer.
2016-09-19kicad/pl-render.c (expand): centralize NULL checkWerner Almesberger1-9/+6
2016-09-19eeshow/pl-render.c (expand): solve optional free() more cleanlyWerner Almesberger1-22/+21
2016-09-19kicad/pl-render.c (expand): support %Cn (comment)Werner Almesberger1-2/+14
2016-09-19kicad/sch-parse.c: record commentsWerner Almesberger2-0/+36
2016-09-19kicad/pl-render.c (expand): support %Z (paper format)Werner Almesberger1-1/+1
2016-09-19kicad/sch-parse.c: record sheet (paper) sizeWerner Almesberger2-1/+5
2016-09-11kicad/lib-parse.c, pl-parse.c: defer error messages for search pathsWerner Almesberger2-2/+18
2016-09-10kicad/lib-parse.c (add_alias): there can be more than one alias per ALIASWerner Almesberger1-4/+19
Reported by Roman Pavelka.
2016-09-08kicad/pl-parse.c (pl_parse_search): use KiCad's default page layout as defaultWerner Almesberger1-6/+25
2016-09-08kicad/pl-render.c: render polygonsWerner Almesberger1-0/+41
2016-09-08kicad/: support parsing polygons in page layoutWerner Almesberger2-2/+78
2016-09-08kicad/pl-parse.c (get_size): rename to get_xyWerner Almesberger1-3/+3
We use it for more things that just sizes.
2016-09-08kicad/: support page layout options page1only and notonpage1Werner Almesberger3-1/+33
2016-09-08kicad/: support rotated text in page layoutsWerner Almesberger3-1/+6
2016-09-08kicad/lib-parse.c (parse_arc): make fill at end of arc optionalWerner Almesberger1-1/+2
siliconi.lib uses this form.
2016-09-08kicad/lib-parse.c (parse_poly): make fill at end of polygon optionalWerner Almesberger1-1/+1
siliconi.lib uses this form.
2016-09-07kicad/pl-parse.c (pl_parse_search): search in template directoriesWerner Almesberger3-0/+40
2016-09-07fix numerous whitespace atrocitiesWerner Almesberger5-11/+10
- 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
2016-09-07kicad/pl-render.c (expand): don't crash on %T if we have no titleWerner Almesberger1-1/+1
2016-09-07kicad/kicad.h: share and generalize default pathsWerner Almesberger2-6/+29
2016-09-07kicad/lib-parse.c (lib_parse_search, lib_find_file): search LibDir and ↵Werner Almesberger2-0/+42
default paths
2016-09-06kicad/: record LibDir path in "struct file_names"Werner Almesberger3-4/+43
2016-09-04kicad/ext.c (classify_files): call do_classify_files_ab, not classify_files_abWerner Almesberger1-1/+1
Else, we may crash because classify_files_ab expect "b" to be non-NULL.
2016-09-03kicad/ext.c (classify_files_ab): classification of two sheets, i.e., diffWerner Almesberger2-5/+47
2016-09-03kicad/sch-parse.c (parse_field): make italic and bold optional, compatibilityWerner Almesberger1-3/+3
2016-09-03kicad/lib-parse.c (lib_parse_line): accept short T recordsWerner Almesberger1-1/+24
Seems that they were common in the past - at least Qi-Hw's kicad-libs have them.
2016-09-02kicad/sch-parse.c (free_sheet): don't forget to free file name, sheet pathWerner Almesberger1-0/+2
2016-09-01kicad/pl-render.c (expand): expand %F (file name) and %P (path)Werner Almesberger1-2/+2
2016-09-01kicad/sch.h (struct sheet): keep track of file name and schematics pathWerner Almesberger3-0/+49
2016-09-01kicad/pl-render.c (expand): move decription of format symbol to "case"Werner Almesberger1-19/+19
2016-08-30fix a few trivial memory leaks; eeshow ... -- pdf now passesWerner Almesberger1-0/+1
2016-08-30kicad/sch-parse.c (parse_field): free "field" on all rejected linesWerner Almesberger1-2/+8
Note that parse_field rejecting a lines doesn't mean there is anything wrong with it, we could leak a fair number of fields this way. For eeshow -N 1 ../../n9/ee/hw/ -- pdf >/dev/null 142,128 bytes in 2,961 blocks are definitely lost in loss record 347 of 347
2016-08-30kicad/pl-parse.c (get_float, get_int): add error checkingWerner Almesberger1-4/+17
2016-08-30fix remaining "direct" leaks in simplest use caseWerner Almesberger1-5/+16
2016-08-30fix a few memory leaks (in non-interactive mode)Werner Almesberger3-2/+12
We now leak less than 1 MB on valgrind --leak-check=full eeshow -N 1 -- png -o foo.png instead of about 3.5 MB. The plan is as follows: - fix memory leaks in simple operations in on-interactive mode, - suppress what cannot be fixed (e.g., when comes from libraries), - move on to more complex operations, - then start fixing interactive mode.
2016-08-30misc/util.h (alloc_printf): error-checking vasprintf wrapper; use itWerner Almesberger3-8/+6
2016-08-30kicad/delta.c (sheet_eq): make recursing optional; don't recurse in indexWerner Almesberger2-4/+4
In the index, we don't want to have pages marked because there's a page underneath that has changed. After all, that other page is being shown in the index as well. However, in all other cases we still want to recurse.
2016-08-28kicad/sch-parse.c (parse_line): also accept "Text GLabel" without text styleWerner Almesberger1-4/+9
2016-08-26gfx/text.c (text_fig): rename to text_showWerner Almesberger4-11/+11
The days of only doing FIG are long gone ...
2016-08-26kicad/: always initialize struct text.styleWerner Almesberger3-31/+37
2016-08-26kicad/dwg.c: add text style to label drawing functionsWerner Almesberger4-39/+45
2016-08-26fully decode text attributes in sch-parse.c and lib-parse.cWerner Almesberger3-25/+73
2016-08-25option -L to suppress page layout; non-interactive diff always implies -LWerner Almesberger2-0/+15
This means that we can now do things like eeshow neo900_SS_5.sch -- \ diff -s 2 -o diff.png neo900_SS_5.sch
2016-08-25kicad/ext.c (classify_files): play it safe and stralloc stringsWerner Almesberger1-4/+4
This prevents problems in case the argument list disappears, and one doesn't have to distinguish freeing of file_names initialized with classify_files from freeing of file_names returned by pro_parse_file.
2016-08-25kicad/lib-render.c (draw_pin_line): mark NC pins with a little XWerner Almesberger1-1/+18
2016-08-25kicad/pl-parse.c: a bunch of "no" ought to be "not" (reported by Joerg)Werner Almesberger1-4/+4
2016-08-24remove global gfx state (pass context as argument)Werner Almesberger8-168/+200