-void add_exclude_line(struct exclude_struct ***listp,
- const char *line, int include)
-{
- char *tok, *p;
- if (!line || !*line) return;
- p = strdup(line);
- if (!p) out_of_memory("add_exclude_line");
- for (tok=get_exclude_tok(p); tok; tok=get_exclude_tok(NULL))
- add_exclude(listp, tok, include);
- free(p);
-}
-
-
-static char *cvs_ignore_list[] = {
- "RCS/", "SCCS/", "CVS/", ".svn/", "CVS.adm", "RCSLOG", "cvslog.*",
- "tags", "TAGS", ".make.state", ".nse_depinfo",
- "*~", "#*", ".#*", ", *", "*.old", "*.bak", "*.BAK", "*.orig",
- "*.rej", ".del-*", "*.a", "*.o", "*.obj", "*.so", "*.Z", "*.elc", "*.ln",
- "core", NULL};
-
+static char default_cvsignore[] =
+ /* These default ignored items come from the CVS manual. */
+ "RCS SCCS CVS CVS.adm RCSLOG cvslog.* tags TAGS"
+ " .make.state .nse_depinfo *~ #* .#* ,* _$* *$"
+ " *.old *.bak *.BAK *.orig *.rej .del-*"
+ " *.a *.olb *.o *.obj *.so *.exe"
+ " *.Z *.elc *.ln core"
+ /* The rest we added to suit ourself. */
+ " .svn/";