extflat: ANSI prototype efBuildDevice() and constify (const Rect*)

This commit is contained in:
Darryl L. Miles 2025-10-03 22:33:46 +01:00 committed by R. Timothy Edwards
parent c7ef7d743a
commit 5fe586100b
2 changed files with 8 additions and 8 deletions

View File

@ -831,13 +831,13 @@ efBuildDeviceParams(name, argc, argv)
*/
int
efBuildDevice(def, class, type, r, argc, argv)
Def *def; /* Def to which this connection is to be added */
char class; /* Class (dev, bjt, etc.) of this device */
char *type; /* Type (name) of this device */
Rect *r; /* Coordinates of 1x1 rectangle entirely inside device */
int argc; /* Size of argv */
char *argv[]; /* Tokens for the rest of the dev line.
efBuildDevice(
Def *def, /* Def to which this connection is to be added */
char class, /* Class (dev, bjt, etc.) of this device */
char *type, /* Type (name) of this device */
const Rect *r, /* Coordinates of 1x1 rectangle entirely inside device */
int argc, /* Size of argv */
char *argv[]) /* Tokens for the rest of the dev line.
* Starts with the last two position values, used to
* hash the device record. The next arguments depend
* on the type of device. The rest are taken in groups

View File

@ -78,7 +78,7 @@ extern int EFNodeResist();
extern void efAdjustSubCap();
extern int efBuildAddStr();
extern void efBuildAttr();
extern int efBuildDevice();
extern int efBuildDevice(Def *def, char class, char *type, const Rect *r, int argc, char *argv[]);
extern void efBuildDeviceParams();
extern void efBuildDist();
extern void efBuildEquiv();