summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/config.h
diff options
context:
space:
mode:
authorJoris Vink <joris@cvs.openbsd.org>2008-02-04 19:08:33 +0000
committerJoris Vink <joris@cvs.openbsd.org>2008-02-04 19:08:33 +0000
commita0b9240664bddddeedb1798fffa69d36acef975d (patch)
tree85f4d5c4505a2332a154ddbbeef53ddecfbf046e /usr.bin/cvs/config.h
parentbb6fd23cd9ea4d27e10b0e6b40885c7da78c0337 (diff)
more CVSROOT/modules stuff:
- support for -i flag: Run "prog" on "cvs commit" from top-level of module. - fix some memory leaks in modules.c - pass the line number from cvs_read_config() towards the callbacks so its easier to print out where it's going wrong, if it ever does. OK tobias@
Diffstat (limited to 'usr.bin/cvs/config.h')
-rw-r--r--usr.bin/cvs/config.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/usr.bin/cvs/config.h b/usr.bin/cvs/config.h
index 8d33c4e8a1f..ac0c3390da3 100644
--- a/usr.bin/cvs/config.h
+++ b/usr.bin/cvs/config.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: config.h,v 1.6 2008/02/03 23:34:41 joris Exp $ */
+/* $OpenBSD: config.h,v 1.7 2008/02/04 19:08:32 joris Exp $ */
/*
* Copyright (c) 2006 Joris Vink <joris@openbsd.org>
*
@@ -18,13 +18,13 @@
#ifndef CONFIG_H
#define CONFIG_H
-void cvs_read_config(char *name, void (*cb)(char *));
+void cvs_read_config(char *name, void (*cb)(char *, int));
void cvs_parse_configfile(void);
void cvs_parse_modules(void);
-void config_parse_line(char *);
-void modules_parse_line(char *);
+void config_parse_line(char *, int);
+void modules_parse_line(char *, int);
#include <sys/queue.h>
#include "file.h"
@@ -38,15 +38,18 @@ void modules_parse_line(char *);
struct module_checkout {
char *mc_name;
- int mc_flags;
+ char *mc_prog;
+ int mc_flags;
int mc_canfree;
+
struct cvs_flisthead mc_modules;
struct cvs_flisthead mc_ignores;
};
struct module_info {
char *mi_name;
+ char *mi_prog;
int mi_flags;
struct cvs_flisthead mi_modules;