Replace vosproto.h with prototypes from xnames.h #286
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
vosproto.h
originated from a cproto run of the XC and F2C processed SPP (and Fortran) sources. This causes a few problems: first, it introduces a direct F2C dependency of the prototypes (since the used data types are F2C specific), then it depends on the specific F2C name mangling (i.e. adding an underscore) instead of relying on the canonicalxnames.h
name conversion, and third it seems to contain far too many functions.xnames.h
clearly states on topiraf/unix/hlib/libc/iraf_xnames.h
Line 2 in 28c1028
which implies that this list is exhaustive.
This PR reduces the number of prototypes to those defined in
xnames.h
and also consequently uses SPP type names (XINT & friends). This also removes warnings about redefining things inf2c.h
, since this file is no longer required to include.