]> granicus.if.org Git - onig/commitdiff
Include stdint.h
authorRyan Lopopolo <rjl@hyperbo.la>
Tue, 13 Aug 2019 04:08:16 +0000 (21:08 -0700)
committerRyan Lopopolo <rjl@hyperbo.la>
Tue, 13 Aug 2019 04:08:16 +0000 (21:08 -0700)
intptr_t and uintptr_t are C99 types but they are optional.

src/regexec.c
src/regparse.c

index 0753b070b8521bd4c7d7ccf7c0b8da76ee9ecf50..f8310bf976dbeec20dbd18072a2800e0a0767a2d 100644 (file)
@@ -27,6 +27,7 @@
  * SUCH DAMAGE.
  */
 #include "regint.h"
+#include <stdint.h>
 
 #define IS_MBC_WORD_ASCII_MODE(enc,s,end,mode) \
   ((mode) == 0 ? ONIGENC_IS_MBC_WORD(enc,s,end) : ONIGENC_IS_MBC_WORD_ASCII(enc,s,end))
@@ -375,7 +376,7 @@ print_compiled_byte_code(FILE* f, regex_t* reg, int index,
   case OP_CCLASS_MB_NOT:
     {
       OnigCodePoint ncode;
-      OnigCodePoint* codes;      
+      OnigCodePoint* codes;
 
       codes = (OnigCodePoint* )p->cclass_mb.mb;
       GET_CODE_POINT(ncode, codes);
index df97be9b21e365fdfdf43607584277c0d2e0abf6..c859fdabc80137dc46a88e6332a5b7bfb0335a28 100644 (file)
@@ -29,6 +29,7 @@
 
 #include "regparse.h"
 #include "st.h"
+#include <stdint.h>
 
 #ifdef DEBUG_NODE_FREE
 #include <stdio.h>