[pcre-dev] size of pcre_uint32 and pcre_int32

Startseite
Nachricht löschen
Autor: Ze'ev Atlas
Datum:  
To: Philip Hazel, Pcre Exim
Betreff: [pcre-dev] size of pcre_uint32 and pcre_int32
Hi PhilYou know that no good deed is going unpunished :)
While my PCRE port for z/OS did not prove to be too popular (nevertheless, I am supporting it and plan to do PCRE2 when I am sure it is stable enough,) the off shoot of COBOL support is getting somewhat popular on platforms that ARE NOT z/OS (i.e. Linux and Windows).  To that end I have to make my copybooks (analogous to header files in C) compatible with those environments, especially 32 bits vs. 64 bits versions.
PCRE in my opinion is well written in that it does not leave too much to chance and the header files explicitly specify types such as pcre_int8, pcre_uint8, etc.  My specific question is about the types pcre_int32 and pcre_uint32.  I looked at the pcre_internal.h and with my less then optimal knowledge of C, I could not determine the answer.  So explicitly, are those types guaranteed to always be 32 bits, no matter what, or could they be 64 bits on some occasions?  I hope that they are 32 bits no matter what.
You could only imagine the grief that the GNU POSIX header files cause me because they are not as specific (I also ported the GNU header regex.h to COBOL).  I have to actually create two versions and give the poor users some convoluted instructions on what set of copybooks to use under what circumstances!
 Ze'ev Atlas