Back to index

lightning-sunbird  0.9+nobinonly
regex.h
Go to the documentation of this file.
00001 /* ***** BEGIN LICENSE BLOCK *****
00002  * Version: MPL 1.1/GPL 2.0/LGPL 2.1
00003  *
00004  * The contents of this file are subject to the Mozilla Public License Version
00005  * 1.1 (the "License"); you may not use this file except in compliance with
00006  * the License. You may obtain a copy of the License at
00007  * http://www.mozilla.org/MPL/
00008  *
00009  * Software distributed under the License is distributed on an "AS IS" basis,
00010  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
00011  * for the specific language governing rights and limitations under the
00012  * License.
00013  *
00014  * The Original Code is Mozilla Communicator client code, released
00015  * March 31, 1998.
00016  *
00017  * The Initial Developer of the Original Code is
00018  * Netscape Communications Corporation.
00019  * Portions created by the Initial Developer are Copyright (C) 1998-1999
00020  * the Initial Developer. All Rights Reserved.
00021  *
00022  * Contributor(s):
00023  *
00024  * Alternatively, the contents of this file may be used under the terms of
00025  * either the GNU General Public License Version 2 or later (the "GPL"), or
00026  * the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
00027  * in which case the provisions of the GPL or the LGPL are applicable instead
00028  * of those above. If you wish to allow use of your version of this file only
00029  * under the terms of either the GPL or the LGPL, and not to allow others to
00030  * use your version of this file under the terms of the MPL, indicate your
00031  * decision by deleting the provisions above and replace them with the notice
00032  * and other provisions required by the GPL or the LGPL. If you do not delete
00033  * the provisions above, a recipient may use your version of this file under
00034  * the terms of any one of the MPL, the GPL or the LGPL.
00035  *
00036  * ***** END LICENSE BLOCK ***** */
00037 
00038 #if defined( macintosh ) || defined( DOS ) || defined( _WINDOWS ) || defined( NEED_BSDREGEX ) || defined( XP_OS2 )
00039 /*
00040  * Copyright (c) 1993 Regents of the University of Michigan.
00041  * All rights reserved.
00042  *
00043  * Redistribution and use in source and binary forms are permitted
00044  * provided that this notice is preserved and that due credit is given
00045  * to the University of Michigan at Ann Arbor. The name of the University
00046  * may not be used to endorse or promote products derived from this
00047  * software without specific prior written permission. This software
00048  * is provided ``as is'' without express or implied warranty.
00049  */
00050 /*
00051  * regex.h -- includes for regular expression matching routines
00052  * 13 August 1993 Mark C Smith
00053  */
00054 
00055 #ifdef __cplusplus
00056 extern "C" {
00057 #endif
00058 
00059 #include "ldap.h" 
00060 
00061 #if !defined( NEEDPROTOS ) && defined( __STDC__ )
00062 #define NEEDPROTOS
00063 #endif
00064 
00065 #ifdef _SLDAPD_H_    /* server build: no need to use LDAP_CALL stuff */
00066 #ifdef LDAP_CALL
00067 #undef LDAP_CALL
00068 #define LDAP_CALL
00069 #endif
00070 #endif
00071 
00072 #ifdef NEEDPROTOS
00073 int re_init( void );
00074 void re_lock( void );
00075 int re_unlock( void );
00076 char * LDAP_CALL re_comp( char *pat );
00077 int LDAP_CALL re_exec( char *lp );
00078 void LDAP_CALL re_modw( char *s );
00079 int LDAP_CALL re_subs( char *src, char *dst );
00080 #else /* NEEDPROTOS */
00081 int re_init();
00082 void re_lock();
00083 int re_unlock();
00084 char * LDAP_CALL re_comp();
00085 int LDAP_CALL re_exec();
00086 void LDAP_CALL re_modw();
00087 int LDAP_CALL re_subs();
00088 #endif /* NEEDPROTOS */
00089 
00090 #define re_fail( m, p )
00091 
00092 #ifdef __cplusplus
00093 }
00094 #endif
00095 #endif /* macintosh or DOS or or _WIN32 or NEED_BSDREGEX */