libtool-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

FYI: C function declarations


From: Ralf Wildenhues
Subject: FYI: C function declarations
Date: Wed, 27 Apr 2005 16:16:08 +0200
User-agent: Mutt/1.4.1i

Welcome to the new millenium.  Or should I say welcome to the 80s?
Applied to HEAD and branch-2-0.

Regards,
Ralf

2005-04-27  Ralf Wildenhues  <address@hidden>

        * tests/f77demo/foo.h, tests/f77demo/fooc.c, tests/f77demo/cprogram.c,
        tests/mdemo2/main.c, tests/pdemo/foo.h: Make declarations available.

Index: tests/cdemo/foo.h
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/cdemo/foo.h,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 foo.h
--- tests/cdemo/foo.h   22 Apr 2005 10:03:59 -0000      1.1.2.1
+++ tests/cdemo/foo.h   27 Apr 2005 13:53:38 -0000
@@ -26,4 +26,8 @@
 #define HELLO_RET 0xe110
 #define FOO_RET 0xf00
 
+extern int foo();
+
+extern int hello();
+
 #endif /* !_FOO_H_ */
Index: tests/f77demo/cprogram.c
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/f77demo/cprogram.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 cprogram.c
--- tests/f77demo/cprogram.c    22 Apr 2005 10:04:00 -0000      1.1.2.1
+++ tests/f77demo/cprogram.c    27 Apr 2005 13:53:38 -0000
@@ -15,6 +15,7 @@
 USA. */
 
 #include "foo.h"
+#include <stdio.h>
 
 int
 main(int argc, char **argv)
Index: tests/f77demo/fooc.c
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/f77demo/fooc.c,v
retrieving revision 1.1
diff -u -r1.1 fooc.c
--- tests/f77demo/fooc.c        14 Oct 2003 21:46:13 -0000      1.1
+++ tests/f77demo/fooc.c        27 Apr 2005 13:53:38 -0000
@@ -1,4 +1,4 @@
 #include "foo.h"
-
+#include <stdio.h>
 
 int csub(int arg)
Index: tests/mdemo2/main.c
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/mdemo2/main.c,v
retrieving revision 1.3.2.1
diff -u -r1.3.2.1 main.c
--- tests/mdemo2/main.c 22 Apr 2005 10:04:00 -0000      1.3.2.1
+++ tests/mdemo2/main.c 27 Apr 2005 13:53:38 -0000
@@ -21,6 +21,8 @@
 #include <stdio.h>
 #include "ltdl.h"
 
+extern int mlib_func();
+
 int
 main (argc, argv)
   int argc;
Index: tests/pdemo/foo.h
===================================================================
RCS file: /cvsroot/libtool/libtool/tests/pdemo/foo.h,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 foo.h
--- tests/pdemo/foo.h   22 Apr 2005 10:04:00 -0000      1.1.2.1
+++ tests/pdemo/foo.h   27 Apr 2005 13:53:38 -0000
@@ -83,6 +83,7 @@
 /* Declarations.  Note the wonderful use of the above macros. */
 __BEGIN_DECLS
 int foo LT_PARAMS((void));
+int foo2 LT_PARAMS((void));
 int hello LT_PARAMS((void));
 EXTERN int nothing;
 __END_DECLS




reply via email to

[Prev in Thread] Current Thread [Next in Thread]