mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
docbook/instant: fix a few more issues
This commit is contained in:
parent
776e031b60
commit
7712950fb7
2 changed files with 8 additions and 7 deletions
|
@ -1624,11 +1624,13 @@ proc EndPart {} {
|
||||||
|
|
||||||
# check that all the glossed terms have been defined
|
# check that all the glossed terms have been defined
|
||||||
foreach name [array names currentGlossArray] {
|
foreach name [array names currentGlossArray] {
|
||||||
|
if {[info exists currentGlossArray($name)]} {
|
||||||
if {[lindex $currentGlossArray($name) 1] != "defined"} {
|
if {[lindex $currentGlossArray($name) 1] != "defined"} {
|
||||||
set glossString [lindex $currentGlossArray($name) 2]
|
set glossString [lindex $currentGlossArray($name) 2]
|
||||||
UserError "No glossary definition for \"$glossString\"" no
|
UserError "No glossary definition for \"$glossString\"" no
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
# delete this glossary array
|
# delete this glossary array
|
||||||
unset currentGlossArray
|
unset currentGlossArray
|
||||||
|
|
|
@ -376,7 +376,7 @@ static int DefaultOutputString(ClientData clientData,
|
||||||
pArgv = argv[1];
|
pArgv = argv[1];
|
||||||
stringLength = (2 * strlen(pArgv)) + 3;
|
stringLength = (2 * strlen(pArgv)) + 3;
|
||||||
|
|
||||||
string = malloc(stringLength);
|
string = Tcl_Alloc(stringLength);
|
||||||
memset(string, 0, stringLength);
|
memset(string, 0, stringLength);
|
||||||
pString = string;
|
pString = string;
|
||||||
|
|
||||||
|
@ -403,8 +403,7 @@ static int DefaultOutputString(ClientData clientData,
|
||||||
|
|
||||||
/* put the string to the output */
|
/* put the string to the output */
|
||||||
retCode = Tcl_VarEval(interpreter, "puts -nonewline ", string, 0);
|
retCode = Tcl_VarEval(interpreter, "puts -nonewline ", string, 0);
|
||||||
|
Tcl_Free(string);
|
||||||
free(string);
|
|
||||||
|
|
||||||
/* and ripple up any error code we got from the "puts" */
|
/* and ripple up any error code we got from the "puts" */
|
||||||
return retCode;
|
return retCode;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue