Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1462760

Browse files
esabolvitcpp
authored andcommitted
Fix compiler warnings about missing variable declarations
1 parentbf63416 commit1462760

File tree

2 files changed

+14
-12
lines changed

2 files changed

+14
-12
lines changed

‎src/sbuffer.c‎

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
#defineMAX_BUF_ANGLE20
88

99
/* The type of parsed spherical object. */
10-
unsignedcharspheretype;
10+
staticunsignedcharspheretype;
1111

1212
/* The angle buffer. */
13-
float8bufangle[MAX_BUF_ANGLE];
13+
staticfloat8bufangle[MAX_BUF_ANGLE];
1414

1515
/* A simple spherical point. */
1616
typedefstruct
@@ -20,43 +20,43 @@ typedef struct
2020
}bpoint;
2121

2222
/* Spherical point buffer. */
23-
struct
23+
staticstruct
2424
{
2525
intm;/* count of buffered points */
2626
bpoint*p;/* pointer to array of points */
2727
}bufpoints;
2828

2929
/* ID of line's length angle. */
30-
intbufline;
30+
staticintbufline;
3131

3232
/*
3333
* First element is the ID of spherical point ( center ).
3434
* Second element is the ID of radius angle.
3535
*/
36-
intbufcircle[2];
36+
staticintbufcircle[2];
3737

3838
/* Buffer of ellipse. */
39-
intbufellipse[5];
39+
staticintbufellipse[5];
4040

4141
/* Buffer of IDs of Euler transformation values. */
42-
intbufeuler[3];
42+
staticintbufeuler[3];
4343

4444
/* Structure to buffer the axes of Euler transformation. */
45-
struct
45+
staticstruct
4646
{
4747
unsignedcharphi,/* first axis */
4848
theta,/* second axis */
4949
psi;/* third axis */
5050
}bufeulertype;
5151

5252
/* Current angle ID. */
53-
intbufapos;
53+
staticintbufapos;
5454

5555
/* Current point ID. */
56-
intbufspos;
56+
staticintbufspos;
5757

5858
/* Pointer to input buffer. */
59-
char*parse_buffer;
59+
staticchar*parse_buffer;
6060

6161

6262
void

‎src/sbuffer.h‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
#defineEULER_AXIS_Y 2/* y - axis for Euler transformation */
1818
#defineEULER_AXIS_Z 3/* z - axis for Euler transformation */
1919

20-
externintsphere_yylex();
20+
externintsphere_yychar;
21+
externintsphere_yynerrs;
22+
externintsphere_yylex();
2123
externvoidsphere_yyerror(constchar*str);
2224
externvoidsphere_flush_scanner_buffer(void);
2325

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp