mirror of
https://github.com/lcn2/calc.git
synced 2025-08-16 01:03:29 +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:
@@ -16,10 +16,6 @@ The top version level (e.g., 2) refers to the internal representation
|
||||
of values. Any library or hardware linked/built for calc 2 will be able
|
||||
to use values from other 2.x.y.z versions.
|
||||
|
||||
When top version level is 2, the symbol "CALC2_COMPAT" is defined
|
||||
by "version.h". See "version.h" for constants used to define the
|
||||
calc version.
|
||||
|
||||
The top 2 levels (e.g., 2.14) refers to a specific compatible set of
|
||||
builtin functions. Calc interpreted code (such as calc resource files)
|
||||
written for, say calc 2.14, will be able to use the same set of builtin
|
||||
@@ -37,6 +33,14 @@ version change), nor were there new calc builtins introduced in such
|
||||
a top 3 level release.
|
||||
|
||||
|
||||
The file, "version.h" defines the 4 version levels:
|
||||
|
||||
MAJOR_VER /* level 1: major library version */
|
||||
MINOR_VER /* level 2: minor library version */
|
||||
MAJOR_PATCH /* level 3: major software version level */
|
||||
MINOR_PATCH /* level 4: minor software version level */
|
||||
|
||||
|
||||
The program "ver_calc" will print information about the compiled
|
||||
calc version as defined "version.h" when "ver_calc" was compiled:
|
||||
|
||||
|
Reference in New Issue
Block a user