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

Replace vosproto.h with prototypes from xnames.h #286

Merged
merged 4 commits into from
Apr 18, 2023

Conversation

olebole
Copy link
Member

@olebole olebole commented Apr 16, 2023

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 canonical xnames.h name conversion, and third it seems to contain far too many functions. xnames.h clearly states on top

* XNAMES.H -- C callable external names of the SPP library procedures.

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 in f2c.h, since this file is no longer required to include.

@olebole olebole changed the title Remove f2c specific types from bootlib Replace vosproto.h with prototypes from xnames.h Apr 17, 2023
@olebole olebole force-pushed the boot_f2c branch 3 times, most recently from 8ac10a0 to 8dae233 Compare April 17, 2023 10:09
@olebole olebole mentioned this pull request Apr 17, 2023
"integer" is an F2C equivalent to "XINT", which is what we already
use use here.

This reverts the (IMO unnecessary) change in this file done in 2.16.1.
@olebole olebole merged commit 27c3d4e into iraf-community:main Apr 18, 2023
@olebole olebole deleted the boot_f2c branch April 18, 2023 05:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant