From c6961c9f888462c4ac8cc01aca54c5188ec1c898 Mon Sep 17 00:00:00 2001 From: oes Date: Tue, 14 May 2002 21:30:38 +0000 Subject: [PATCH] savearg now uses own linking code instead of (now special-cased) add_help_link --- loadcfg.c | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/loadcfg.c b/loadcfg.c index 451ba641..1d6a10eb 100644 --- a/loadcfg.c +++ b/loadcfg.c @@ -1,4 +1,4 @@ -const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.46 2002/04/26 12:55:14 oes Exp $"; +const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.47 2002/05/12 21:36:29 jongfoster Exp $"; /********************************************************************* * * File : $Source: /cvsroot/ijbswa/current/loadcfg.c,v $ @@ -35,6 +35,9 @@ const char loadcfg_rcs[] = "$Id: loadcfg.c,v 1.46 2002/04/26 12:55:14 oes Exp $" * * Revisions : * $Log: loadcfg.c,v $ + * Revision 1.47 2002/05/12 21:36:29 jongfoster + * Correcting function comments + * * Revision 1.46 2002/04/26 12:55:14 oes * - New option "user-manual", defaults to our site * via project.h #define @@ -1537,8 +1540,17 @@ static void savearg(char *command, char *argument, struct configuration_spec * c assert(*command); assert(argument); - buf = strdup(""); - string_join(&buf, add_help_link(command, config)); + /* + * Add config option name embedded in + * link to it's section in the user-manual + */ + buf = strdup("usermanual); + string_append(&buf, CONFIG_HELP_PREFIX); + string_join (&buf, string_toupper(command)); + string_append(&buf, "\">"); + string_append(&buf, command); + string_append(&buf, " "); if (NULL == buf) { -- 2.39.2