From a0b9240664bddddeedb1798fffa69d36acef975d Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Mon, 4 Feb 2008 19:08:33 +0000 Subject: 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@ --- usr.bin/cvs/config.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'usr.bin/cvs/config.h') 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 * @@ -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 #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; -- cgit v1.2.3