parent
6db2ee1f5a
commit
693b74eddf
@ -26,12 +26,8 @@ SOFTWARE.
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#line 1 "smtp-address-validator.rl"
|
|
||||||
#include "smtp-address-validator.hpp"
|
#include "smtp-address-validator.hpp"
|
||||||
|
|
||||||
#line 110 "smtp-address-validator.rl"
|
|
||||||
|
|
||||||
#line 7 "smtp-address-validator.cpp"
|
|
||||||
static const signed char _address_actions[] = {
|
static const signed char _address_actions[] = {
|
||||||
0, 1, 0, 1, 1, 0};
|
0, 1, 0, 1, 1, 0};
|
||||||
|
|
||||||
@ -678,8 +674,6 @@ static const int address_error = 0;
|
|||||||
|
|
||||||
static const int address_en_main = 1;
|
static const int address_en_main = 1;
|
||||||
|
|
||||||
#line 112 "smtp-address-validator.rl"
|
|
||||||
|
|
||||||
bool is_address(const char *p, const char *pe)
|
bool is_address(const char *p, const char *pe)
|
||||||
{
|
{
|
||||||
int cs = 0;
|
int cs = 0;
|
||||||
@ -688,14 +682,9 @@ bool is_address(const char *p, const char *pe)
|
|||||||
|
|
||||||
bool result = false;
|
bool result = false;
|
||||||
|
|
||||||
#line 675 "smtp-address-validator.cpp"
|
|
||||||
{
|
{
|
||||||
cs = (int) address_start;
|
cs = (int) address_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
#line 124 "smtp-address-validator.rl"
|
|
||||||
|
|
||||||
#line 680 "smtp-address-validator.cpp"
|
|
||||||
{
|
{
|
||||||
int _klen;
|
int _klen;
|
||||||
unsigned int _trans = 0;
|
unsigned int _trans = 0;
|
||||||
@ -775,22 +764,14 @@ bool is_address(const char *p, const char *pe)
|
|||||||
switch ((*(_acts))) {
|
switch ((*(_acts))) {
|
||||||
case 0: {
|
case 0: {
|
||||||
{
|
{
|
||||||
#line 108 "smtp-address-validator.rl"
|
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#line 762 "smtp-address-validator.cpp"
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 1: {
|
case 1: {
|
||||||
{
|
{
|
||||||
#line 108 "smtp-address-validator.rl"
|
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#line 770 "smtp-address-validator.cpp"
|
|
||||||
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -811,8 +792,5 @@ bool is_address(const char *p, const char *pe)
|
|||||||
_out : {
|
_out : {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#line 125 "smtp-address-validator.rl"
|
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user