Explorar o código

Added the appropriate #! magic at the beginning of shell scripts. (Some modern shells don't like scripts to be without it.)

dtrg %!s(int64=18) %!d(string=hai) anos
pai
achega
8ea67498ed

+ 1 - 0
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

+ 2 - 0
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

+ 1 - 0
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

+ 2 - 0
util/ceg/defaults/m_C_mnem

@@ -1,3 +1,5 @@
+#!/bin/sh
+
 EM_TABLE=$1
 argtype=$2
 echo "switch(p->em_opcode) {"

+ 4 - 0
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 <stdlib.h>
+#include <stdio.h>
+#include <string.h>
 #include "file_info.h"
 #include "input.h"
 #define INP_TYPE	struct file_info

+ 1 - 0
util/cpp/main.c

@@ -5,6 +5,7 @@
  */
 /* MAIN PROGRAM */
 
+#include <stdlib.h>
 #include <alloc.h>
 #include <em_arith.h>
 #include <assert.h>

+ 1 - 0
util/cpp/make.hfiles

@@ -1,3 +1,4 @@
+#!/bin/sh
 : Update Files from database
 
 PATH=/bin:/usr/bin

+ 3 - 1
util/cpp/options.c

@@ -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++) {