diff options
Diffstat (limited to 'contrib/texinfo/info/info-utils.h')
-rw-r--r-- | contrib/texinfo/info/info-utils.h | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/contrib/texinfo/info/info-utils.h b/contrib/texinfo/info/info-utils.h index 879587c..24cc482 100644 --- a/contrib/texinfo/info/info-utils.h +++ b/contrib/texinfo/info/info-utils.h @@ -1,10 +1,7 @@ -/* info-utils.h -- Exported functions and variables from info-util.c. - $Id: info-utils.h,v 1.3 1997/07/15 18:42:20 karl Exp $ +/* info-utils.h -- Exported functions and variables from info-utils.c. + $Id: info-utils.h,v 1.5 1998/08/10 18:07:28 karl Exp $ - This file is part of GNU Info, a program for reading online documentation - stored in Info format. - - Copyright (C) 1993, 96 Free Software Foundation, Inc. + Copyright (C) 1993, 96, 98 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 @@ -25,13 +22,6 @@ #ifndef INFO_UTILS_H #define INFO_UTILS_H -#if !defined (HAVE_STRCHR) -# undef strchr -# undef strrchr -# define strchr index -# define strrchr rindex -#endif /* !HAVE_STRCHR */ - #include "nodes.h" #include "window.h" #include "search.h" @@ -118,22 +108,22 @@ extern void name_internal_node (); Info window. */ extern WINDOW *get_internal_info_window (); +/* Return a window displaying the node NODE. */ +extern WINDOW *get_window_of_node (); + /* Return the node addressed by LABEL in NODE (usually one of "Prev:", "Next:", "Up:", "File:", or "Node:". After a call to this function, - the global INFO_PARSED_NODENAME and INFO_PARSED_FILENAME contain + the globals `info_parsed_nodename' and `info_parsed_filename' contain the information. */ extern void info_parse_label (/* label, node */); -#define info_label_was_found \ - (info_parsed_nodename != NULL || info_parsed_filename != NULL) - #define info_file_label_of_node(n) info_parse_label (INFO_FILE_LABEL, n) #define info_next_label_of_node(n) info_parse_label (INFO_NEXT_LABEL, n) #define info_up_label_of_node(n) info_parse_label (INFO_UP_LABEL, n) #define info_prev_label_of_node(n) \ do { \ info_parse_label (INFO_PREV_LABEL, n); \ - if (!info_label_was_found) \ + if (!info_parsed_nodename && !info_parsed_filename) \ info_parse_label (INFO_ALTPREV_LABEL, n); \ } while (0) |