Ignore:
Timestamp:
Jan 21, 2018, 12:10:09 AM (6 years ago)
Author:
coas-nagasima
Message:

prototoolに関連するプロジェクトをnewlibからmuslを使うよう変更・更新
ntshellをnewlibの下位の実装から、muslのsyscallの実装に変更・更新
以下のOSSをアップデート
・mruby-1.3.0
・musl-1.1.18
・onigmo-6.1.3
・tcc-0.9.27
以下のOSSを追加
・openssl-1.1.0e
・curl-7.57.0
・zlib-1.2.11
以下のmrbgemsを追加
・iij/mruby-digest
・iij/mruby-env
・iij/mruby-errno
・iij/mruby-iijson
・iij/mruby-ipaddr
・iij/mruby-mock
・iij/mruby-require
・iij/mruby-tls-openssl

Location:
EcnlProtoTool/trunk/onigmo-6.1.3
Files:
1 copied
1 moved

Legend:

Unmodified
Added
Removed
  • EcnlProtoTool/trunk/onigmo-6.1.3/src/onigmoposix.h

    r321 r331  
    1 #ifndef ONIGPOSIX_H
    2 #define ONIGPOSIX_H
     1#ifndef ONIGMOPOSIX_H
     2#define ONIGMOPOSIX_H
    33/**********************************************************************
    4   onigposix.h - Oniguruma (regular expression library)
     4  onigmoposix.h - Onigmo (Oniguruma-mod) (regular expression library)
    55**********************************************************************/
    66/*-
    77 * Copyright (c) 2002-2005  K.Kosako  <sndgk393 AT ybb DOT ne DOT jp>
     8 * Copyright (c) 2011-2016  K.Takata  <kentkt AT csc DOT jp>
    89 * All rights reserved.
    910 *
     
    6263#define REG_EONIG_BADWC     15
    6364#define REG_EONIG_BADARG    16
    64 #define REG_EONIG_THREAD    17
     65/* #define REG_EONIG_THREAD    17 */
    6566
    6667/* character encodings (for reg_set_encoding()) */
     
    8889
    8990
    90 #ifndef P_
    91 #if defined(__STDC__) || defined(_WIN32)
    92 # define P_(args) args
    93 #else
    94 # define P_(args) ()
    95 #endif
     91#ifndef ONIG_EXTERN
     92# if defined(_WIN32) && !defined(__GNUC__)
     93#  if defined(EXPORT)
     94#   define ONIG_EXTERN   extern __declspec(dllexport)
     95#  else
     96#   define ONIG_EXTERN   extern __declspec(dllimport)
     97#  endif
     98# endif
    9699#endif
    97100
    98101#ifndef ONIG_EXTERN
    99 #if defined(_WIN32) && !defined(__GNUC__)
    100 #if defined(EXPORT)
    101 #define ONIG_EXTERN   extern __declspec(dllexport)
    102 #else
    103 #define ONIG_EXTERN   extern __declspec(dllimport)
    104 #endif
    105 #endif
     102# define ONIG_EXTERN   extern
    106103#endif
    107104
    108 #ifndef ONIG_EXTERN
    109 #define ONIG_EXTERN   extern
    110 #endif
    111 
    112 #ifndef ONIGURUMA_H
     105#ifndef ONIGMO_H
    113106typedef unsigned int        OnigOptionType;
    114107
     
    121114} OnigSyntaxType;
    122115
    123 ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixBasic;
    124 ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixExtended;
    125 ONIG_EXTERN OnigSyntaxType OnigSyntaxEmacs;
    126 ONIG_EXTERN OnigSyntaxType OnigSyntaxGrep;
    127 ONIG_EXTERN OnigSyntaxType OnigSyntaxGnuRegex;
    128 ONIG_EXTERN OnigSyntaxType OnigSyntaxJava;
    129 ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl;
    130 ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby;
     116ONIG_EXTERN const OnigSyntaxType OnigSyntaxPosixBasic;
     117ONIG_EXTERN const OnigSyntaxType OnigSyntaxPosixExtended;
     118ONIG_EXTERN const OnigSyntaxType OnigSyntaxEmacs;
     119ONIG_EXTERN const OnigSyntaxType OnigSyntaxGrep;
     120ONIG_EXTERN const OnigSyntaxType OnigSyntaxGnuRegex;
     121ONIG_EXTERN const OnigSyntaxType OnigSyntaxJava;
     122ONIG_EXTERN const OnigSyntaxType OnigSyntaxPerl;
     123ONIG_EXTERN const OnigSyntaxType OnigSyntaxRuby;
    131124
    132125/* predefined syntaxes (see regsyntax.c) */
     
    142135#define ONIG_SYNTAX_DEFAULT             OnigDefaultSyntax
    143136
    144 ONIG_EXTERN OnigSyntaxType*  OnigDefaultSyntax;
     137ONIG_EXTERN const OnigSyntaxType*  OnigDefaultSyntax;
    145138
    146 ONIG_EXTERN int  onig_set_default_syntax P_((OnigSyntaxType* syntax));
    147 ONIG_EXTERN void onig_copy_syntax P_((OnigSyntaxType* to, OnigSyntaxType* from));
    148 ONIG_EXTERN const char* onig_version P_((void));
    149 ONIG_EXTERN const char* onig_copyright P_((void));
     139ONIG_EXTERN int  onig_set_default_syntax(const OnigSyntaxType* syntax);
     140ONIG_EXTERN void onig_copy_syntax(OnigSyntaxType* to, const OnigSyntaxType* from);
     141ONIG_EXTERN const char* onig_version(void);
     142ONIG_EXTERN const char* onig_copyright(void);
     143ONIG_EXTERN int onig_end(void);
    150144
    151 #endif /* ONIGURUMA_H */
     145#endif /* ONIGMO_H */
    152146
    153147
    154 ONIG_EXTERN int    regcomp P_((regex_t* reg, const char* pat, int options));
    155 ONIG_EXTERN int    regexec P_((regex_t* reg, const char* str, size_t nmatch, regmatch_t* matches, int options));
    156 ONIG_EXTERN void   regfree P_((regex_t* reg));
    157 ONIG_EXTERN size_t regerror P_((int code, const regex_t* reg, char* buf, size_t size));
     148ONIG_EXTERN int    regcomp(regex_t* reg, const char* pat, int options);
     149ONIG_EXTERN int    regexec(regex_t* reg, const char* str, size_t nmatch, regmatch_t* matches, int options);
     150ONIG_EXTERN void   regfree(regex_t* reg);
     151ONIG_EXTERN size_t regerror(int code, const regex_t* reg, char* buf, size_t size);
    158152
    159153/* extended API */
    160 ONIG_EXTERN void reg_set_encoding P_((int enc));
    161 ONIG_EXTERN int  reg_name_to_group_numbers P_((regex_t* reg, const unsigned char* name, const unsigned char* name_end, int** nums));
    162 ONIG_EXTERN int  reg_foreach_name P_((regex_t* reg, int (*func)(const unsigned char*, const unsigned char*,int,int*,regex_t*,void*), void* arg));
    163 ONIG_EXTERN int  reg_number_of_names P_((regex_t* reg));
     154ONIG_EXTERN void reg_set_encoding(int enc);
     155ONIG_EXTERN int  reg_name_to_group_numbers(regex_t* reg, const unsigned char* name, const unsigned char* name_end, int** nums);
     156ONIG_EXTERN int  reg_foreach_name(regex_t* reg, int (*func)(const unsigned char*, const unsigned char*,int,int*,regex_t*,void*), void* arg);
     157ONIG_EXTERN int  reg_number_of_names(regex_t* reg);
    164158
    165159#ifdef __cplusplus
     
    167161#endif
    168162
    169 #endif /* ONIGPOSIX_H */
     163#endif /* ONIGMOPOSIX_H */
Note: See TracChangeset for help on using the changeset viewer.