summaryrefslogtreecommitdiff
blob: 8f569a958ba4c321d37e3c24fe2c6f817c6e9ce1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
Declare all the work_str vars static since they'll conflict badly
with each other if we don't.  pcalc.y doesn't actually use work_str.

Patch by Mike Frysinger <vapier@gentoo.org>

--- pcalc-000/funct.c
+++ pcalc-000/funct.c
@@ -50,7 +50,7 @@
 
 /* -------- Strings: ----------------------------------------------------- */
 
-char    work_str[2000];
+static char    work_str[2000];
 
 /* -------- Implementation: ---------------------------------------------- */
 
--- pcalc-000/pcalc.y
+++ pcalc-000/pcalc.y
@@ -37,7 +37,7 @@
 
   extern  FILE * yyin ;
 
-  char    work_str[128];
+  //static char    work_str[128];
 
   %}
 
--- pcalc-000/print.c
+++ pcalc-000/print.c
@@ -31,7 +31,7 @@
 
 /* -------- Implementation: ---------------------------------------------- */
 
-char    work_str[128];
+static char    work_str[128];
 
 void    print_num(double var)
 
--- pcalc-000/store.c
+++ pcalc-000/store.c
@@ -27,7 +27,7 @@
 
 /* -------- Implementation: ---------------------------------------------- */
 
-char    work_str[128];
+static char    work_str[128];
 
 int     store(char *file, char *name, double var)