Skip to content

Commit

Permalink
Bump PF_FILE_VERSION to 11
Browse files Browse the repository at this point in the history
Because we added some IDs and because 11 is one more than 10.

Fixes #176
  • Loading branch information
philburk committed Dec 26, 2024
1 parent 43d49ef commit 992e72e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions csrc/pf_guts.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,9 @@
** FV8 - 980818 - Added Endian flag.
** FV9 - 20100503 - Added support for 64-bit CELL.
** FV10 - 20170103 - Added ID_FILE_FLUSH ID_FILE_RENAME ID_FILE_RESIZE
** FV11 - 20241226 - Added ID_SLEEP_P, ID_VAR_BYE_CODE, ID_VERSION_CODE
*/
#define PF_FILE_VERSION (10) /* Bump this whenever primitives added. */
#define PF_FILE_VERSION (11) /* Bump this whenever primitives added. */
#define PF_EARLIEST_FILE_VERSION (9) /* earliest one still compatible */

/***************************************************************
Expand Down Expand Up @@ -292,7 +293,10 @@ enum cforth_primitive_ids
ID_SLEEP_P, /* (SLEEP) V2.0.0 */
ID_VAR_BYE_CODE, /* BYE-CODE */
ID_VERSION_CODE,
/* If you add a word here, take away one reserved word below. */
/* If you add a word above here,
** 1. update PF_FILE_VERSION
** 2. take away one reserved word below
*/
#ifdef PF_SUPPORT_FP
/* Only reserve space if we are adding FP so that we can detect
** unsupported primitives when loading dictionary.
Expand Down

0 comments on commit 992e72e

Please sign in to comment.