X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=op.h;h=415514d687ec30e64457b25b1070db7cc88a5157;hb=52a55424e4624fc79eb8894fb91c5e2f4a9018ab;hp=85cd8340af758a9f60b14af925984e86a6751df4;hpb=2aa0348e831318a7132271897c54636ff36e9c33;p=p5sagit%2Fp5-mst-13.2.git diff --git a/op.h b/op.h index 85cd834..415514d 100644 --- a/op.h +++ b/op.h @@ -23,7 +23,13 @@ * which may or may not check number of children). */ -typedef U32 PADOFFSET; +#if PTRSIZE == 4 +typedef U32TYPE PADOFFSET; +#else +# if PTRSIZE == 8 +typedef U64TYPE PADOFFSET; +# endif +#endif #define NOT_IN_PAD ((PADOFFSET) -1) #ifdef DEBUGGING_OPS @@ -197,7 +203,8 @@ Deprecated. Use C instead. #define OPpOPEN_OUT_RAW 64 /* binmode(F,":raw") on output fh */ #define OPpOPEN_OUT_CRLF 128 /* binmode(F,":crlf") on output fh */ -/* Private for OP_EXIT */ +/* Private for OP_EXIT, HUSH also for OP_DIE */ +#define OPpHUSH_VMSISH 64 /* hush DCL exit msg vmsish mode*/ #define OPpEXIT_VMSISH 128 /* exit(0) vs. exit(1) vmsish mode*/ struct op { @@ -469,7 +476,7 @@ typedef struct { #define localtime(a) (localtime_r((a),PL_reentrant_buffer->tmbuff) ? PL_reentrant_buffer->tmbuff : NULL) #define gmtime(a) (gmtime_r((a),PL_reentrant_buffer->tmbuff) ? PL_reentrant_buffer->tmbuff : NULL) -#if defined(__hpux) && defined(__ux_version) && __ux_version <= 1020 +#ifdef OLD_PTHREADS_API /* HP-UX 10.20 returns 0 on success, what it returns on failure is hidden in the fog somewhere, possibly -1 which means the following should do