Skip to content

Commit 36c2bea

Browse files
committed
moar C23 updates - #18
1 parent dd37c3e commit 36c2bea

File tree

2 files changed

+5
-7
lines changed

2 files changed

+5
-7
lines changed

CHANGES

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
- update C code to C23 compatibility (#18) - thanks @emollier
2+
13
2.35 2024-12-20
24
- be more careful with datatypes (https://github.com/PDLPorters/pdl/issues/511)
35

pgfun.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,7 @@ void cpgconx ( float* a, int idim, int jdim, int i1, int i2,
7575

7676
/* pgplot called function perl intermediate number 1 */
7777

78-
float pgfun1(x)
79-
float *x; {
78+
float pgfun1(float *x) {
8079

8180
dSP ;
8281
int count;
@@ -117,8 +116,7 @@ float pgfun1(x)
117116

118117
/* pgplot called function perl intermediate number 2 */
119118

120-
float pgfun2(x)
121-
float *x; {
119+
float pgfun2(float *x) {
122120

123121
dSP ;
124122
int count;
@@ -158,9 +156,7 @@ float pgfun2(x)
158156

159157
/* pgplot called function perl intermediate for PGCONX */
160158

161-
void pgfunplot(visible,x,y,z)
162-
int *visible;
163-
float *x,*y,*z; {
159+
void pgfunplot(int *visible, float *x, float *y, float *z) {
164160

165161
dSP ;
166162
int count;

0 commit comments

Comments
 (0)