summaryrefslogtreecommitdiff
path: root/info/footnotes.c
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2013-09-26 23:06:02 +0000
committer <>2015-02-03 11:56:22 +0000
commite0b511b834f3529395df67126a7314097c2cf97e (patch)
tree89945ae53183ab2acdc61659c8b0b3e57e4a1f3a /info/footnotes.c
parent2d8ae7b161658c4a589172db0072fc99f76fa979 (diff)
downloadtexinfo-tarball-master.tar.gz
Imported from /home/lorry/working-area/delta_texinfo-tarball/texinfo-5.2.tar.xz.HEADtexinfo-5.2master
Diffstat (limited to 'info/footnotes.c')
-rw-r--r--info/footnotes.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/info/footnotes.c b/info/footnotes.c
index 552ae2a..451177b 100644
--- a/info/footnotes.c
+++ b/info/footnotes.c
@@ -1,8 +1,8 @@
/* footnotes.c -- Some functions for manipulating footnotes.
- $Id: footnotes.c,v 1.9 2008/06/11 09:55:42 gray Exp $
+ $Id: footnotes.c 5338 2013-08-22 17:58:30Z karl $
- Copyright (C) 1993, 1997, 1998, 1999, 2002, 2004, 2007,
- 2008 Free Software Foundation, Inc.
+ Copyright 1993, 1997, 1998, 1999, 2002, 2004, 2007, 2008, 2011, 2013
+ Free Software Foundation, Inc.
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -17,7 +17,7 @@
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
- Originally written by Brian Fox (bfox@ai.mit.edu). */
+ Originally written by Brian Fox. */
#include "info.h"
@@ -60,8 +60,7 @@ make_footnotes_node (NODE *node)
fn_node = node;
/* See if this node contains the magic footnote label. */
- fn_start =
- info_search_in_node (FOOTNOTE_LABEL, node, 0, NULL, 1, 0);
+ fn_start = info_search_in_node (FOOTNOTE_LABEL, node, 0, NULL, 1, 0, 0);
/* If it doesn't, check to see if it has an associated footnotes node. */
if (fn_start == -1)
@@ -96,7 +95,7 @@ make_footnotes_node (NODE *node)
if (!filename)
filename = node->filename;
- fn_node = info_get_node (filename, refname);
+ fn_node = info_get_node (filename, refname, PARSE_NODE_DFLT);
if (fn_node)
fn_start = 0;
@@ -256,11 +255,11 @@ DECLARE_INFO_COMMAND (info_show_footnotes,
switch (result)
{
case FN_UNFOUND:
- info_error (msg_no_foot_node, NULL, NULL);
+ info_error ("%s", msg_no_foot_node);
break;
case FN_UNABLE:
- info_error (msg_win_too_small, NULL, NULL);
+ info_error ("%s", msg_win_too_small);
break;
}
}