bug-global
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] update comments in find.[ch]


From: Shigio Yamaguchi
Subject: Re: [PATCH] update comments in find.[ch]
Date: Mon, 02 Jun 2003 08:58:08 +0900

Committed. Thank you.
 
> * libutil/find.c: Change findxxx to find_xxx. 
> * libutil/find.h: Remove prototype of issource(). It does not exist any longe
r.
> 
> 
> Index: libutil/find.c
> ===================================================================
> RCS file: /cvsroot/global/global/libutil/find.c,v
> retrieving revision 1.24
> diff -u -r1.24 find.c
> --- libutil/find.c    17 May 2003 14:07:01 -0000      1.24
> +++ libutil/find.c    1 Jun 2003 23:16:08 -0000
> @@ -20,7 +20,7 @@
>   */
>  
>  /*
> - * If find(1) is available the use it to traverse directory tree.
> + * If find(1) is available, then use it to traverse directory tree.
>   * Otherwise use dirent(3).
>   */
>  #ifdef HAVE_CONFIG_H
> @@ -62,13 +62,13 @@
>  #include "strlimcpy.h"
>  
>  /*
> - * usage of ?findxxx()
> + * usage of find_xxx()
>   *
> - *   ?findopen();
> - *   while (path = ?findread()) {
> + *   find_open();
> + *   while (path = find_read()) {
>   *           ...
>   *   }
> - *   ?findclose();
> + *   find_close();
>   *
>   */
>  static regex_t       skip_area;
> @@ -323,7 +323,7 @@
>  }
>  #ifndef HAVE_FIND
>  /*----------------------------------------------------------------------*/
> -/* dirent version findxxx()                                          */
> +/* dirent version find_xxx()                                         */
>  /*----------------------------------------------------------------------*/
>  #define STACKSIZE 50
>  static  char    dir[MAXPATHLEN+1];           /* directory path */
> @@ -568,7 +568,7 @@
>                */
>               p = path + strlen(path) - 1;
>               if (*p != '\n')
> -                     die("output of find(1) is wrong (findread).");
> +                     die("output of find(1) is wrong (find_read).");
>               *p = 0;
>               if (skipthisfile(path))
>                       continue;
> Index: libutil/find.h
> ===================================================================
> RCS file: /cvsroot/global/global/libutil/find.h,v
> retrieving revision 1.6
> diff -u -r1.6 find.h
> --- libutil/find.h    5 Jul 2002 07:16:47 -0000       1.6
> +++ libutil/find.h    1 Jun 2003 23:16:08 -0000
> @@ -22,7 +22,6 @@
>  #ifndef _FIND_H_
>  #define _FIND_H_
>  
> -int  issource(char *);
>  void find_open(void);
>  char *find_read(void);
>  void find_close(void);
> 
> 
> ----
> Hideki IWAMOTO  address@hidden
--
Shigio Yamaguchi <address@hidden> - Tama Communications Corporation
Spare mail address: <address@hidden>
PGP fingerprint: D1CB 0B89 B346 4AB6 5663  C4B6 3CA5 BBB3 57BE DDA3




reply via email to

[Prev in Thread] Current Thread [Next in Thread]