/*
+ * $Id: comment.c,v 1.5.2.1 2002-03-12 15:44:38 srittau Exp $
+ *
* Copyright (c) 1990,1994 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
-#endif
+#endif /* HAVE_CONFIG_H */
-#include <sys/syslog.h>
+#include <syslog.h>
#include <sys/param.h>
#include <stdio.h>
#include <stdlib.h>
char *comcont = "%%+";
-compop()
+void compop( void )
{
struct comstate *cs;
free( cs );
}
-compush( comment )
+void compush( comment )
struct papd_comment *comment;
{
struct comstate *cs;
comstate = cs;
}
-comswitch( comments, handler )
+int comswitch( comments, handler )
struct papd_comment *comments;
int (*handler)();
{
return( 0 );
}
-comcmp( start, stop, str, how )
+int comcmp( start, stop, str, how )
char *start, *stop, *str;
int how;
{
len = stop - start;
cc = strlen( str );
if ( how & C_FULL ) {
- if ( cc == len & strncmp( str, start, cc ) == 0 ) {
+ if ( (cc == len) && (strncmp( str, start, cc ) == 0) ) {
return( 0 );
}
} else {
- if ( cc <= len && strncmp( str, start, cc ) == 0 ) {
+ if ( (cc <= len) && (strncmp( str, start, cc ) == 0) ) {
return( 0 );
}
}
return( 1 );
}
- struct papd_comment *
-commatch( start, stop, comments )
+struct papd_comment *commatch( start, stop, comments )
char *start, *stop;
struct papd_comment comments[];
{
}
}
- char *
-comtoken( start, stop, pos, delim )
+char *comtoken( start, stop, pos, delim )
char *start, *stop, *pos, *delim;
{
if ( pos < start || pos > stop ) {