Commit 9b0b2bd6 authored by Udo Ziegler's avatar Udo Ziegler
Browse files

definitions of global variables in CAIVS tool shifted to caivs.c and declared...

definitions of global variables in CAIVS tool shifted to caivs.c and declared extern in header caivs.h to avoid using -fcommon option when compiling with gcc 10.
parent fe7faebb
......@@ -19,6 +19,12 @@
#include <caivs.h>
/* GLOBAL VARIABLES --------------------------------------------------------- */
char _IODIR[BUFS]; /* I/O DIRECTORY */
FILE *_FLOG; /* LOG FILE POINTER */
CTL _C; /* NIRVANA CONTROL PARAMETERS */
CCTL _CC; /* CAIVS CONTROL PARAMETERS */
/*############################################################################*/
......
......@@ -115,11 +115,11 @@ typedef struct /* CAIVS CONTROL PARAMETERS */
#include <prototypesC.h> /* PUBLIC FUNCTIONS PROTOTYPES */
/* PUBLIC VARIABLES --------------------------------------------------------- */
char _IODIR[BUFS]; /* I/O DIRECTORY */
FILE *_FLOG; /* LOG FILE POINTER */
CTL _C; /* NIRVANA CONTROL PARAMETERS */
CCTL _CC; /* CAIVS CONTROL PARAMETERS */
/* GLOBAL VARIABLES --------------------------------------------------------- */
extern char _IODIR[BUFS]; /* I/O DIRECTORY */
extern FILE *_FLOG; /* LOG FILE POINTER */
extern CTL _C; /* NIRVANA CONTROL PARAMETERS */
extern CCTL _CC; /* CAIVS CONTROL PARAMETERS */
/* LABELS */
static char *lcoord[3][3]={{"x","y","z"},{"z","R","phi"},{"r","theta","phi"}},
*lvf[3][3]={{"vx","vy","vz"},{"vz","vR","vphi"},{"vr","vtheta","vphi"}},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment