pcb 4.1.1
An interactive printed circuit board layout editor.

drill.c File Reference

More...

#include "data.h"
#include "error.h"
#include "mymem.h"
Include dependency graph for drill.c:

Go to the source code of this file.

Defines

#define ROUND(x, n)   ((int)(((x)+(n)/2)/(n))*(n))

Functions

static void FillDrill (DrillType *, ElementType *, PinType *)
static void InitializeDrill (DrillType *, PinType *, ElementType *)
static int DrillQSort (const void *va, const void *vb)
DrillInfoTypeGetDrillInfo (DataType *top)
void FreeDrillInfo (DrillInfoType *Drills)

Detailed Description


Copyright.


PCB, interactive printed circuit board design

Copyright (C) 1994,1995,1996 Thomas Nau

This module, drill.c, was written and is Copyright (C) 1997 harry eaton

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

Contact addresses for paper mail and Email: Thomas Nau, Schlehenweg 15, 88471 Baustetten, Germany Thomas.Nau@rz.uni-ulm.de

Definition in file drill.c.


Define Documentation

#define ROUND (   x,
  n 
)    ((int)(((x)+(n)/2)/(n))*(n))

Definition at line 216 of file drill.c.

Referenced by frac_circle(), OctagonPoly(), and vect_inters2().


Function Documentation

static int DrillQSort ( const void *  va,
const void *  vb 
) [static]

Definition at line 111 of file drill.c.

References DrillType::DrillSize.

Referenced by GetDrillInfo().

static void FillDrill ( DrillType Drill,
ElementType Element,
PinType Pin 
) [static]

Definition at line 55 of file drill.c.

References DrillType::Element, DrillType::ElementN, GetDrillElementMemory(), GetDrillPinMemory(), n, pin, DrillType::PinCount, ptr, TEST_FLAG, DrillType::UnplatedCount, and DrillType::ViaCount.

Referenced by GetDrillInfo().

Here is the call graph for this function:

void FreeDrillInfo ( DrillInfoType Drills)

Definition at line 308 of file drill.c.

References DrillInfoType::Drill, DRILL_LOOP, and END_LOOP.

Referenced by ReportDrills().

static void InitializeDrill ( DrillType drill,
PinType pin,
ElementType element 
) [static]