Changeset e187445 for regex.c


Ignore:
Timestamp:
Jun 22, 2003, 1:40:49 PM (17 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
53f421b
Parents:
a6560fe
Message:
reformatted filter, filterelement and regex to new code style
File:
1 edited

Legend:

Unmodified
Added
Removed
  • regex.c

    ra6560fe re187445  
    44static const char fileIdent[] = "$Id$";
    55
    6 void owl_regex_init(owl_regex *re) {
     6void owl_regex_init(owl_regex *re)
     7{
    78  re->negate=0;
    89  re->string=NULL;
    910}
    1011
    11 int owl_regex_create(owl_regex *re, char *string) {
     12int owl_regex_create(owl_regex *re, char *string)
     13{
    1214  int ret;
    1315  char buff1[LINE], buff2[LINE];
     
    3739}
    3840
    39 int owl_regex_compare(owl_regex *re, char *string) {
     41int owl_regex_compare(owl_regex *re, char *string)
     42{
    4043  int out, ret;
    4144
     
    5356}
    5457
    55 int owl_regex_is_set(owl_regex *re) {
     58int owl_regex_is_set(owl_regex *re)
     59{
    5660  if (re->string) return(1);
    5761  return(0);
    5862}
    5963
    60 char *owl_regex_get_string(owl_regex *re) {
     64char *owl_regex_get_string(owl_regex *re)
     65{
    6166  return(re->string);
    6267}
    6368
    64 void owl_regex_copy(owl_regex *a, owl_regex *b) {
     69void owl_regex_copy(owl_regex *a, owl_regex *b)
     70{
    6571  b->negate=a->negate;
    6672  b->string=owl_strdup(a->string);
     
    6874}
    6975
    70 void owl_regex_free(owl_regex *re) {
     76void owl_regex_free(owl_regex *re)
     77{
    7178  if (re->string) owl_free(re->string);
    7279
Note: See TracChangeset for help on using the changeset viewer.