find_names.c (32785) | find_names.c (34461) |
---|---|
1/* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * Copyright (c) 1989-1992, Brian Berliner 4 * 5 * You may distribute under the terms of the GNU General Public License as 6 * specified in the README file that comes with the CVS source distribution. 7 * 8 * Find Names --- 36 unchanged lines hidden (view full) --- 45 fnode = getnode (); 46 fnode->type = FILES; 47 fnode->key = xstrdup (node->key); 48 if (addnode (filelist, fnode) != 0) 49 freenode (fnode); 50 return (0); 51} 52 | 1/* 2 * Copyright (c) 1992, Brian Berliner and Jeff Polk 3 * Copyright (c) 1989-1992, Brian Berliner 4 * 5 * You may distribute under the terms of the GNU General Public License as 6 * specified in the README file that comes with the CVS source distribution. 7 * 8 * Find Names --- 36 unchanged lines hidden (view full) --- 45 fnode = getnode (); 46 fnode->type = FILES; 47 fnode->key = xstrdup (node->key); 48 if (addnode (filelist, fnode) != 0) 49 freenode (fnode); 50 return (0); 51} 52 |
53/* 54 * compare two files list node (for sort) 55 */ 56static int fsortcmp PROTO ((const Node *, const Node *)); 57static int 58fsortcmp (p, q) 59 const Node *p; 60 const Node *q; 61{ 62 return (strcmp (p->key, q->key)); 63} 64 | |
65List * 66Find_Names (repository, which, aflag, optentries) 67 char *repository; 68 int which; 69 int aflag; 70 List **optentries; 71{ 72 List *entries; 73 List *files; 74 75 /* make a list for the files */ 76 files = filelist = getlist (); 77 78 /* look at entries (if necessary) */ 79 if (which & W_LOCAL) 80 { 81 /* parse the entries file (if it exists) */ | 53List * 54Find_Names (repository, which, aflag, optentries) 55 char *repository; 56 int which; 57 int aflag; 58 List **optentries; 59{ 60 List *entries; 61 List *files; 62 63 /* make a list for the files */ 64 files = filelist = getlist (); 65 66 /* look at entries (if necessary) */ 67 if (which & W_LOCAL) 68 { 69 /* parse the entries file (if it exists) */ |
82 entries = Entries_Open (aflag); | 70 entries = Entries_Open (aflag, NULL); |
83 if (entries != NULL) 84 { 85 /* walk the entries file adding elements to the files list */ 86 (void) walklist (entries, add_entries_proc, NULL); 87 88 /* if our caller wanted the entries list, return it; else free it */ 89 if (optentries != NULL) 90 *optentries = entries; --- 86 unchanged lines hidden (view full) --- 177 List *tmpentries; 178 struct stickydirtag *sdtp; 179 180 /* Look through the Entries file. */ 181 182 if (entries != NULL) 183 tmpentries = entries; 184 else if (isfile (CVSADM_ENT)) | 71 if (entries != NULL) 72 { 73 /* walk the entries file adding elements to the files list */ 74 (void) walklist (entries, add_entries_proc, NULL); 75 76 /* if our caller wanted the entries list, return it; else free it */ 77 if (optentries != NULL) 78 *optentries = entries; --- 86 unchanged lines hidden (view full) --- 165 List *tmpentries; 166 struct stickydirtag *sdtp; 167 168 /* Look through the Entries file. */ 169 170 if (entries != NULL) 171 tmpentries = entries; 172 else if (isfile (CVSADM_ENT)) |
185 tmpentries = Entries_Open (0); | 173 tmpentries = Entries_Open (0, NULL); |
186 else 187 tmpentries = NULL; 188 189 if (tmpentries != NULL) 190 sdtp = (struct stickydirtag *) tmpentries->list->data; 191 192 /* If we do have an entries list, then if sdtp is NULL, or if 193 sdtp->subdirs is nonzero, all subdirectory information is --- 207 unchanged lines hidden --- | 174 else 175 tmpentries = NULL; 176 177 if (tmpentries != NULL) 178 sdtp = (struct stickydirtag *) tmpentries->list->data; 179 180 /* If we do have an entries list, then if sdtp is NULL, or if 181 sdtp->subdirs is nonzero, all subdirectory information is --- 207 unchanged lines hidden --- |