Hi all
I would like to reiterate: I do not use Linux and I do not use gcc.  Rather I 
am using IBM native C compiler, so anything that is gcc specific or Linux 
specific is a show stopper.
Please review the attached snippets and provide some advice
 
Ze'ev Atlas

errors compiling sljitExecAllocator.c

   155       |static SLJIT_INLINE void* alloc_chunk(sljit_uw size)              
                                |    155
 ===========> 
.......b.......................................a..................................................
 *=ERROR===========> a - CCN3275 Unexpected text size encountered.
 *=ERROR===========> b - CCN3485 Parameter declaration list is incompatible 
with declarator for SLJIT_INLINE.
   156       |{                                                                 
                                |    156
 ===========> 
a.................................................................................................
 *=ERROR===========> a - CCN3277 Syntax error: possible missing ';' or ','?
   157       |   void *retval;                                                  
                                |    157
   158       |   const int prot = PROT_READ | PROT_WRITE | PROT_EXEC;           
                                |    158



   176       |   if (retval == MAP_FAILED)                                      
                                |    176
   177       |      retval = NULL;                                              
                                |    177
   178       |   else {                                                         
                                |    178
   179     1 |      if (mprotect(retval, size, prot) < 0) {                     
                                |    179
 ===========> 
...................a.......b.....c................................................................
 *=ERROR===========> a - CCN3045 Undeclared identifier retval.
 *=ERROR===========> b - CCN3045 Undeclared identifier size.
 *=ERROR===========> c - CCN3045 Undeclared identifier prot.
   180     2 |         munmap(retval, size);                                    
                                |    180
   181     3 |         retval = NULL;                                           
                                |    181
 ===========> 
..................a...............................................................................
 *=ERROR===========> a - CCN3045 Undeclared identifier NULL.
   182       |      }                                                           
                                |    182



   352       |   /* The whole chunk is free. */                                 
                                |    352
   353       |   if (SLJIT_UNLIKELY(!free_block->header.prev_size && 
header->size == 1)) {                      |    353
   354       |      /* If this block is freed, we still have (allocated_size / 
2) free space. */                |    354
   355       |      if (total_size - free_block->size > (allocated_size * 3 / 
2)) {                             |    355
   356       |         total_size -= free_block->size;                          
                                |    356
   357       |         sljit_remove_free_block(free_block);                     
                                |    357
   358       |         free_chunk(free_block, free_block->size + sizeof(struct 
block_header));                  |    358
   359       |      }                                                           
                                |    359
   360       |   }                                                              
                                |    360
   361       |                                                                  
                                |    361
 *=ERROR===========>     CCN3046 Syntax error.
   362       |   SLJIT_ALLOCATOR_UNLOCK();                                      
                                |    362
   363       |}                                                                 
                                |    363
-- 
## List details at https://lists.exim.org/mailman/listinfo/pcre-dev 

Reply via email to