star-hitran

Load line-by-line data from the HITRAN database
git clone git://git.meso-star.fr/star-hitran.git
Log | Files | Refs | README | LICENSE

commit 305037210df230770fb756be9b3ae93113b1c82d
parent 2c6ac85265129adf1ba2d7c30bb743710ec783ef
Author: Vincent Forest <vincent.forest@meso-star.com>
Date:   Wed, 28 Jan 2026 17:18:34 +0100

Rename the constant SHTR_MOLECULE_ID_NULL__

Remove the suffix "__", which means "defined for internal use", which is
not the case for this constant.

Diffstat:
Msrc/shtr.h | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/shtr.h b/src/shtr.h @@ -46,7 +46,7 @@ * their value corresponds to that of HITRAN. Note that they start at 1 rather * than zero and therefore do not strictly correspond to a C array index */ enum shtr_molecule_id { - SHTR_MOLECULE_ID_NULL__ = 0, + SHTR_MOLECULE_ID_NULL = 0, SHTR_H2O, SHTR_CO2, SHTR_O3, SHTR_N2O, SHTR_CO, SHTR_CH4, SHTR_O2, SHTR_NO, SHTR_SO2, SHTR_NO2, SHTR_NH3, SHTR_HNO3, @@ -106,7 +106,7 @@ struct shtr_molecule { const struct shtr_isotope* isotopes; enum shtr_molecule_id id; /* Unique identifier */ }; -#define SHTR_MOLECULE_NULL__ {NULL, 0, NULL, SHTR_MOLECULE_ID_NULL__} +#define SHTR_MOLECULE_NULL__ {NULL, 0, NULL, SHTR_MOLECULE_ID_NULL} static const struct shtr_molecule SHTR_MOLECULE_NULL = SHTR_MOLECULE_NULL__;