From 8ea67498ed36d876ab6319ee678ba4905ac6fd38 Mon Sep 17 00:00:00 2001 From: dtrg Date: Tue, 18 Jul 2006 17:10:18 +0000 Subject: [PATCH] Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells don't like scripts to be without it.) --- modules/src/read_em/argtype | 1 + modules/src/read_em/m_C_mnem | 2 ++ util/ceg/defaults/argtype | 1 + util/ceg/defaults/m_C_mnem | 2 ++ util/cpp/input.c | 4 ++++ util/cpp/main.c | 1 + util/cpp/make.hfiles | 1 + util/cpp/options.c | 4 +++- 8 files changed, 15 insertions(+), 1 deletion(-) diff --git a/modules/src/read_em/argtype b/modules/src/read_em/argtype index 7eed0a4b5..57072fd50 100755 --- a/modules/src/read_em/argtype +++ b/modules/src/read_em/argtype @@ -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 diff --git a/modules/src/read_em/m_C_mnem b/modules/src/read_em/m_C_mnem index dc60a2aff..70152f5c4 100755 --- a/modules/src/read_em/m_C_mnem +++ b/modules/src/read_em/m_C_mnem @@ -1,3 +1,5 @@ +#!/bin/sh + EM_TABLE=$1 echo "switch(p->em_opcode) {" for i in - cdflnorswz p b diff --git a/util/ceg/defaults/argtype b/util/ceg/defaults/argtype index 3ca1d7dc9..ebf48aaf4 100755 --- a/util/ceg/defaults/argtype +++ b/util/ceg/defaults/argtype @@ -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 diff --git a/util/ceg/defaults/m_C_mnem b/util/ceg/defaults/m_C_mnem index 19810bb3b..d3c0c1469 100755 --- a/util/ceg/defaults/m_C_mnem +++ b/util/ceg/defaults/m_C_mnem @@ -1,3 +1,5 @@ +#!/bin/sh + EM_TABLE=$1 argtype=$2 echo "switch(p->em_opcode) {" diff --git a/util/cpp/input.c b/util/cpp/input.c index 963da429d..eaee781c2 100644 --- a/util/cpp/input.c +++ b/util/cpp/input.c @@ -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 +#include +#include #include "file_info.h" #include "input.h" #define INP_TYPE struct file_info diff --git a/util/cpp/main.c b/util/cpp/main.c index d0471d7d5..7e70d662c 100644 --- a/util/cpp/main.c +++ b/util/cpp/main.c @@ -5,6 +5,7 @@ */ /* MAIN PROGRAM */ +#include #include #include #include diff --git a/util/cpp/make.hfiles b/util/cpp/make.hfiles index f53fdca18..53cbdc1dd 100755 --- a/util/cpp/make.hfiles +++ b/util/cpp/make.hfiles @@ -1,3 +1,4 @@ +#!/bin/sh : Update Files from database PATH=/bin:/usr/bin diff --git a/util/cpp/options.c b/util/cpp/options.c index ce2ab3824..1d66d69fc 100644 --- a/util/cpp/options.c +++ b/util/cpp/options.c @@ -5,6 +5,8 @@ */ /* USER-OPTION HANDLING */ +#include +#include #include #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++) { -- 2.34.1