From a885259e1ffaa6de1d71107d19c815fb7875c86a Mon Sep 17 00:00:00 2001 From: fcolin Date: Fri, 21 Apr 2006 12:13:54 +0000 Subject: Separation du code Regexp dans un module --- src/ivybind.h | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) (limited to 'src/ivybind.h') diff --git a/src/ivybind.h b/src/ivybind.h index 9846d3f..40f6932 100644 --- a/src/ivybind.h +++ b/src/ivybind.h @@ -14,18 +14,16 @@ * Please refer to file version.h for the * copyright notice regarding this software */ -#include "ivyargument.h" - /* Module de gestion de la syntaxe des messages Ivy */ typedef struct _binding *IvyBinding; -typedef enum { IvyBindRegexp, IvyBindSimple } IvyBindingType; -void IvyBindingParseMessage( const char *msg ); void IvyBindingSetFilter( int argc, const char ** argv ); -int IvyBindingFilter( IvyBindingType typ, int len, const char *exp ); -IvyBinding IvyBindingCompile( IvyBindingType typ, const char * expression ); +int IvyBindingFilter( const char *expression ); + +IvyBinding IvyBindingCompile( const char *expression ); void IvyBindingGetCompileError( int *erroffset, const char **errmessage ); void IvyBindingFree( IvyBinding bind ); + int IvyBindingExec( IvyBinding bind, const char * message ); -IvyArgument IvyBindingMatch( IvyBinding bind, const char *message ); +void IvyBindingMatch( IvyBinding bind, const char *message, int argnum, int *arglen, const char **arg ); -- cgit v1.1