Apache HTTPD
Macros | Functions | Variables
regexp.c File Reference
#include "apr.h"
#include "apr_lib.h"
#include "libsed.h"
#include "regexp.h"
#include "sed.h"

Go to the source code of this file.

Macros

#define GETC()   ((unsigned char)*sp++)
 
#define PEEKC()   ((unsigned char)*sp)
 
#define UNGETC(c)   (--sp)
 
#define SEDCOMPILE_ERROR(c)
 
#define ecmp(s1, s2, n)   (strncmp(s1, s2, n) == 0)
 
#define uletter(c)   (isalpha(c) || c == '_')
 

Functions

static int regerr (sed_commands_t *commands, int err)
 
static void comperr (sed_commands_t *commands, char *msg)
 
static void getrnge (char *str, step_vars_storage *vars)
 
static int _advance (char *, char *, step_vars_storage *)
 
int sed_step (char *p1, char *p2, int circf, step_vars_storage *vars)
 
charsed_compile (sed_commands_t *commands, sed_comp_args *compargs, char *ep, char *endbuf, int seof)
 

Variables

static unsigned char bittab [] = { 1, 2, 4, 8, 16, 32, 64, 128 }
 

Macro Definition Documentation

◆ ecmp

#define ecmp (   s1,
  s2,
  n 
)    (strncmp(s1, s2, n) == 0)

Definition at line 50 of file regexp.c.

◆ GETC

#define GETC ( )    ((unsigned char)*sp++)

Definition at line 43 of file regexp.c.

◆ PEEKC

#define PEEKC ( )    ((unsigned char)*sp)

Definition at line 44 of file regexp.c.

◆ SEDCOMPILE_ERROR

#define SEDCOMPILE_ERROR (   c)
Value:
{ \
regerrno = c; \
goto out; \
}
apr_size_t size
apr_vformatter_buff_t * c
Definition apr_lib.h:175
static apr_file_t * out
Definition mod_info.c:85

Definition at line 46 of file regexp.c.

◆ uletter

#define uletter (   c)    (isalpha(c) || c == '_')

Definition at line 51 of file regexp.c.

◆ UNGETC

#define UNGETC (   c)    (--sp)

Definition at line 45 of file regexp.c.

Function Documentation

◆ _advance()

static int _advance ( char lp,
char ep,
step_vars_storage vars 
)
static

Definition at line 390 of file regexp.c.

◆ comperr()

static void comperr ( sed_commands_t commands,
char msg 
)
static

Definition at line 63 of file regexp.c.

◆ getrnge()

static void getrnge ( char str,
step_vars_storage vars 
)
static

Definition at line 593 of file regexp.c.

◆ regerr()

static int regerr ( sed_commands_t commands,
int  err 
)
static

Definition at line 70 of file regexp.c.

◆ sed_compile()

char * sed_compile ( sed_commands_t commands,
sed_comp_args compargs,
char ep,
char endbuf,
int  seof 
)

Definition at line 132 of file regexp.c.

◆ sed_step()

int sed_step ( char p1,
char p2,
int  circf,
step_vars_storage vars 
)
extern

Definition at line 358 of file regexp.c.

Variable Documentation

◆ bittab

unsigned char bittab[] = { 1, 2, 4, 8, 16, 32, 64, 128 }
static

Definition at line 54 of file regexp.c.