X-Authentication-Warning: delorie.com: mail set sender to geda-user-bounces using -f X-Recipient: geda-user AT delorie DOT com MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 1 Oct 2011 20:25:27 -0700 Message-ID: Subject: Re: [geda-user] Anyone recognize this package for creating PCB elements? From: Russell Dill To: geda-user AT delorie DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id p923WTfk027336 Reply-To: geda-user AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: geda-user AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk That's me! http://www.geda.seul.org/mailinglist/geda-dev38/msg00032.html Feel free to take it as public domain. On Sat, Oct 1, 2011 at 4:54 PM, Bob Paddock wrote: > I came across some old PCB code for making elements, circa 2004, in my archives. > I'd like to know who wrote it as there is no attribution or licenses > information. > > Package consists of library.c library.h and a 'C' file for each > produced element, which includes library.h. > > library.c starts off: > > #include > #include > #include > #include "library.h" > > #define PIN     0 > #define PAD     1 > #define BORE    2 > > #define MILS    1 > #define MM      2 > > #define FACTOR 39.37 > > static int      l_conversion = MILS;    // Conversion factor, start in mils > static int      l_pad_width = 60;       // Pad width, in mils > ... > > An example, diode.c, looks like: > > #define DIMC 6.8 > #define DIMZ DIMC + DIMY > > #define DIMY 2.0 > #define DIMX 3.0 > > #define WIDTH 7.0 > #define HEIGHT 9.5 > > void make_element(void) > { >        set_mm(); > >        header("Big Diode", "D1", "diode", 0, 0, RIGHT); > >        set_pad(DIMZ - DIMC, DIMX, .2, DIMX + .2); >        up(DIMC / 2.0); >        pads_down(DIMC, 2, 1, -1); > >        up(DIMC / 2.0 + HEIGHT / 2.0); >        left(WIDTH / 2.0); > >        pen_on(); >        right(WIDTH); >        down(HEIGHT); >        left(WIDTH); >        up(HEIGHT + 1); >        right(WIDTH); >        down(1); > > } > > Anyone recognize this package? > > I want to update it, and want to know who to attribute the work to. > >