dtcalc: Remove more 'extern' variables in .c files, by putting them in .h. Also reduce scope of vars and funcs with static.

This commit is contained in:
Peter Howkins
2021-11-25 04:29:25 +00:00
parent a9175c896d
commit 9f8dbf6a6c
10 changed files with 94 additions and 111 deletions

View File

@@ -53,6 +53,7 @@
#include <math.h>
#include "calctool.h"
#include <Dt/Dt.h>
#include "text.h"
struct {
int b, t, m, mxr, r[MP_SIZE] ;
@@ -78,12 +79,6 @@ static int c__239 = 239 ;
static int c__7 = 7 ;
static int c__16 = 16 ;
extern char *mpstrs[] ; /* MP errors (visible with -D option). */
extern char *vstrs[] ; /* Various strings. */
extern Vars v ; /* Calctool variables and options. */
void
mpabs(int *x, int *y)
{