Fix zero_ext documentation
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.base / sum.c
index f5a5dbf2631d7c3d34e746ab51042b3d22b5dbb5..3e27fa1a41a19eba2d960078710ea482029da9a6 100644 (file)
@@ -1,14 +1,9 @@
 /* This is a sample program for the HP/DDE debugger. */
 #include <stdio.h>
 
-#ifdef PROTOTYPES
 int sum(int *list, int low, int high)
-#else
-int sum(list, low, high)
-int *list, low, high;
-#endif
     {
-        int i = 0, s = 0;
+        int i = 0, s = 0;      /* stop-in-sum */
         for (i = low; i <= high; i++)
             s += list[i];
         return(s);
This page took 0.02416 seconds and 4 git commands to generate.