* mdocml: mandocmsg finally has no return value.
@ 2011-03-17 12:08 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-03-17 12:08 UTC (permalink / raw)
To: source
Log Message:
-----------
mandocmsg finally has no return value.
Modified Files:
--------------
mdocml:
main.c
mandoc.h
Revision Data
-------------
Index: mandoc.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.h,v
retrieving revision 1.60
retrieving revision 1.61
diff -Lmandoc.h -Lmandoc.h -u -p -r1.60 -r1.61
--- mandoc.h
+++ mandoc.h
@@ -328,7 +328,7 @@ enum mdelim {
DELIM_CLOSE
};
-typedef int (*mandocmsg)(enum mandocerr, void *,
+typedef void (*mandocmsg)(enum mandocerr, void *,
int, int, const char *);
__BEGIN_DECLS
Index: main.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/main.c,v
retrieving revision 1.152
retrieving revision 1.153
diff -Lmain.c -Lmain.c -u -p -r1.152 -r1.153
--- main.c
+++ main.c
@@ -233,7 +233,7 @@ static void fdesc(struct curparse *);
static void ffile(const char *, struct curparse *);
static int pfile(const char *, struct curparse *);
static int moptions(enum intt *, char *);
-static int mmsg(enum mandocerr, void *,
+static void mmsg(enum mandocerr, void *,
int, int, const char *);
static void pset(const char *, int, struct curparse *);
static int toptions(struct curparse *, char *);
@@ -1036,7 +1036,7 @@ woptions(struct curparse *curp, char *ar
return(1);
}
-static int
+static void
mmsg(enum mandocerr t, void *arg, int ln, int col, const char *msg)
{
struct curparse *cp;
@@ -1049,7 +1049,7 @@ mmsg(enum mandocerr t, void *arg, int ln
cp = (struct curparse *)arg;
if (level < cp->wlevel)
- return(1);
+ return;
fprintf(stderr, "%s:%d:%d: %s: %s",
cp->file, ln, col + 1, mandoclevels[level], mandocerrs[t]);
@@ -1059,6 +1059,4 @@ mmsg(enum mandocerr t, void *arg, int ln
if (cp->file_status < level)
cp->file_status = level;
-
- return(level < MANDOCLEVEL_FATAL);
}
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-03-17 12:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-03-17 12:08 mdocml: mandocmsg finally has no return value kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).