From 5058152c8f90478c0fc6538d5e23d3cebf607b4e Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 31 Jan 2025 18:59:05 +0000 Subject: [PATCH] K&R wiring.h wireInt.h: conversion to ANSI K&R obsolete syntax removal for C23 compatibility series --- wiring/wireInt.h | 4 ++-- wiring/wiring.h | 22 +++++++++++----------- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/wiring/wireInt.h b/wiring/wireInt.h index 0a60ee1c..1d98773f 100644 --- a/wiring/wireInt.h +++ b/wiring/wireInt.h @@ -34,7 +34,7 @@ extern int WireUnits; /* Undo procedure: */ -extern void WireRememberForUndo(); -extern void WireUndoInit(); +extern void WireRememberForUndo(void); +extern void WireUndoInit(void); #endif /* _WIREINT_H */ diff --git a/wiring/wiring.h b/wiring/wiring.h index 20d9ee00..60cc5b2d 100644 --- a/wiring/wiring.h +++ b/wiring/wiring.h @@ -72,12 +72,12 @@ extern int WireWidth; /* Thickness of material to use for wiring. */ /* Procedures for placing wires: */ -extern void WirePickType(); -extern void WireAddLeg(); -extern void WireAddContact(); -extern void WireShowLeg(); -extern int WireGetWidth(); -extern TileType WireGetType(); +extern void WirePickType(TileType type, int width); +extern void WireAddLeg(Rect *rect, Point *point, int direction); +extern void WireAddContact(TileType newType, int newWidth); +extern void WireShowLeg(void); +extern int WireGetWidth(void); +extern TileType WireGetType(void); /* Legal values for the "direction" parameter to WireAddLeg: */ @@ -87,13 +87,13 @@ extern TileType WireGetType(); /* Procedures for reading the technology file: */ -extern void WireTechInit(); -extern bool WireTechLine(); -extern void WireTechFinal(); -extern void WireTechScale(); +extern void WireTechInit(void); +extern bool WireTechLine(char *sectionName, int argc, char *argv[]); +extern void WireTechFinal(void); +extern void WireTechScale(int scalen, int scaled); /* Initialization: */ -extern void WireInit(); +extern void WireInit(void); #endif /* _WIRING_H */