indices.h 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. /* indices.h -- Functions defined in indices.c.
  2. $Id$
  3. Copyright 1993, 1997, 2004, 2007, 2013, 2014, 2015, 2016, 2017
  4. Free Software Foundation, Inc.
  5. This program is free software: you can redistribute it and/or modify
  6. it under the terms of the GNU General Public License as published by
  7. the Free Software Foundation, either version 3 of the License, or
  8. (at your option) any later version.
  9. This program is distributed in the hope that it will be useful,
  10. but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. GNU General Public License for more details.
  13. You should have received a copy of the GNU General Public License
  14. along with this program. If not, see <http://www.gnu.org/licenses/>.
  15. Originally written by Brian Fox. */
  16. #ifndef INFO_INDICES_H
  17. #define INFO_INDICES_H
  18. /* User-visible variable controls the output of info-index-next. */
  19. extern int show_index_match;
  20. /* For every menu item in DIR, search the indices of that file for STRING. */
  21. REFERENCE **apropos_in_all_indices (char *search_string, int inform);
  22. /* User visible functions declared in indices.c. */
  23. void info_index_search (WINDOW *window, int count);
  24. void info_index_apropos (WINDOW *window, int count);
  25. REFERENCE *next_index_match (FILE_BUFFER *fb, char *string,
  26. int offset, int dir,
  27. int *found_offset, int *match_offset);
  28. void report_index_match (int i, int match_offset);
  29. REFERENCE *look_in_indices (FILE_BUFFER *fb, char *string, int sloppy);
  30. NODE *create_virtual_index (FILE_BUFFER *file_buffer, char *index_search);
  31. #define APROPOS_NONE \
  32. N_("No available info files have '%s' in their indices.")
  33. #endif /* not INFO_INDICES_H */