/*
* Copyright (C) Yichun Zhang (agentzh)
*
* WARNING: DO NOT EVER EDIT THIS FILE!!
*
* This file was automatically generated by the re.pl script of sregex's
* "dfa-multi-re" git branch.
*/
#include "ngx_http_lua_lex.h"
#include <stdlib.h>
#include <stdint.h>
#include <stdio.h>
#include <ctype.h>
#include <errno.h>
#include <string.h>
#if __GNUC__ > 3
# define likely(x) __builtin_expect((x),1)
# define unlikely(x) __builtin_expect((x),0)
#else
# define likely(x) (x)
# define unlikely(x) (x)
#endif
#ifndef u_char
#define u_char unsigned char
#endif
enum {
NO_MATCH = -1,
};
/*
* ngx_http_lua_lex: the "ovec" array should be allocated by the caller with at
* least 2 elements.
*/
int
ngx_http_lua_lex(const u_char *const s, size_t len, int *const ovec)
{
unsigned i = 0;
int matched_0 = -1;
int matched_1 = -1;
int matched_id = NO_MATCH; /* (pending) matched regex ID */
int c;
int caps0_0 = -1;
int caps0_10 = -1;
int caps0_12 = -1;
int caps0_14 = -1;
int caps0_2 = -1;
int caps0_4 = -1;
int caps0_6 = -1;
int caps0_8 = -1;
int caps1_0 = -1;
int caps1_10 = -1;
int caps1_12 = -1;
int caps1_14 = -1;
int caps1_2 = -1;
int caps1_4 = -1;
int caps1_6 = -1;
int caps1_8 = -1;
int caps2_0 = -1;
int caps2_10 = -1;
int caps2_2 = -1;
int caps2_4 = -1;
int caps2_6 = -1;
int caps2_8 = -1;
int caps3_10 = -1;
{ /* DFA node {0} 0 */
if (unlikely(i >= len)) {
i++;
goto st0_error;
}
c = s[i];
i++;
switch (c) {
case 34: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_12 = i - 1;
goto st2;
break;
}
case 39: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_14 = i - 1;
goto st3;
break;
}
case 45: {
/* transfer caps from row 0 to row 1 */
/* transfer caps from row 0 to row 2 */
/* capture stores */
caps0_6 = i - 1;
caps1_10 = i - 1;
goto st4;
break;
}
case 91: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_4 = i - 1;
goto st5;
break;
}
case 93: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_8 = i - 1;
goto st6;
break;
}
case 123: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_0 = i - 1;
goto st7;
break;
}
case 125: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_2 = i - 1;
goto st8;
break;
}
default:
break;
}
/* (c >= 0 && c <= 33)
* || (c >= 35 && c <= 38)
* || (c >= 40 && c <= 44)
* || (c >= 46 && c <= 90)
* || (c == 92)
* || (c >= 94 && c <= 122)
* || (c == 124)
* || (c >= 126 && c <= 255)
*/
goto st1;
} /* end state */
goto st0_error;
st1: { /* DFA node {1} 1 */
if (unlikely(i >= len)) {
i++;
goto st1_error;
}
c = s[i];
i++;
switch (c) {
case 34: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_12 = i - 1;
goto st2;
break;
}
case 39: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_14 = i - 1;
goto st3;
break;
}
case 45: {
/* transfer caps from row 0 to row 1 */
/* transfer caps from row 0 to row 2 */
/* capture stores */
caps0_6 = i - 1;
caps1_10 = i - 1;
goto st4;
break;
}
case 91: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_4 = i - 1;
goto st5;
break;
}
case 93: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_8 = i - 1;
goto st6;
break;
}
case 123: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_0 = i - 1;
goto st7;
break;
}
case 125: {
/* transfer caps from row 0 to row 1 */
/* capture stores */
caps0_2 = i - 1;
goto st8;
break;
}
default:
break;
}
/* (c >= 0 && c <= 33)
* || (c >= 35 && c <= 38)
* || (c >= 40 && c <= 44)
* || (c >= 46 && c <= 90)
* || (c == 92)
* || (c >= 94 && c <= 122)
* || (c == 124)
* || (c >= 126 && c <= 255)
*/
goto st1;
} /* end state */
goto st1_error;
st2: { /* DFA node {59,1} 2 */
if (unlikely(i >= len)) {
i++;
goto st2_error;
}
c = s[i];
i++;
switch (c) {
case 10: {
/* transfer caps from row 1 to row 0 */
goto st1;
break;
}
case 34: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_12 = i - 1;
goto st10;
break;
}
case 39: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_14 = i - 1;
goto st11;
break;
}
case 45: {
/* transfer caps from row 1 to row 2 */
/* transfer caps from row 1 to row 3 */
/* capture stores */
caps1_6 = i - 1;
caps2_10 = i - 1;
goto st12;
break;
}
case 91: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_4 = i - 1;
goto st13;
break;
}
case 92: {
goto st14;
break;
}
case 93: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_8 = i - 1;
goto st15;
break;
}
case 123: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_0 = i - 1;
goto st16;
break;
}
case 125: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_2 = i - 1;
goto st17;
break;
}
default:
break;
}
/* (c >= 0 && c <= 9)
* || (c >= 11 && c <= 33)
* || (c >= 35 && c <= 38)
* || (c >= 40 && c <= 44)
* || (c >= 46 && c <= 90)
* || (c >= 94 && c <= 122)
* || (c == 124)
* || (c >= 126 && c <= 255)
*/
goto st9;
} /* end state */
goto st2_error;
st3: { /* DFA node {72,1} 3 */
if (unlikely(i >= len)) {
i++;
goto st3_error;
}
c = s[i];
i++;
switch (c) {
case 10: {
/* transfer caps from row 1 to row 0 */
goto st1;
break;
}
case 34: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_12 = i - 1;
goto st19;
break;
}
case 39: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_14 = i - 1;
goto st20;
break;
}
case 45: {
/* transfer caps from row 1 to row 2 */
/* transfer caps from row 1 to row 3 */
/* capture stores */
caps1_6 = i - 1;
caps2_10 = i - 1;
goto st21;
break;
}
case 91: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_4 = i - 1;
goto st22;
break;
}
case 92: {
goto st23;
break;
}
case 93: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_8 = i - 1;
goto st24;
break;
}
case 123: {
/* transfer caps from row 1 to row 2 */
/* capture stores */
caps1_0 = i - 1;
goto st25;
没有合适的资源?快使用搜索试试~ 我知道了~
lua-nginx-module-0.10.9rc7
需积分: 31 13 下载量 48 浏览量
2019-01-04
12:55:30
上传
评论
收藏 596KB GZ 举报
温馨提示
共350个文件
t:192个
c:60个
h:58个
nginx集成lua脚本模块,配合nginx和ngx_devel_kit一起使用,注意lua_nginx_module的版本号,否则会出现时间类型不兼容
资源推荐
资源详情
资源评论
收起资源包目录
lua-nginx-module-0.10.9rc7 (350个子文件)
ngx_http_lua_lex.c 179KB
ngx_http_lua_socket_tcp.c 144KB
ngx_http_lua_util.c 104KB
ngx_http_lua_shdict.c 70KB
ngx_http_lua_regex.c 67KB
ngx_http_lua_subrequest.c 48KB
ngx_http_lua_directive.c 45KB
ngx_http_lua_socket_udp.c 42KB
ngx_http_lua_module.c 40KB
ngx_http_lua_headers.c 38KB
ngx_http_lua_req_body.c 29KB
ngx_http_lua_ssl_certby.c 27KB
ngx_http_lua_clfactory.c 26KB
ngx_http_lua_timer.c 21KB
ngx_http_lua_headers_in.c 21KB
ngx_http_lua_output.c 19KB
ngx_http_lua_balancer.c 18KB
ngx_http_lua_string.c 16KB
ngx_http_lua_headers_out.c 16KB
ngx_http_lua_bodyfilterby.c 15KB
ngx_http_lua_semaphore.c 15KB
ngx_http_lua_ssl_session_storeby.c 15KB
ngx_http_lua_control.c 15KB
ngx_http_lua_ssl_session_fetchby.c 15KB
ngx_http_lua_script.c 13KB
ngx_http_lua_args.c 13KB
ngx_http_lua_variable.c 12KB
ngx_http_lua_coroutine.c 11KB
ngx_http_lua_ssl_ocsp.c 11KB
ngx_http_lua_log.c 10KB
ngx_http_lua_accessby.c 10KB
ngx_http_lua_rewriteby.c 10KB
ngx_http_lua_contentby.c 9KB
ngx_http_lua_initworkerby.c 8KB
ngx_http_lua_headerfilterby.c 8KB
ngx_http_lua_fake_shm_module.c 8KB
ngx_http_lua_cache.c 7KB
ngx_http_lua_uthread.c 7KB
ngx_http_lua_logby.c 7KB
ngx_http_lua_misc.c 6KB
ngx_http_lua_time.c 6KB
ngx_http_lua_req_method.c 6KB
ngx_http_lua_sleep.c 5KB
ngx_http_lua_setby.c 5KB
ngx_http_lua_consts.c 5KB
ngx_http_lua_ctx.c 5KB
ngx_http_lua_capturefilter.c 5KB
ngx_http_lua_log_ringbuf.c 5KB
ngx_http_lua_api.c 5KB
ngx_http_lua_ndk.c 5KB
ngx_http_fake_module.c 3KB
ngx_http_lua_worker.c 3KB
ngx_http_lua_fake_delayed_load_module.c 2KB
ngx_http_lua_uri.c 2KB
ngx_http_lua_phase.c 2KB
ngx_http_lua_pcrefix.c 2KB
ngx_http_lua_config.c 1KB
ngx_http_lua_exception.c 1KB
ngx_http_lua_initby.c 898B
ngx_http_lua_ssl.c 676B
config 19KB
config 232B
config 181B
config 157B
test.crl 597B
comodo-ca.crt 2KB
equifax.crt 1KB
test.crt 985B
test2.crt 936B
test_ecdsa.crt 652B
ngx_lua_provider.d 2KB
fix-comments 554B
gen-lexer-c 587B
.gitattributes 27B
.gitignore 2KB
.gitignore 10B
ngx_http_lua_common.h 19KB
ngx_http_lua_util.h 13KB
ngx_http_lua_socket_tcp.h 5KB
ngx_http_lua_probe.h 3KB
ngx_http_lua_directive.h 3KB
ngx_http_lua_script.h 2KB
ngx_http_lua_shdict.h 2KB
ddebug.h 2KB
ngx_http_lua_socket_udp.h 2KB
ngx_http_lua_semaphore.h 1KB
ngx_http_lua_subrequest.h 1KB
ngx_http_lua_api.h 1KB
ngx_http_lua_ssl.h 1KB
ngx_http_lua_log_ringbuf.h 1KB
ngx_http_lua_uthread.h 964B
ngx_http_lua_ssl_session_fetchby.h 893B
ngx_http_lua_ssl_session_storeby.h 871B
ngx_http_lua_bodyfilterby.h 839B
ngx_http_lua_ssl_certby.h 820B
ngx_http_lua_contentby.h 782B
ngx_http_lua_exception.h 728B
ngx_http_lua_balancer.h 646B
ngx_http_lua_headerfilterby.h 645B
ngx_http_lua_output.h 632B
共 350 条
- 1
- 2
- 3
- 4
资源评论
小哥笔记
- 粉丝: 22
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功