summaryrefslogtreecommitdiffstats
path: root/contrib/texinfo/info/footnotes.c
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/texinfo/info/footnotes.c')
-rw-r--r--contrib/texinfo/info/footnotes.c25
1 files changed, 13 insertions, 12 deletions
diff --git a/contrib/texinfo/info/footnotes.c b/contrib/texinfo/info/footnotes.c
index 7abb8a6..c8cd7b5 100644
--- a/contrib/texinfo/info/footnotes.c
+++ b/contrib/texinfo/info/footnotes.c
@@ -1,7 +1,8 @@
/* footnotes.c -- Some functions for manipulating footnotes.
- $Id: footnotes.c,v 1.2 2002/11/06 00:41:17 karl Exp $
+ $Id: footnotes.c,v 1.4 2004/04/11 17:56:45 karl Exp $
- Copyright (C) 1993, 1997, 1998, 1999, 2002 Free Software Foundation, Inc.
+ Copyright (C) 1993, 1997, 1998, 1999, 2002, 2004 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 +18,7 @@
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
- Written by Brian Fox (bfox@ai.mit.edu). */
+ Originally written by Brian Fox (bfox@ai.mit.edu). */
#include "info.h"
@@ -26,12 +27,14 @@ int auto_footnotes_p = 0;
static char *footnote_nodename = "*Footnotes*";
+NODE * make_footnotes_node (NODE *node);
+
#define FOOTNOTE_HEADER_FORMAT \
- "*** Footnotes appearing in the node \"%s\" ***\n"
+ "*** Footnotes appearing in the node `%s' ***\n"
/* Find the window currently showing footnotes. */
static WINDOW *
-find_footnotes_window ()
+find_footnotes_window (void)
{
WINDOW *win;
@@ -48,8 +51,7 @@ find_footnotes_window ()
return the manufactured node. If NODE has no footnotes, return a
NULL pointer. */
NODE *
-make_footnotes_node (node)
- NODE *node;
+make_footnotes_node (NODE *node)
{
NODE *fn_node, *result = (NODE *)NULL;
long fn_start;
@@ -160,8 +162,7 @@ make_footnotes_node (node)
in WINDOW's node. Returns FN_UNABLE if there were footnotes, but the
window to show them couldn't be made. */
int
-info_get_or_remove_footnotes (window)
- WINDOW *window;
+info_get_or_remove_footnotes (WINDOW *window)
{
WINDOW *fn_win;
NODE *new_footnotes;
@@ -209,7 +210,7 @@ info_get_or_remove_footnotes (window)
/* If we are hacking automatic footnotes, and there are footnotes
but we couldn't display them, print a message to that effect. */
if (auto_footnotes_p)
- inform_in_echo_area (_("Footnotes could not be displayed"));
+ inform_in_echo_area ((char *) _("Footnotes could not be displayed"));
return (FN_UNABLE);
}
}
@@ -256,11 +257,11 @@ DECLARE_INFO_COMMAND (info_show_footnotes,
switch (result)
{
case FN_UNFOUND:
- info_error (msg_no_foot_node);
+ info_error ((char *) msg_no_foot_node, NULL, NULL);
break;
case FN_UNABLE:
- info_error (msg_win_too_small);
+ info_error ((char *) msg_win_too_small, NULL, NULL);
break;
}
}
OpenPOWER on IntegriCloud