"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "mandocdb.c" between
mdocml-1.14.1rc1.tar.gz and mdocml-1.14.1rc2.tar.gz

About: mdocml is a suite of tools compiling "-mdoc", the roff macro package of choice for BSD manual pages, and "-man", the predominant historical package for UNIX manuals. Hint: The installed binary name is "mandoc". Release candidate.

mandocdb.c  (mdocml-1.14.1rc1):mandocdb.c  (mdocml-1.14.1rc2)
/* $Id: mandocdb.c,v 1.242 2017/01/27 11:33:26 schwarze Exp $ */ /* $Id: mandocdb.c,v 1.244 2017/02/17 14:45:55 schwarze Exp $ */
/* /*
* Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv>
* Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org> * Copyright (c) 2011-2017 Ingo Schwarze <schwarze@openbsd.org>
* Copyright (c) 2016 Ed Maste <emaste@freebsd.org> * Copyright (c) 2016 Ed Maste <emaste@freebsd.org>
* *
* Permission to use, copy, modify, and distribute this software for any * Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above * purpose with or without fee is hereby granted, provided that the above
* copyright notice and this permission notice appear in all copies. * copyright notice and this permission notice appear in all copies.
* *
* THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHORS DISCLAIM ALL WARRANTIES
skipping to change at line 164 skipping to change at line 164
static int parse_mdoc_Va(struct mpage *, const struct roff_meta *, static int parse_mdoc_Va(struct mpage *, const struct roff_meta *,
const struct roff_node *); const struct roff_node *);
static int parse_mdoc_Xr(struct mpage *, const struct roff_meta *, static int parse_mdoc_Xr(struct mpage *, const struct roff_meta *,
const struct roff_node *); const struct roff_node *);
static void putkey(const struct mpage *, char *, uint64_t); static void putkey(const struct mpage *, char *, uint64_t);
static void putkeys(const struct mpage *, char *, size_t, uint64_t); static void putkeys(const struct mpage *, char *, size_t, uint64_t);
static void putmdockey(const struct mpage *, static void putmdockey(const struct mpage *,
const struct roff_node *, uint64_t, int); const struct roff_node *, uint64_t, int);
static int render_string(char **, size_t *); static int render_string(char **, size_t *);
static void say(const char *, const char *, ...) static void say(const char *, const char *, ...)
__attribute__((__format__ (printf, 2, 3))); __attribute__((__format__ (__printf__, 2, 3)));
static int set_basedir(const char *, int); static int set_basedir(const char *, int);
static int treescan(void); static int treescan(void);
static size_t utf8(unsigned int, char [7]); static size_t utf8(unsigned int, char [7]);
static int nodb; /* no database changes */ static int nodb; /* no database changes */
static int mparse_options; /* abort the parse early */ static int mparse_options; /* abort the parse early */
static int use_all; /* use all found files */ static int use_all; /* use all found files */
static int debug; /* print what we're doing */ static int debug; /* print what we're doing */
static int warnings; /* warn about crap */ static int warnings; /* warn about crap */
static int write_utf8; /* write UTF-8 output; else ASCII */ static int write_utf8; /* write UTF-8 output; else ASCII */
skipping to change at line 590 skipping to change at line 590
FTS *f; FTS *f;
FTSENT *ff; FTSENT *ff;
struct mlink *mlink; struct mlink *mlink;
int gzip; int gzip;
enum form dform; enum form dform;
char *dsec, *arch, *fsec, *cp; char *dsec, *arch, *fsec, *cp;
const char *path; const char *path;
const char *argv[2]; const char *argv[2];
argv[0] = "."; argv[0] = ".";
argv[1] = (char *)NULL; argv[1] = NULL;
f = fts_open((char * const *)argv, FTS_PHYSICAL | FTS_NOCHDIR, f = fts_open((char * const *)argv, FTS_PHYSICAL | FTS_NOCHDIR,
fts_compare); fts_compare);
if (f == NULL) { if (f == NULL) {
exitcode = (int)MANDOCLEVEL_SYSERR; exitcode = (int)MANDOCLEVEL_SYSERR;
say("", "&fts_open"); say("", "&fts_open");
return 0; return 0;
} }
dsec = arch = NULL; dsec = arch = NULL;
 End of changes. 3 change blocks. 
3 lines changed or deleted 3 lines changed or added

Home  |  About  |  All  |  Newest  |  Fossies Dox  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTPS