Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/fits/fitscat.c
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@
#include "fitscat_defs.h"
#include "fitscat.h"

int bswapflag;
char gstr[MAXCHAR];

/****** about_cat **************************************************************
PROTO int about_cat(catstruct *cat, FILE *stream)
PURPOSE Print some info about a catalog.
Expand Down
2 changes: 1 addition & 1 deletion src/fits/fitscat.h
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,6 @@ extern void error(int, char *, char *),
warning(char *msg1, char *msg2);


int bswapflag;
extern int bswapflag;

#endif
2 changes: 1 addition & 1 deletion src/fits/fitscat_defs.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ typedef unsigned char BYTE; /* a byte */
typedef int LONG; /* for DEC-Alpha... */

/*----------------------------- Internal constants --------------------------*/
char gstr[MAXCHAR];
extern char gstr[MAXCHAR];

/*----------------------------- External constants --------------------------*/

Expand Down
2 changes: 1 addition & 1 deletion src/globals.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
#include "types.h"

/*----------------------- miscellaneous variables ---------------------------*/
char gstr[MAXCHAR];
extern char gstr[MAXCHAR];

/*------------------------------- functions ---------------------------------*/
extern double counter_seconds();
Expand Down
2 changes: 2 additions & 0 deletions src/prefs.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@
#include "prefs.h"
#include "preflist.h"

prefstruct prefs;

/********************************* dumpprefs ********************************/
/*
Print the default preference parameters.
Expand Down
2 changes: 1 addition & 1 deletion src/prefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ typedef struct
double time_diff; /* Execution time */
} prefstruct;

prefstruct prefs;
extern prefstruct prefs;

/*-------------------------------- protos -----------------------------------*/
extern char *list_to_str(char *listname);
Expand Down
2 changes: 2 additions & 0 deletions src/threads.c
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@

#ifdef USE_THREADS

int nproc;

/******* threads_gate_init ***************************************************
PROTO threads_gate_t *threads_gate_init(int nthreads, void (*func)(void))
PURPOSE Create a new gate.
Expand Down
2 changes: 1 addition & 1 deletion src/threads.h
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ typedef struct _threads_gate_t
} threads_gate_t;

/*----------------------------- Global variables ----------------------------*/
int nproc; /* Number of child threads */
extern int nproc; /* Number of child threads */

/*--------------------------------- Functions -------------------------------*/
threads_gate_t *threads_gate_init(int nthreads, void (*func)(void));
Expand Down