From 4d58789c69bbc7812b166b01ec2617a8517c17a7 Mon Sep 17 00:00:00 2001 From: "Darryl L. Miles" Date: Fri, 3 Oct 2025 22:33:46 +0100 Subject: [PATCH] extflat: ANSI prototype efBuildDevice() and constify (const Rect*) --- extflat/EFbuild.c | 14 +++++++------- extflat/extflat.h | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/extflat/EFbuild.c b/extflat/EFbuild.c index a909adca..f6113857 100644 --- a/extflat/EFbuild.c +++ b/extflat/EFbuild.c @@ -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 diff --git a/extflat/extflat.h b/extflat/extflat.h index a940ad48..0dc740fc 100644 --- a/extflat/extflat.h +++ b/extflat/extflat.h @@ -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();