Signed-off-by: Hongmei Gou <a0271...@ti.com>
---
 dhrystone/dhry.h   | 14 +++++++++++++-
 dhrystone/dhry_1.c | 18 ++++++------------
 dhrystone/dhry_2.c |  6 +++---
 3 files changed, 22 insertions(+), 16 deletions(-)

diff --git a/dhrystone/dhry.h b/dhrystone/dhry.h
index f236e79..100e578 100755
--- a/dhrystone/dhry.h
+++ b/dhrystone/dhry.h
@@ -431,6 +431,8 @@
 
 #include <stdio.h>
                 /* for strcpy, strcmp */
+#include <string.h>
+#include <stdlib.h>
 
 #define Null 0 
                 /* Value of a Null pointer */
@@ -466,4 +468,14 @@ typedef struct record
           } variant;
       } Rec_Type, *Rec_Pointer;
 
-
+void Proc_1 ();
+void Proc_2 ();
+void Proc_3 ();
+void Proc_4 ();
+void Proc_5 ();
+void Proc_6 ();
+void Proc_7 ();
+void Proc_8 ();
+Enumeration Func_1 ();
+Boolean Func_2 ();
+Boolean Func_3 ();
diff --git a/dhrystone/dhry_1.c b/dhrystone/dhry_1.c
index 49c23cb..ef44f09 100644
--- a/dhrystone/dhry_1.c
+++ b/dhrystone/dhry_1.c
@@ -66,12 +66,6 @@ char            Ch_1_Glob,
 int             Arr_1_Glob [50];
 int             Arr_2_Glob [50] [50];
 
-extern char     *malloc (size_t size);
-extern char     *strcpy (char *destination, const char *source);
-
-Enumeration     Func_1 ();
-  /* forward declaration necessary since Enumeration may not simply be int */
-
 #ifndef REG
         Boolean Reg = false;
 #define REG
@@ -112,7 +106,7 @@ int             CpuFreq=0; // in KHz
 /* end of variables for time measurement */
 
 
-main (int argc, char **argv)
+void main (int argc, char **argv)
 /*****/
 
   /* main program, corresponds to procedures        */
@@ -346,7 +340,7 @@ main (int argc, char **argv)
 }
 
 
-Proc_1 (Ptr_Val_Par)
+void Proc_1 (Ptr_Val_Par)
 /******************/
 
 REG Rec_Pointer Ptr_Val_Par;
@@ -380,7 +374,7 @@ REG Rec_Pointer Ptr_Val_Par;
 } /* Proc_1 */
 
 
-Proc_2 (Int_Par_Ref)
+void Proc_2 (Int_Par_Ref)
 /******************/
     /* executed once */
     /* *Int_Par_Ref == 1, becomes 4 */
@@ -403,7 +397,7 @@ One_Fifty   *Int_Par_Ref;
 } /* Proc_2 */
 
 
-Proc_3 (Ptr_Ref_Par)
+void Proc_3 (Ptr_Ref_Par)
 /******************/
     /* executed once */
     /* Ptr_Ref_Par becomes Ptr_Glob */
@@ -418,7 +412,7 @@ Rec_Pointer *Ptr_Ref_Par;
 } /* Proc_3 */
 
 
-Proc_4 () /* without parameters */
+void Proc_4 () /* without parameters */
 /*******/
     /* executed once */
 {
@@ -430,7 +424,7 @@ Proc_4 () /* without parameters */
 } /* Proc_4 */
 
 
-Proc_5 () /* without parameters */
+void Proc_5 () /* without parameters */
 /*******/
     /* executed once */
 {
diff --git a/dhrystone/dhry_2.c b/dhrystone/dhry_2.c
index 11b8280..4d6b352 100644
--- a/dhrystone/dhry_2.c
+++ b/dhrystone/dhry_2.c
@@ -65,7 +65,7 @@ extern  int     Int_Glob;
 extern  char    Ch_1_Glob;
 
 
-Proc_6 (Enum_Val_Par, Enum_Ref_Par)
+void Proc_6 (Enum_Val_Par, Enum_Ref_Par)
 /*********************************/
     /* executed once */
     /* Enum_Val_Par == Ident_3, Enum_Ref_Par becomes Ident_2 */
@@ -99,7 +99,7 @@ Enumeration *Enum_Ref_Par;
 } /* Proc_6 */
 
 
-Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
+void Proc_7 (Int_1_Par_Val, Int_2_Par_Val, Int_Par_Ref)
 /**********************************************/
     /* executed three times                                      */ 
     /* first call:      Int_1_Par_Val == 2, Int_2_Par_Val == 3,  */
@@ -119,7 +119,7 @@ One_Fifty      *Int_Par_Ref;
 } /* Proc_7 */
 
 
-Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
+void Proc_8 (Arr_1_Par_Ref, Arr_2_Par_Ref, Int_1_Par_Val, Int_2_Par_Val)
 /*********************************************************************/
     /* executed once      */
     /* Int_Par_Val_1 == 3 */
-- 
1.9.1

_______________________________________________
meta-arago mailing list
meta-arago@arago-project.org
http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago

Reply via email to