Add missing types in function prototypes

It would be nice to convert the codebase from K&R to ANSI function
prototypes, but for now just clean up the warnings.
This commit is contained in:
Anton Blanchard 2022-01-08 07:37:06 +11:00 committed by Tim Edwards
parent 4f79580248
commit 73fee3e5fd
8 changed files with 13 additions and 5 deletions

View File

@ -237,6 +237,7 @@ void
CIFPropRecordPath(def, pathheadp, iswire, propname) CIFPropRecordPath(def, pathheadp, iswire, propname)
CellDef *def; CellDef *def;
CIFPath *pathheadp; CIFPath *pathheadp;
bool iswire;
char *propname; char *propname;
{ {
extern float CIFGetOutputScale(); extern float CIFGetOutputScale();

View File

@ -2228,6 +2228,7 @@ void
CmdDoProperty(def, cmd, argstart) CmdDoProperty(def, cmd, argstart)
CellDef *def; CellDef *def;
TxCommand *cmd; TxCommand *cmd;
int argstart;
{ {
int printPropertiesFunc(); int printPropertiesFunc();
char *value; char *value;

View File

@ -132,7 +132,7 @@ static bool efReadDef();
bool bool
EFReadFile(name, dosubckt, resist, noscale) EFReadFile(name, dosubckt, resist, noscale)
char *name; /* Name of def to be read in */ char *name; /* Name of def to be read in */
bool dosubckt, resist; bool dosubckt, resist, noscale;
{ {
Def *def; Def *def;
bool rc; bool rc;

View File

@ -660,6 +660,7 @@ struct saveList {
void void
extExtractStack(stack, doExtract, rootDef) extExtractStack(stack, doExtract, rootDef)
Stack *stack; Stack *stack;
bool doExtract;
CellDef *rootDef; CellDef *rootDef;
{ {
int errorcnt = 0, warnings = 0; int errorcnt = 0, warnings = 0;

View File

@ -47,6 +47,7 @@ typedef struct
int int
main(argc, argv) main(argc, argv)
int argc;
char *argv[]; char *argv[];
{ {
char line1[LINESIZE], line2[LINESIZE], layer[LINESIZE], label[LINESIZE]; char line1[LINESIZE], line2[LINESIZE], layer[LINESIZE], label[LINESIZE];

View File

@ -1940,6 +1940,7 @@ plowMoveEdge(edge)
Tile * Tile *
plowSplitY(tp, y) plowSplitY(tp, y)
Tile *tp; Tile *tp;
int y;
{ {
Tile *newTile; Tile *newTile;

View File

@ -88,6 +88,7 @@ RtrPinsInit(ch)
int int
rtrPinArrayInit(ch, side, pins, nPins) rtrPinArrayInit(ch, side, pins, nPins)
GCRChannel *ch; GCRChannel *ch;
int side;
GCRPin *pins; GCRPin *pins;
int nPins; int nPins;
{ {

View File

@ -1237,15 +1237,17 @@ bool
RtrComputeJogs(loc, stem, dir, contact, jog, start, width) RtrComputeJogs(loc, stem, dir, contact, jog, start, width)
NLTermLoc *loc; /* Terminal whose stem is to be painted */ NLTermLoc *loc; /* Terminal whose stem is to be painted */
Point *stem; /* Point intersecting channel*/ Point *stem; /* Point intersecting channel*/
Point *start; /* Somewhere along terminal area */ int dir;
Point *jog; /* Where the stem crosses the first usable
* grid line as it runs out from the cell.
*/
Point *contact; /* A second grid point, where a contact can Point *contact; /* A second grid point, where a contact can
* be placed if necessary. This is a the * be placed if necessary. This is a the
* nearest grid crossing to crossing outside * nearest grid crossing to crossing outside
* the channel. * the channel.
*/ */
Point *jog; /* Where the stem crosses the first usable
* grid line as it runs out from the cell.
*/
Point *start; /* Somewhere along terminal area */
int width;
{ {
Rect *area; Rect *area;
area = &loc->nloc_rect; area = &loc->nloc_rect;