summaryrefslogtreecommitdiff
path: root/scope.h
diff options
context:
space:
mode:
authorGurusamy Sarathy <gsar@cpan.org>1999-12-08 02:22:31 +0000
committerGurusamy Sarathy <gsar@cpan.org>1999-12-08 02:22:31 +0000
commite8347627432a616ec1485de221b2cd8c9e311c8b (patch)
treefc61d6fefbec8f2731573b6fda30cb8a504a34ae /scope.h
parentbebdddfcca3c4bc8bb36ffcdf9e008f3b39772bf (diff)
downloadperl-e8347627432a616ec1485de221b2cd8c9e311c8b.tar.gz
introduce save_I8() for saving byte values
p4raw-id: //depot/perl@4665
Diffstat (limited to 'scope.h')
-rw-r--r--scope.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/scope.h b/scope.h
index 330467f4cf..69446309f2 100644
--- a/scope.h
+++ b/scope.h
@@ -30,6 +30,7 @@
#define SAVEt_GENERIC_SVREF 29
#define SAVEt_DESTRUCTOR_X 30
#define SAVEt_VPTR 31
+#define SAVEt_I8 32
#define SSCHECK(need) if (PL_savestack_ix + need > PL_savestack_max) savestack_grow()
#define SSPUSHINT(i) (PL_savestack[PL_savestack_ix++].any_i32 = (I32)(i))
@@ -71,6 +72,7 @@
* Not using SOFT_CAST on SAVESPTR, SAVEGENERICSV and SAVEFREESV
* because these are used for several kinds of pointer values
*/
+#define SAVEI8(i) save_I8(SOFT_CAST(I8*)&(i))
#define SAVEI16(i) save_I16(SOFT_CAST(I16*)&(i))
#define SAVEI32(i) save_I32(SOFT_CAST(I32*)&(i))
#define SAVEINT(i) save_int(SOFT_CAST(int*)&(i))