/[global]/global/libutil/gpathop.c
ViewVC logotype

Diff of /global/libutil/gpathop.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.20 by shigio, Thu Apr 7 10:20:07 2005 UTC revision 1.21 by shigio, Fri Apr 8 06:49:20 2005 UTC
# Line 75  gpath_open(dbpath, mode, flags) Line 75  gpath_open(dbpath, mode, flags)
75          if (mode == 1)          if (mode == 1)
76                  _nextkey = 1;                  _nextkey = 1;
77          else {          else {
78                  char *p = dbop_get(dbop, NEXTKEY);                  const char *p = dbop_get(dbop, NEXTKEY);
79    
80                  if (p == NULL)                  if (p == NULL)
81                          die("nextkey not found in GPATH.");                          die("nextkey not found in GPATH.");
# Line 110  gpath_put(path) Line 110  gpath_put(path)
110   *      i)      path    path name   *      i)      path    path name
111   *      r)              file id   *      r)              file id
112   */   */
113  char *  const char *
114  gpath_path2fid(path)  gpath_path2fid(path)
115          const char *path;          const char *path;
116  {  {
# Line 123  gpath_path2fid(path) Line 123  gpath_path2fid(path)
123   *      i)      fid     file id   *      i)      fid     file id
124   *      r)              path name   *      r)              path name
125   */   */
126  char *  const char *
127  gpath_fid2path(fid)  gpath_fid2path(fid)
128          const char *fid;          const char *fid;
129  {  {
# Line 138  void Line 138  void
138  gpath_delete(path)  gpath_delete(path)
139          const char *path;          const char *path;
140  {  {
141          char *fid;          const char *fid;
142    
143          assert(opened == 1);          assert(opened == 1);
144          assert(_mode == 2);          assert(_mode == 2);
# Line 216  gfind_open(dbpath, local) Line 216  gfind_open(dbpath, local)
216   *   *
217   *      r)              path   *      r)              path
218   */   */
219  char    *  const char *
220  gfind_read(void)  gfind_read(void)
221  {  {
222          assert(gfind_opened == 1);          assert(gfind_opened == 1);

Legend:
Removed from v.1.20  
changed lines
  Added in v.1.21

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26