Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor cleanups, install man page, git ignore debris, LaTeX manual #2

Open
wants to merge 41 commits into
base: master
Choose a base branch
from

Conversation

barak
Copy link

@barak barak commented May 26, 2016

Minor build system tweaks, e.g., install documentation including man page, squelch some autotools warnings, add automake -Wall option, remove all generated files.

Add .so library version number, set to match Debian's current .so number.

Update f2c(1) markup and remove pre-formatted f2c(1).

Update .gitignore.

Cherry pick patch from catull:
The function rmdir() is used in src/sysdep.c before it is included with the header unistd.h.
Thus, the header must be included beforehand.

Snag Changelog from netlib.org.

Add manual (distributed as f2c.pdf) re-marked-up in LaTeX.

Make main and MAIN__ weak pointers, if possible, to allow cc -lf2c ... from C/C++. See ff9a101 and https://bugs.debian.org/826253.

@barak barak changed the title minor cleanups, install man page, git ignore debris minor cleanups, install man page, git ignore debris, LaTeX manual May 27, 2016
Downloaded original manual
 wget http://www.netlib.org/f2c/f2c.pdf
and engaged various tools culminating in some LaTeX-fu.

Did not bother with headers/footers or matching font sizes.
barak and others added 7 commits May 27, 2016 02:01
Better match paper and font size and spacing.

Include f2c(1) man page in Appendix B.

Convert references to bibtex.

Live hyperlinks to sections and references.

Git ignore documentation build debris.

Indent Fortran code in the report, including snippets missed in the original.

Note PDF-to-LaTeX conversion on title page.

Fix one f2c vs F2c capitalization typo.
Use standard autoconf mechanism to enable compiler warnings when possible.
Check for function attribute "weak" and, if available, make MAIN__ a
weak symbol in libf2c, in order to allow C programs to link -lf2c
without any problems. Also make main a weak symbol, just in case,
because we really don't want to override a C program's main routine.

Thanks to Christian Seiler <[email protected]> for the patch.

See the Debian bug report, https://bugs.debian.org/826253
open.c: In function ‘fk_open’:
open.c:222:28: warning: ‘%ld’ directive writing between 1 and 11 bytes into a region of size 5 [-Wformat-overflow=]
  (void) sprintf(nbuf,"fort.%ld",(long)n);
                            ^~~
open.c:222:22: note: directive argument in the range [-2147483648, 2147483647]
  (void) sprintf(nbuf,"fort.%ld",(long)n);
                      ^~~~~~~~~~
open.c:222:2: note: ‘sprintf’ output between 7 and 17 bytes into a destination of size 10
  (void) sprintf(nbuf,"fort.%ld",(long)n);
  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
"if (a=b)"    -> "if ((a=b))"
"a && b || c" -> "(a && b) || c"
"a >> b - c"  -> "a >> (b - c)"
"for (,a=b,)" -> "for (,(a=b),)"
barak added 3 commits June 7, 2024 15:47
lib/main.c:92:3: error: implicit declaration of function 'MAIN_'; did you mean 'MAIN__'? [-Wimplicit-function-declaration]
lib/main.c:93:3: error: implicit declaration of function 'libf2c_exit'; did you mean 'libf2c_init'? [-Wimplicit-function-declaration]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants