diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 13:25:31 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-09-13 13:25:31 +0000 |
commit | 26bb67e24a2110ea6ba2dc0af78d8d58df4415a3 (patch) | |
tree | f102c485e42dc4d0ce7e56763c9ddd2948eeff23 /perl.h | |
parent | 564319723c2c18fa4801cd77e0d203a582b4d5a3 (diff) | |
download | perl-26bb67e24a2110ea6ba2dc0af78d8d58df4415a3.tar.gz |
Applying change #4136 manually introduced patch residue.
p4raw-link: @4136 on //depot/cfgperl: 564319723c2c18fa4801cd77e0d203a582b4d5a3
p4raw-id: //depot/cfgperl@4137
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 20 |
1 files changed, 10 insertions, 10 deletions
@@ -1046,16 +1046,16 @@ Free_t Perl_mfree (Malloc_t where); #define IV_DIG (BIT_DIGITS(IVSIZE * 8)) #define UV_DIG (BIT_DIGITS(IVSIZE * 8)) -+ /* -+ * The macros INT2PTR and NUM2PTR are (despite their names) -+ * bi-directional: they will convert int/float to or from pointers. -+ * However the conversion to int/float are named explicitly: -+ * PTR2IV, PTR2UV, PTR2NV. -+ * -+ * For int conversions we do not need two casts if pointers are -+ * the same size as IV and UV. Otherwise we need an explicit -+ * cast (PTRV) to avoid compiler warnings. -+ */ +/* + * The macros INT2PTR and NUM2PTR are (despite their names) + * bi-directional: they will convert int/float to or from pointers. + * However the conversion to int/float are named explicitly: + * PTR2IV, PTR2UV, PTR2NV. + * + * For int conversions we do not need two casts if pointers are + * the same size as IV and UV. Otherwise we need an explicit + * cast (PTRV) to avoid compiler warnings. + */ #if (IVSIZE == PTRSIZE) && (UVSIZE == PTRSIZE) # define PTRV UV # define INT2PTR(any,d) (any)(d) |