diff options
author | LAUN Wolfgang <wolfgang.laun@alcatel.at> | 2003-03-17 14:55:37 +0100 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2003-03-17 17:16:44 +0000 |
commit | 497043642ba2050cd87b28b50f6a01a0f50d0e90 (patch) | |
tree | 6e6216b18b1dc8976aebbf1154176b1d094accf7 /perl.h | |
parent | 1ba7855cf16acea00cbf0cf8bbc7fbe37b8ac919 (diff) | |
download | perl-497043642ba2050cd87b28b50f6a01a0f50d0e90.tar.gz |
pack changes and related fixes
Message-ID: <75A46BF1A9D8D311863A00508B6259A405F17EB8@ATTMSX4>
p4raw-id: //depot/perl@19010
Diffstat (limited to 'perl.h')
-rw-r--r-- | perl.h | 19 |
1 files changed, 19 insertions, 0 deletions
@@ -3355,6 +3355,25 @@ typedef void *Thread; #undef PERLVARI #undef PERLVARIC +/* Types used by pack/unpack */ +typedef enum { + e_no_len, /* no length */ + e_number, /* number, [] */ + e_star /* asterisk */ +} howlen_t; + +typedef struct { + char* patptr; /* current template char */ + char* patend; /* one after last char */ + char* grpbeg; /* 1st char of ()-group */ + char* grpend; /* end of ()-group */ + I32 code; /* template code (!) */ + I32 length; /* length/repeat count */ + howlen_t howlen; /* how length is given */ + int level; /* () nesting level */ + U32 flags; /* /=4, comma=2, pack=1 */ +} tempsym_t; + #include "thread.h" #include "pp.h" |