[minpack] 03/09: * Fix prototype of C function in tlmdif1.c example. (Closes: #698338) * Manpages: fix prototypes of C functions, and replace g77 by gfortran.

Sébastien Villemot sebastien at debian.org
Mon Nov 20 12:51:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

sebastien pushed a commit to branch master
in repository minpack.

commit d149db971578e478411c158e01a55ffac6d95cf5
Author: Sébastien Villemot <sebastien at debian.org>
Date:   Thu Apr 3 17:07:48 2014 +0000

    * Fix prototype of C function in tlmdif1.c example. (Closes: #698338)
    * Manpages: fix prototypes of C functions, and replace g77 by gfortran.
---
 debian/README.Debian |  2 +-
 debian/changelog     |  2 ++
 debian/hybrd_.3      | 12 ++++++------
 debian/hybrj_.3      | 12 ++++++------
 debian/lmder_.3      | 12 ++++++------
 debian/lmdif_.3      | 12 ++++++------
 debian/lmstr_.3      | 12 ++++++------
 debian/tlmdif1.c     |  2 +-
 8 files changed, 34 insertions(+), 32 deletions(-)

diff --git a/debian/README.Debian b/debian/README.Debian
index 0626e8a..fd3c2bf 100644
--- a/debian/README.Debian
+++ b/debian/README.Debian
@@ -6,7 +6,7 @@ from netlib.
 
 Since these are from FORTRAN files:
 
- - Use g77 to compile programs to be linked against the library, even
+ - Use gfortran to compile programs to be linked against the library, even
 if only C files are being compiled.  (Otherwise the linker will not be
 able to find the needed functions from the FORTRAN library).
 
diff --git a/debian/changelog b/debian/changelog
index c8e471f..eb23998 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,8 @@ minpack (19961126+dfsg1-2) UNRELEASED; urgency=medium
   * Add myself to Uploaders.
   * Bump to debhelper compat level 9.
   * Bump to Standards-Version 3.9.5.
+  * Fix prototype of C function in tlmdif1.c example. (Closes: #698338)
+  * Manpages: fix prototypes of C functions, and replace g77 by gfortran.
 
  -- Sébastien Villemot <sebastien at debian.org>  Thu, 03 Apr 2014 17:28:18 +0200
 
diff --git a/debian/hybrd_.3 b/debian/hybrd_.3
index b3c98a7..79c89fc 100644
--- a/debian/hybrd_.3
+++ b/debian/hybrd_.3
@@ -86,13 +86,13 @@ sequence.
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -132,7 +132,7 @@ end
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int n, double *x, double *fvec, int *iflag)
+  void fcn(int *n, double *x, double *fvec, int *iflag)
   {
     /* calculate the functions at x and
        return this vector in fvec. */
diff --git a/debian/hybrj_.3 b/debian/hybrj_.3
index 555f24c..60525a3 100644
--- a/debian/hybrj_.3
+++ b/debian/hybrj_.3
@@ -83,13 +83,13 @@ sequence.
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -131,7 +131,7 @@ end
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int n, double *x, double *fvec, double *fjac, 
+  void fcn(int *n, double *x, double *fvec, double *fjac, 
            int *ldfjac, int *iflag)
   {
   /* if iflag = 1 calculate the functions at x and
diff --git a/debian/lmder_.3 b/debian/lmder_.3
index f9b00de..938d75a 100644
--- a/debian/lmder_.3
+++ b/debian/lmder_.3
@@ -93,13 +93,13 @@ These functions are written in FORTRAN. If calling from
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -142,7 +142,7 @@ follows:
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int m, int n, double *x, double *fvec, double *fjac,
+  void fcn(int *m, int *n, double *x, double *fvec, double *fjac,
            int *ldfjac, int *iflag)
   {
     /* if iflag = 1 calculate the functions at x and return this
diff --git a/debian/lmdif_.3 b/debian/lmdif_.3
index f0052fb..00bc8bb 100644
--- a/debian/lmdif_.3
+++ b/debian/lmdif_.3
@@ -74,13 +74,13 @@ These functions are written in FORTRAN. If calling from
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -119,7 +119,7 @@ program, and should be written as follows:
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int m, int n, double *x, double *fvec, int *iflag)
+  void fcn(int *m, int *n, double *x, double *fvec, int *iflag)
   {
   	  /* calculate the functions at x and return 
   	     the values in fvec[0] through fvec[m-1] */
diff --git a/debian/lmstr_.3 b/debian/lmstr_.3
index d0de9bb..9468bae 100644
--- a/debian/lmstr_.3
+++ b/debian/lmstr_.3
@@ -90,13 +90,13 @@ These functions are written in FORTRAN. If calling from
 C, keep these points in mind:
 .TP
 Name mangling.
-With \fBg77\fP version 2.95 or 3.0, all the function names end in an
-underscore.  This may change with future versions of \fBg77\fP.
+With \fBgfortran\fP, all the function names end in an
+underscore.
 .TP
-Compile with \fBg77\fP.
-Even if your program is all C code, you should link with \fBg77\fP
+Compile with \fBgfortran\fP.
+Even if your program is all C code, you should link with \fBgfortran\fP
 so it will pull in the FORTRAN libraries automatically.  It's easiest
-just to use \fBg77\fP to do all the compiling.  (It handles C just fine.)
+just to use \fBgfortran\fP to do all the compiling.  (It handles C just fine.)
 .TP
 Call by reference.
 All function parameters must be pointers.
@@ -139,7 +139,7 @@ follows:
 In C, \fIfcn\fP should be written as follows:
 .sp
 .nf
-  void fcn(int m, int n, double *x, double *fvec, double *fjrow,
+  void fcn(int *m, int *n, double *x, double *fvec, double *fjrow,
            int *iflag)
   {
     /* If iflag = 1 calculate the functions at x and return the
diff --git a/debian/tlmdif1.c b/debian/tlmdif1.c
index 0696f11..734f99c 100644
--- a/debian/tlmdif1.c
+++ b/debian/tlmdif1.c
@@ -40,7 +40,7 @@ int main()
   return 0;
 }
 
-void fcn(int m, int n, double *x, double *fvec, int *iflag)
+void fcn(int *m, int *n, double *x, double *fvec, int *iflag)
 {
   /* function fcn for lmdif1 example */
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/minpack.git



More information about the debian-science-commits mailing list