-const char pcrs_rcs[] = "$Id: pcrs.c,v 1.8 2001/06/29 21:45:41 oes Exp $";
+const char pcrs_rcs[] = "$Id: pcrs.c,v 1.9 2001/07/18 17:27:00 oes Exp $";
/*********************************************************************
*
*
* Revisions :
* $Log: pcrs.c,v $
+ * Revision 1.9 2001/07/18 17:27:00 oes
+ * Changed interface; Cosmetics
+ *
* Revision 1.8 2001/06/29 21:45:41 oes
* Indentation, CRLF->LF, Tab-> Space
*
* Returns : option integer suitable for pcre
*
*********************************************************************/
-int pcrs_compile_perl_options(char *optstring, int *flags)
+int pcrs_compile_perl_options(const char *optstring, int *flags)
{
size_t i;
int rc = 0;
* the reason.
*
*********************************************************************/
-pcrs_substitute *pcrs_compile_replacement(char *replacement, int trivialflag, int *errptr)
+pcrs_substitute *pcrs_compile_replacement(const char *replacement, int trivialflag, int *errptr)
{
int length, i, k = 0, l = 0, quoted = 0, idx;
char *text, *num_ptr, *numbers = "0123456789";
* has the reason.
*
*********************************************************************/
-pcrs_job *pcrs_compile_command(char *command, int *errptr)
+pcrs_job *pcrs_compile_command(const char *command, int *errptr)
{
int i, k, l, limit, quoted = FALSE;
char delimiter;
* has the reason.
*
*********************************************************************/
-pcrs_job *pcrs_compile(char *pattern, char *substitute, char *options, int *errptr)
+pcrs_job *pcrs_compile(const char *pattern, const char *substitute, const char *options, int *errptr)
{
pcrs_job *newjob;
int flags;