New URL for NEMO forge!   http://forge.nemo-ocean.eu

Since March 2022 along with NEMO 4.2 release, the code development moved to a self-hosted GitLab.
This present forge is now archived and remained online for history.
Changeset 14351 for vendors/AGRIF/dev_r14312_MPI_Interface/LIB/main.c – NEMO

Ignore:
Timestamp:
2021-01-27T15:17:23+01:00 (3 years ago)
Author:
smasson
Message:

dev_r14312_MPI_Interface: update AGRIF branch to accept CONTIGUOUS attribute, #2598

File:
1 edited

Legend:

Unmodified
Added
Removed
  • vendors/AGRIF/dev_r14312_MPI_Interface/LIB/main.c

    r14107 r14351  
    19131913#define YY_FLEX_MAJOR_VERSION 2 
    19141914#define YY_FLEX_MINOR_VERSION 5 
    1915 #define YY_FLEX_SUBMINOR_VERSION 35 
     1915#define YY_FLEX_SUBMINOR_VERSION 37 
    19161916#if YY_FLEX_SUBMINOR_VERSION > 0 
    19171917#define FLEX_BETA 
     
    19511951typedef int32_t flex_int32_t; 
    19521952typedef uint32_t flex_uint32_t; 
    1953 typedef uint64_t flex_uint64_t; 
    19541953#else 
    19551954typedef signed char flex_int8_t; 
     
    19591958typedef unsigned short int flex_uint16_t; 
    19601959typedef unsigned int flex_uint32_t; 
    1961 #endif /* ! C99 */ 
    19621960 
    19631961/* Limits of integral types. */ 
     
    19891987#define UINT32_MAX             (4294967295U) 
    19901988#endif 
     1989 
     1990#endif /* ! C99 */ 
    19911991 
    19921992#endif /* ! FLEXINT_H */ 
     
    22372237/* Begin user sect3 */ 
    22382238 
    2239 #define convert_wrap(n) 1 
     2239#define convert_wrap() 1 
    22402240#define YY_SKIP_YYWRAP 
    22412241 
     
    22632263#define YY_DO_BEFORE_ACTION \ 
    22642264   (yytext_ptr) = yy_bp; \ 
    2265    convert_leng = (yy_size_t) (yy_cp - yy_bp); \ 
     2265   convert_leng = (size_t) (yy_cp - yy_bp); \ 
    22662266   (yy_hold_char) = *yy_cp; \ 
    22672267   *yy_cp = '\0'; \ 
     
    25662566 * we now use fwrite(). 
    25672567 */ 
    2568 #define ECHO fwrite( convert_text, convert_leng, 1, convert_out ) 
     2568#define ECHO do { if (fwrite( convert_text, convert_leng, 1, convert_out )) {} } while (0) 
    25692569#endif 
    25702570 
     
    25772577      { \ 
    25782578      int c = '*'; \ 
    2579       yy_size_t n; \ 
     2579      size_t n; \ 
    25802580      for ( n = 0; n < max_size && \ 
    25812581              (c = getc( convert_in )) != EOF && c != '\n'; ++n ) \ 
     
    30143014 
    30153015         /* just a shorter name for the current buffer */ 
    3016          YY_BUFFER_STATE b = YY_CURRENT_BUFFER; 
     3016         YY_BUFFER_STATE b = YY_CURRENT_BUFFER_LVALUE; 
    30173017 
    30183018         int yy_c_buf_p_offset = 
     
    31473147   yy_is_jam = (yy_current_state == 83); 
    31483148 
    3149    return yy_is_jam ? 0 : yy_current_state; 
     3149      return yy_is_jam ? 0 : yy_current_state; 
    31503150} 
    31513151 
     
    32353235               { 
    32363236               if ( convert_wrap( ) ) 
    3237                   return 0; 
     3237                  return EOF; 
    32383238 
    32393239               if ( ! (yy_did_buffer_switch_on_eof) ) 
     
    33713371} 
    33723372 
    3373 #ifndef __cplusplus 
    3374 extern int isatty (int ); 
    3375 #endif /* __cplusplus */ 
    3376      
    33773373/* Initializes or reinitializes a buffer. 
    33783374 * This function is sometimes called more than once on the same buffer, 
     
    35793575/** Setup the input buffer state to scan the given bytes. The next call to convert_lex() will 
    35803576 * scan from a @e copy of @a bytes. 
    3581  * @param bytes the byte buffer to scan 
    3582  * @param len the number of bytes in the buffer pointed to by @a bytes. 
     3577 * @param yybytes the byte buffer to scan 
     3578 * @param _yybytes_len the number of bytes in the buffer pointed to by @a bytes. 
    35833579 *  
    35843580 * @return the newly allocated buffer state object. 
     
    35883584   YY_BUFFER_STATE b; 
    35893585   char *buf; 
    3590    yy_size_t n, i; 
     3586   yy_size_t n; 
     3587   yy_size_t i; 
    35913588     
    35923589   /* Get memory for full buffer, including space for trailing EOB's. */ 
Note: See TracChangeset for help on using the changeset viewer.