udunits.h | udunits.h | |||
---|---|---|---|---|
skipping to change at line 56 | skipping to change at line 56 | |||
#define UT_MAXNUM_BASE_QUANTITIES 10 | #define UT_MAXNUM_BASE_QUANTITIES 10 | |||
typedef double UtOrigin; /* origin datatype */ | typedef double UtOrigin; /* origin datatype */ | |||
typedef double UtFactor; /* conversion-factor datatype */ | typedef double UtFactor; /* conversion-factor datatype */ | |||
/* | /* | |||
* Unit-structure. Don't rely on or mess with the members! | * Unit-structure. Don't rely on or mess with the members! | |||
*/ | */ | |||
typedef struct utUnit { | typedef struct utUnit { | |||
ut_unit* ut_unit; | ut_unit* unit2; | |||
} utUnit; | } utUnit; | |||
#ifdef __cplusplus | #ifdef __cplusplus | |||
extern "C" { | extern "C" { | |||
#endif | #endif | |||
/* | /* | |||
* Initialize the units(3) package. | * Initialize the units(3) package. | |||
*/ | */ | |||
extern int utInit PROTO(( | extern int utInit PROTO(( | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||
udunits2.h | udunits2.h | |||
---|---|---|---|---|
skipping to change at line 16 | skipping to change at line 16 | |||
* redistribution conditions. | * redistribution conditions. | |||
*/ | */ | |||
#ifndef UT_UNITS2_H_INCLUDED | #ifndef UT_UNITS2_H_INCLUDED | |||
#define UT_UNITS2_H_INCLUDED | #define UT_UNITS2_H_INCLUDED | |||
#include <stdarg.h> | #include <stdarg.h> | |||
#include <stddef.h> | #include <stddef.h> | |||
#include "converter.h" | #include "converter.h" | |||
typedef struct ut_system ut_system; | typedef struct ut_system ut_system; | |||
typedef union ut_unit ut_unit; | typedef union ut_unit ut_unit; | |||
typedef enum { | typedef enum { | |||
UT_SUCCESS = 0, /* Success */ | UT_SUCCESS = 0, /* Success */ | |||
UT_BAD_ARG, /* An argument violates the function's contr act */ | UT_BAD_ARG, /* An argument violates the function's contr act */ | |||
UT_EXISTS, /* Unit, prefix, or identifier already exists */ | UT_EXISTS, /* Unit, prefix, or identifier already exists */ | |||
UT_NO_UNIT, /* No such unit exists */ | UT_NO_UNIT, /* No such unit exists */ | |||
UT_OS, /* Operating-system error. See "errno". */ | UT_OS, /* Operating-system error. See "errno". */ | |||
UT_NOT_SAME_SYSTEM, /* The units belong to different unit-system s */ | UT_NOT_SAME_SYSTEM, /* The units belong to different unit-system s */ | |||
UT_MEANINGLESS, /* The operation on the unit(s) is meaningless */ | UT_MEANINGLESS, /* The operation on the unit(s) is meaningless */ | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added | |||