source@mandoc.bsd.lv
 help / color / mirror / Atom feed
From: Kristaps Dzonsons <kristaps@bsd.lv>
To: source@mdocml.bsd.lv
Subject: Re: mdocml: First step of making mandocdb a true makewhatis/mandb
Date: Fri, 15 Jul 2011 12:30:50 +0200	[thread overview]
Message-ID: <4E2016DA.1020602@bsd.lv> (raw)
In-Reply-To: <201107151015.p6FAFOT7026926@krisdoz.my.domain>

> +static int
> +ofile_build(const char *dir, struct of **of)
> +{
> +	DIR		*d;
> +	const char	*fn;
> +	struct of	*nof;
> +	struct dirent	*dp;
> +
> +	if (NULL == (d = opendir(dir))) {
> +		perror(dir);
> +		return(0);
> +	}
> +
> +	while (NULL != (dp = readdir(d))) {
> +		fn = dp->d_name;
> +		if (DT_DIR == dp->d_type) {
> +			if (strcmp(".", fn)&&  strcmp("..", fn))
> +				if ( ! ofile_build(dp->d_name, of))
> +					return(0);

This of course is wrong and will be fixed in the next few releases as I 
iron out the bugs... Oops!
--
 To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv

      reply	other threads:[~2011-07-15 10:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-15 10:15 kristaps
2011-07-15 10:30 ` Kristaps Dzonsons [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4E2016DA.1020602@bsd.lv \
    --to=kristaps@bsd.lv \
    --cc=source@mdocml.bsd.lv \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).