Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells...
authordtrg <none@none>
Tue, 18 Jul 2006 17:10:18 +0000 (17:10 +0000)
committerdtrg <none@none>
Tue, 18 Jul 2006 17:10:18 +0000 (17:10 +0000)
modules/src/read_em/argtype
modules/src/read_em/m_C_mnem
util/ceg/defaults/argtype
util/ceg/defaults/m_C_mnem
util/cpp/input.c
util/cpp/main.c
util/cpp/make.hfiles
util/cpp/options.c

index 7eed0a4..57072fd 100755 (executable)
@@ -1,3 +1,4 @@
+#!/bin/sh
 : argtype lists all em mnemonics that have an argument type equal to
 : one of the letters specified in the argument
 case x$# in
index dc60a2a..70152f5 100755 (executable)
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 EM_TABLE=$1
 echo "switch(p->em_opcode) {"
 for i in - cdflnorswz p b
index 3ca1d7d..ebf48aa 100755 (executable)
@@ -1,3 +1,4 @@
+#!/bin/sh
 : argtype lists all em mnemonics that have an argument type equal to
 : one of the letters specified in the argument
 case x$# in
index 19810bb..d3c0c14 100755 (executable)
@@ -1,3 +1,5 @@
+#!/bin/sh
+
 EM_TABLE=$1
 argtype=$2
 echo "switch(p->em_opcode) {"
index 963da42..eaee781 100644 (file)
@@ -3,6 +3,10 @@
  * (c) copyright 1987 by the Vrije Universiteit, Amsterdam, The Netherlands.
  * See the copyright notice in the ACK home directory, in the file "Copyright".
  */
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 #include "file_info.h"
 #include "input.h"
 #define INP_TYPE       struct file_info
index d0471d7..7e70d66 100644 (file)
@@ -5,6 +5,7 @@
  */
 /* MAIN PROGRAM */
 
+#include <stdlib.h>
 #include <alloc.h>
 #include <em_arith.h>
 #include <assert.h>
index f53fdca..53cbdc1 100755 (executable)
@@ -1,3 +1,4 @@
+#!/bin/sh
 : Update Files from database
 
 PATH=/bin:/usr/bin
index ce2ab38..1d66d69 100644 (file)
@@ -5,6 +5,8 @@
  */
 /* USER-OPTION HANDLING */
 
+#include <stdlib.h>
+#include <string.h>
 #include       <alloc.h>
 #include       "idfsize.h"
 #include       "class.h"
@@ -90,7 +92,7 @@ do_option(text)
 
                        if (++inc_total > inc_max) {
                                inctable = (char **)
-                                 Realloc(inctable,(inc_max+=10)*sizeof(char *));
+                                 Realloc((void*) inctable,(inc_max+=10)*sizeof(char *));
                        }
 
                        for(i = inc_pos++; i < inc_total; i++) {