#endif
static double
-constant_LOG_NO(char *name, int len, int arg)
+constant_LOG_NO(char *name, int len)
{
switch (name[6 + 0]) {
case 'T':
}
static double
-constant_LOG_N(char *name, int len, int arg)
+constant_LOG_N(char *name, int len)
{
switch (name[5 + 0]) {
case 'D':
#endif
}
case 'O':
- return constant_LOG_NO(name, len, arg);
+ return constant_LOG_NO(name, len);
}
errno = EINVAL;
return 0;
}
static double
-constant_LOG_P(char *name, int len, int arg)
+constant_LOG_P(char *name, int len)
{
switch (name[5 + 0]) {
case 'I':
}
static double
-constant_LOG_AU(char *name, int len, int arg)
+constant_LOG_AU(char *name, int len)
{
if (6 + 2 >= len ) {
errno = EINVAL;
}
static double
-constant_LOG_A(char *name, int len, int arg)
+constant_LOG_A(char *name, int len)
{
switch (name[5 + 0]) {
case 'L':
#endif
}
case 'U':
- return constant_LOG_AU(name, len, arg);
+ return constant_LOG_AU(name, len);
}
errno = EINVAL;
return 0;
}
static double
-constant_LOG_CR(char *name, int len, int arg)
+constant_LOG_CR(char *name, int len)
{
switch (name[6 + 0]) {
case 'I':
}
static double
-constant_LOG_C(char *name, int len, int arg)
+constant_LOG_C(char *name, int len)
{
switch (name[5 + 0]) {
case 'O':
#endif
}
case 'R':
- return constant_LOG_CR(name, len, arg);
+ return constant_LOG_CR(name, len);
}
errno = EINVAL;
return 0;
}
static double
-constant_LOG_D(char *name, int len, int arg)
+constant_LOG_D(char *name, int len)
{
switch (name[5 + 0]) {
case 'A':
}
static double
-constant_LOG_U(char *name, int len, int arg)
+constant_LOG_U(char *name, int len)
{
switch (name[5 + 0]) {
case 'S':
}
static double
-constant_LOG_E(char *name, int len, int arg)
+constant_LOG_E(char *name, int len)
{
switch (name[5 + 0]) {
case 'M':
}
static double
-constant_LOG_F(char *name, int len, int arg)
+constant_LOG_F(char *name, int len)
{
switch (name[5 + 0]) {
case 'A':
}
static double
-constant_LOG_LO(char *name, int len, int arg)
+constant_LOG_LO(char *name, int len)
{
if (6 + 3 >= len ) {
errno = EINVAL;
}
static double
-constant_LOG_L(char *name, int len, int arg)
+constant_LOG_L(char *name, int len)
{
switch (name[5 + 0]) {
case 'F':
#endif
}
case 'O':
- return constant_LOG_LO(name, len, arg);
+ return constant_LOG_LO(name, len);
case 'P':
if (strEQ(name + 5, "PR")) { /* LOG_L removed */
#ifdef LOG_LPR
}
static double
-constant(char *name, int len, int arg)
+constant(char *name, int len)
{
errno = 0;
if (0 + 4 >= len ) {
case 'A':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_A(name, len, arg);
+ return constant_LOG_A(name, len);
case 'C':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_C(name, len, arg);
+ return constant_LOG_C(name, len);
case 'D':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_D(name, len, arg);
+ return constant_LOG_D(name, len);
case 'E':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_E(name, len, arg);
+ return constant_LOG_E(name, len);
case 'F':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_F(name, len, arg);
+ return constant_LOG_F(name, len);
case 'I':
if (strEQ(name + 0, "LOG_INFO")) { /* removed */
#ifdef LOG_INFO
case 'L':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_L(name, len, arg);
+ return constant_LOG_L(name, len);
case 'M':
if (strEQ(name + 0, "LOG_MAIL")) { /* removed */
#ifdef LOG_MAIL
case 'N':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_N(name, len, arg);
+ return constant_LOG_N(name, len);
case 'O':
if (strEQ(name + 0, "LOG_ODELAY")) { /* removed */
#ifdef LOG_ODELAY
case 'P':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_P(name, len, arg);
+ return constant_LOG_P(name, len);
case 'S':
if (strEQ(name + 0, "LOG_SYSLOG")) { /* removed */
#ifdef LOG_SYSLOG
case 'U':
if (!strnEQ(name + 0,"LOG_", 4))
break;
- return constant_LOG_U(name, len, arg);
+ return constant_LOG_U(name, len);
case 'W':
if (strEQ(name + 0, "LOG_WARNING")) { /* removed */
#ifdef LOG_WARNING
double
-constant(sv,arg)
+constant(sv)
PREINIT:
STRLEN len;
INPUT:
SV * sv
char * s = SvPV(sv, len);
- int arg
CODE:
- RETVAL = constant(s,len,arg);
+ RETVAL = constant(s,len);
OUTPUT:
RETVAL