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)
CellDef *def;
CIFPath *pathheadp;
bool iswire;
char *propname;
{
extern float CIFGetOutputScale();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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