File: pattern_list.h

package info (click to toggle)
jesred 1.2pl1-22
  • links: PTS
  • area: main
  • in suites: bullseye, buster, sid, stretch
  • size: 580 kB
  • ctags: 286
  • sloc: ansic: 1,359; makefile: 76
file content (57 lines) | stat: -rw-r--r-- 1,648 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
/*
 * $Id: pattern_list.h,v 1.3 1998/07/25 03:05:40 elkner Exp $
 *
 * Author:  Squirm derived      http://www.senet.com.au/squirm/
 * Project: Jesred       http://ivs.cs.uni-magdeburg.de/~elkner/webtools/jesred/
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License
 * as published by the Free Software Foundation; either version 2
 * of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * http://www.gnu.org/copyleft/gpl.html or ./gpl.html
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
 *
 * Thanks to Chris Foote, chris@senet.com.au - not much to change here ;-)
 *
 */

#ifndef PATTERN_H
#define PATTERN_H

#define NORMAL   1
#define EXTENDED 2
#define ABORT    3

#ifdef USE_ACCEL
#define ACCEL_NORMAL 1
#define ACCEL_START  2
#define ACCEL_END    3
#endif

typedef struct _pattern_item {
    char *pattern;
    char *replacement;
    char *urlgroup;
    int case_sensitive;
    int type;
#ifdef USE_ACCEL
    int has_accel;
    int accel_type;
    char *accel;
#endif
    regex_t cpattern;
    struct _pattern_item *next;
} pattern_item;

extern void add_to_patterns(char *, pattern_item **);
extern void plist_destroy(pattern_item **);

#endif