[BACK]Return to file.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / cvs

Diff for /src/usr.bin/cvs/file.c between version 1.103 and 1.104

version 1.103, 2005/07/24 19:04:55 version 1.104, 2005/07/25 12:05:43
Line 44 
Line 44 
 #include "log.h"  #include "log.h"
 #include "strtab.h"  #include "strtab.h"
   
 #define CVS_IGN_STATIC    0x01     /* pattern is static, no need to glob */  #define CVS_IGN_STATIC  0x01    /* pattern is static, no need to glob */
   
 #define CVS_CHAR_ISMETA(c)  ((c == '*') || (c == '?') || (c == '['))  #define CVS_CHAR_ISMETA(c)      ((c == '*') || (c == '?') || (c == '['))
   
   
 /* ignore pattern */  /* ignore pattern */
 struct cvs_ignpat {  struct cvs_ignpat {
         char  ip_pat[MAXNAMLEN];          char                            ip_pat[MAXNAMLEN];
         int   ip_flags;          int                             ip_flags;
         TAILQ_ENTRY (cvs_ignpat) ip_list;          TAILQ_ENTRY (cvs_ignpat)        ip_list;
 };  };
   
   
Line 104 
Line 104 
 static RCSNUM *cvs_addedrev;  static RCSNUM *cvs_addedrev;
   
   
 TAILQ_HEAD(, cvs_ignpat)  cvs_ign_pats;  TAILQ_HEAD(, cvs_ignpat)        cvs_ign_pats;
   
 static int cvs_file_getdir(CVSFILE *, int, int (*)(CVSFILE *, void *),  static int cvs_file_getdir(CVSFILE *, int, int (*)(CVSFILE *, void *),
     void *, int);      void *, int);
   
 static int      cvs_load_dirinfo  (CVSFILE *, int);  static int       cvs_load_dirinfo(CVSFILE *, int);
 static int      cvs_file_sort    (struct cvs_flist *, u_int);  static int       cvs_file_sort(struct cvs_flist *, u_int);
 static int      cvs_file_cmp     (const void *, const void *);  static int       cvs_file_cmp(const void *, const void *);
 static int      cvs_file_cmpname (const char *, const char *);  static int       cvs_file_cmpname(const char *, const char *);
 static CVSFILE* cvs_file_alloc   (const char *, u_int);  static CVSFILE  *cvs_file_alloc(const char *, u_int);
 static CVSFILE* cvs_file_lget  (const char *, int, CVSFILE *, struct cvs_ent *);  static CVSFILE  *cvs_file_lget(const char *, int, CVSFILE *, struct cvs_ent *);
   
   
 /*  /*
Line 701 
Line 701 
  * at least MAXPATHLEN bytes long.   * at least MAXPATHLEN bytes long.
  * Returns a pointer to the start of the path.   * Returns a pointer to the start of the path.
  */   */
 char*  char *
 cvs_file_getpath(CVSFILE *file, char *buf, size_t len)  cvs_file_getpath(CVSFILE *file, char *buf, size_t len)
 {  {
         memset(buf, '\0', len);          memset(buf, '\0', len);

Legend:
Removed from v.1.103  
changed lines
  Added in v.1.104