aboutsummaryrefslogtreecommitdiffstats
path: root/cad/findhier/files/patch-findhier.h
blob: d2249fd84f11c3be98e831d238e8e467f5b304d6 (plain) (blame)
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
--- findhier.h.orig Sun Apr 29 00:47:16 2007
+++ findhier.h  Sun Apr 29 00:49:02 2007
@@ -6,6 +6,7 @@
  *
  */
 #include <stdio.h>
+#include <stdlib.h>
 #include <string.h>
 #include "fstruct.h"
 
@@ -31,7 +32,7 @@
 
 #ifndef isalpha
 #define isalpha(X) ( X>='A' && X<='Z' || X>='a' && X<='z' )
-#endif isalpha
+#endif /* isalpha */
 
 typedef enum formats { CIF, GDSII, MAGIC, PCSTR, VALID, TeX } FORMAT;
 
@@ -111,19 +112,21 @@
 void exit();
 char *getenv();
 
+/*
 #ifdef SYSV
 void *malloc();
 void free();
 #else
 char *malloc();
 #endif SYSV
+*/
 #ifdef _UNIX_
 #  define OPENMODE "r"
 #  define DIRDEL '/'
 #else
 #define OPENMODE "rb"
 #define DIRDEL '\\'
-#endif _UNIX_
+#endif /* _UNIX_ */
 /*
 char *getenv();
 */