[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] update comments in find.[ch]
From: |
Hideki IWAMOTO |
Subject: |
[PATCH] update comments in find.[ch] |
Date: |
Mon, 02 Jun 2003 08:24:23 +0900 |
* libutil/find.c: Change findxxx to find_xxx.
* libutil/find.h: Remove prototype of issource(). It does not exist any longer.
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
- [PATCH] update comments in find.[ch],
Hideki IWAMOTO <=