File tree Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Expand file tree Collapse file tree 2 files changed +14
-12
lines changed Original file line number Diff line number Diff line change 77#define MAX_BUF_ANGLE 20
88
99/* The type of parsed spherical object. */
10- unsigned char spheretype ;
10+ static unsigned char spheretype ;
1111
1212/* The angle buffer. */
13- float8 bufangle [MAX_BUF_ANGLE ];
13+ static float8 bufangle [MAX_BUF_ANGLE ];
1414
1515/* A simple spherical point. */
1616typedef struct
@@ -20,43 +20,43 @@ typedef struct
2020} bpoint ;
2121
2222 /* Spherical point buffer. */
23- struct
23+ static struct
2424{
2525 int m ; /* count of buffered points */
2626 bpoint * p ; /* pointer to array of points */
2727} bufpoints ;
2828
2929/* ID of line's length angle. */
30- int bufline ;
30+ static int bufline ;
3131
3232/*
3333 * First element is the ID of spherical point ( center ).
3434 * Second element is the ID of radius angle.
3535 */
36- int bufcircle [2 ];
36+ static int bufcircle [2 ];
3737
3838/* Buffer of ellipse. */
39- int bufellipse [5 ];
39+ static int bufellipse [5 ];
4040
4141/* Buffer of IDs of Euler transformation values. */
42- int bufeuler [3 ];
42+ static int bufeuler [3 ];
4343
4444/* Structure to buffer the axes of Euler transformation. */
45- struct
45+ static struct
4646{
4747 unsigned char phi , /* first axis */
4848 theta , /* second axis */
4949 psi ; /* third axis */
5050} bufeulertype ;
5151
5252/* Current angle ID. */
53- int bufapos ;
53+ static int bufapos ;
5454
5555/* Current point ID. */
56- int bufspos ;
56+ static int bufspos ;
5757
5858/* Pointer to input buffer. */
59- char * parse_buffer ;
59+ static char * parse_buffer ;
6060
6161
6262void
Original file line number Diff line number Diff line change 1717#define EULER_AXIS_Y 2 /* y - axis for Euler transformation */
1818#define EULER_AXIS_Z 3 /* z - axis for Euler transformation */
1919
20- extern int sphere_yylex ();
20+ extern int sphere_yychar ;
21+ extern int sphere_yynerrs ;
22+ extern int sphere_yylex ();
2123extern void sphere_yyerror (const char * str );
2224extern void sphere_flush_scanner_buffer (void );
2325
You can’t perform that action at this time.
0 commit comments