MakeDefs.inc README ag-char-map.h \
autoopts/usage-txt.h autoopts/options.h autoopts.c \
autoopts.h boolean.c compat/strchr.c \
- compat/windows-config.h compat/strdup.c compat/compat.h \
- compat/snprintf.c compat/pathfind.c configfile.c \
+ compat/strdup.c compat/compat.h compat/windows-config.h \
+ compat/pathfind.c compat/snprintf.c configfile.c \
cook.c enumeration.c environment.c \
file.c genshell.c genshell.h \
- load.c m4/libopts.m4 m4/liboptschk.m4 \
+ load.c m4/liboptschk.m4 m4/libopts.m4 \
makeshell.c nested.c numeric.c \
parse-duration.c parse-duration.h pgusage.c \
proto.h putshell.c reset.c \
/*
- * Character mapping generated 11/16/10 17:41:46
+ * Character mapping generated 11/18/10 11:54:12
*
* This file contains the character classifications
* used by AutoGen and AutoOpts for identifying tokens.
/**
* \file configfile.c
*
- * Time-stamp: "2010-11-07 14:43:09 bkorb"
+ * Time-stamp: "2010-11-18 08:24:46 bkorb"
*
* configuration/rc/ini file handling.
*
static char *
program_directive(tOptions * pOpts, char * pzText)
{
- char * ttl;
- size_t ttl_len = asprintf(&ttl, "<?%s", zCfgProg);
+ static char const ttlfmt[] = "<?";
+ size_t ttl_len = sizeof(ttlfmt) + strlen(zCfgProg);
+ char * ttl = AGALOC(ttl_len, "prog title");
size_t name_len = strlen(pOpts->pzProgName);
- (void) ttl_len;
+ memcpy(ttl, ttlfmt, sizeof(ttlfmt) - 1);
+ strcpy(ttl + sizeof(ttlfmt) - 1, zCfgProg);
do {
while (IS_WHITESPACE_CHAR(*++pzText)) ;
pzText = strstr(pzText, ttl);
} while (pzText != NULL);
- free(ttl);
+ AGFREE(ttl);
if (pzText != NULL)
for (;;) {
if (*pzText == NUL) {
*
* DO NOT EDIT THIS FILE (genshell.c)
*
- * It has been AutoGen-ed November 16, 2010 at 05:41:46 PM by AutoGen 5.11.2pre7
+ * It has been AutoGen-ed November 18, 2010 at 11:54:12 AM by AutoGen 5.11.2
* From the definitions genshell.def
* and the template file options
*
*
* DO NOT EDIT THIS FILE (genshell.h)
*
- * It has been AutoGen-ed November 16, 2010 at 05:41:46 PM by AutoGen 5.11.2pre7
+ * It has been AutoGen-ed November 18, 2010 at 11:54:12 AM by AutoGen 5.11.2
* From the definitions genshell.def
* and the template file options
*
/* -*- buffer-read-only: t -*- vi: set ro:
*
* Prototypes for autoopts
- * Generated Tue Nov 16 17:41:54 PST 2010
+ * Generated Thu Nov 18 11:54:20 PST 2010
*/
#ifndef AUTOOPTS_PROTO_H_GUARD
#define AUTOOPTS_PROTO_H_GUARD 1
/*
- * Generated header for gperf generated source Tue Nov 16 17:41:46 PST 2010
+ * Generated header for gperf generated source Thu Nov 18 11:54:12 PST 2010
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/
/*
- * Generated header for gperf generated source Tue Nov 16 17:41:46 PST 2010
+ * Generated header for gperf generated source Thu Nov 18 11:54:12 PST 2010
* This file enumerates the list of names and declares the
* procedure for mapping string names to the enum value.
*/