mirror of
https://github.com/lcn2/calc.git
synced 2025-08-19 01:13:27 +03:00
remove CALC2_COMPAT symbol in source code
Removed CALC2_COMPAT in favor of ckecking if MAJOR_VER < 3. The sign element in a ZVALUE is now of type SIGN, which is either SB32 when MAJOR_VER < 3, or a bool otherwise. The len element in a ZVALUE is of type LEN. LEN type is SB32 when MAJOR_VER < 3, or a uintptr_t otherwise. Noted version.h symbols in README.RELEASE instead of CALC2_COMPAT. Improve .gitignore. Add excludes of hsrc temporary and test programs. Added note about how the list is sorted. Moved the generic excludes to the top.
This commit is contained in:
18
version.h
18
version.h
@@ -33,7 +33,6 @@
|
||||
* MAJOR_VER
|
||||
*
|
||||
* The MAJOR_VER is 2 is the classical version of calc.
|
||||
* By default, MAJOR_VER == 2 also defines CALC2_COMPAT.
|
||||
*
|
||||
* One of the main reasons why MAJOR_VER might incremented is
|
||||
* if fundamental calc data objects (such as when ZVALUE or NUMBER
|
||||
@@ -62,19 +61,10 @@
|
||||
* Moreover, when we are working towards a new production release,
|
||||
* bug fix and improvement updates will cause MINOR_PATCH to increment.
|
||||
*/
|
||||
#define MAJOR_VER 2 /* major library version */
|
||||
#define MINOR_VER 14 /* minor library version */
|
||||
#define MAJOR_PATCH 3 /* major software version level */
|
||||
#define MINOR_PATCH 5 /* minor software version level */
|
||||
|
||||
/*
|
||||
* calc version 2 compatibility
|
||||
*
|
||||
* Set MAJOR_VER <= 2 OR define CALC2_COMPAT.
|
||||
*/
|
||||
#if MAJOR_VER <= 2
|
||||
#define CALC2_COMPAT /* enable calc version 2 compatibility */
|
||||
#endif
|
||||
#define MAJOR_VER 2 /* level 1: major library version */
|
||||
#define MINOR_VER 14 /* level 2: minor library version */
|
||||
#define MAJOR_PATCH 3 /* level 3: major software version level */
|
||||
#define MINOR_PATCH 5 /* level 4: minor software version level */
|
||||
|
||||
|
||||
#endif /* !INCLUDE_VERSION_H*/
|
||||
|
Reference in New Issue
Block a user