remove whitespace and tab

This commit is contained in:
purplerain 2024-01-23 22:23:33 +00:00
parent 85b7ec3495
commit 18e54d401d
Signed by: purplerain
GPG key ID: F42C07F07E2E35B7
84 changed files with 401 additions and 401 deletions

View file

@ -600,7 +600,7 @@ display_cursor_at_point (WINDOW *window)
terminal_goto_xy (hpos, vpos);
fflush (stdout);
}
/* **************************************************************** */
/* */
/* Functions Static to this File */

View file

@ -274,7 +274,7 @@ echo_area_prep_read (void)
display_cursor_at_point (active_window);
}
/* **************************************************************** */
/* */
/* Echo Area Movement Commands */
@ -538,7 +538,7 @@ DECLARE_INFO_COMMAND (ea_transpose_chars, _("Transpose characters at point"))
count--;
}
}
/* **************************************************************** */
/* */
/* Echo Area Killing and Yanking */
@ -755,7 +755,7 @@ ea_kill_text (int from, int to)
/* Notice that the last command was a kill. */
echo_area_last_command_was_kill++;
}
/* **************************************************************** */
/* */
/* Echo Area Completion */
@ -1373,7 +1373,7 @@ echo_area_inform_of_deleted_window (WINDOW *window)
if (window == echo_area_completions_window)
echo_area_completions_window = (WINDOW *)NULL;
}
/* **************************************************************** */
/* */
/* Pushing and Popping the Echo Area */
@ -1467,7 +1467,7 @@ echo_area_stack_contains_completions_p (void)
return (0);
}
/* **************************************************************** */
/* */
/* Error Messages While Reading in Echo Area */

View file

@ -678,7 +678,7 @@ filesys_error_string (char *filename, int error_num)
return (errmsg_buf);
}
/* Check for "dir" with all the possible info and compression suffixes,
in combination. */

View file

@ -454,7 +454,7 @@ DECLARE_INFO_COMMAND (info_next_index_match,
}
}
}
/* **************************************************************** */
/* */
/* Info APROPOS: Search every known index. */

View file

@ -159,7 +159,7 @@ info_parse_label (char *label, NODE *node)
nodeline += skip_whitespace (nodeline);
info_parse_node (nodeline, DONT_SKIP_NEWLINES);
}
/* **************************************************************** */
/* */
/* Finding and Building Menus */
@ -383,7 +383,7 @@ info_concatenate_references (REFERENCE **ref1, REFERENCE **ref2)
}
/* Copy a reference structure. Since we tend to free everything at
every opportunity, we don't share any points, but copy everything into
new memory. */
@ -401,7 +401,7 @@ info_copy_reference (REFERENCE *src)
}
/* Free the data associated with REFERENCES. */
void
info_free_references (REFERENCE **references)
@ -533,7 +533,7 @@ printed_representation (unsigned char character, int hpos)
return the_rep;
}
/* **************************************************************** */
/* */
/* Functions Static To This File */

View file

@ -138,7 +138,7 @@ int info_windows_initialized_p = 0;
static void info_short_help (void);
static void init_messages (void);
/* **************************************************************** */
/* */
/* Main Entry Point to the Info Program */
@ -540,7 +540,7 @@ add_file_directory_to_path (char *filename)
free (directory_name);
}
/* Error handling. */
/* Non-zero if an error has been signalled. */
@ -586,7 +586,7 @@ info_error (char *format, void *arg1, void *arg2)
}
}
/* Produce a scaled down description of the available options to Info. */
static void
info_short_help (void)
@ -645,7 +645,7 @@ Texinfo home page: http://www.gnu.org/software/texinfo/"));
xexit (0);
}
/* Initialize strings for gettext. Because gettext doesn't handle N_ or
_ within macro definitions, we put shared messages into variables and
use them that way. This also has the advantage that there's only one

View file

@ -90,7 +90,7 @@ typedef char *CFunction ();
} while (0)
#endif /* !zero_mem */
/* A structure associating the nodes visited in a particular window. */
typedef struct {
WINDOW *window; /* The window that this list is attached to. */
@ -148,7 +148,7 @@ extern const char *msg_one_window;
extern const char *msg_win_too_small;
extern const char *msg_cant_make_help;
#if defined(INFOKEY)
/* Found in variables.c. */
extern void set_variable_to_value (char *name, char *value);

View file

@ -557,7 +557,7 @@ DECLARE_INFO_COMMAND (info_get_info_help_node, _("Visit Info node `(info)Help'")
remember_window_and_node (active_window, node);
}
}
/* **************************************************************** */
/* */
/* Groveling Info Keymaps and Docs */

View file

@ -79,7 +79,7 @@ static void error_message (int error_code, const char *fmt,
const void *a1, const void *a2, const void *a3, const void *a4);
static void suggest_help (void);
static void short_help (void);
/* **************************************************************** */
/* */
@ -263,7 +263,7 @@ mkpath (const char *dir, const char *file)
strcat (p, file);
return p;
}
/* Compilation - the real work.
@ -865,7 +865,7 @@ write_infokey_file (FILE *fp, struct sect *sections)
&& fputc (INFOKEY_MAGIC_E2, fp) != EOF
&& fputc (INFOKEY_MAGIC_E3, fp) != EOF;
}
/* Error handling. */

View file

@ -57,7 +57,7 @@ static long get_node_length (SEARCH_BINDING *binding);
neccessary to fill in the nodes or tags arrays in FILE_BUFFER. */
#define INFO_NO_TAGS 0
#define INFO_GET_TAGS 1
/* Global variables. */
/* When non-zero, this is a string describing the recent file error. */
@ -68,7 +68,7 @@ FILE_BUFFER **info_loaded_files = NULL;
/* The number of slots currently allocated to LOADED_FILES. */
int info_loaded_files_slots = 0;
/* Public functions for node manipulation. */
/* Used to build `dir' menu from `localdir' files found in INFOPATH. */
@ -205,7 +205,7 @@ info_load_file (char *filename)
return info_load_file_internal (filename, INFO_GET_TAGS);
}
/* Private functions implementation. */
/* The workhorse for info_find_file (). Non-zero 2nd argument says to
@ -379,7 +379,7 @@ info_load_file_internal (char *filename, int get_tags)
return file_buffer;
}
/* Grovel FILE_BUFFER->contents finding tags and nodes, and filling in the
various slots. This can also be used to rebuild a tag or node table. */
void
@ -1045,7 +1045,7 @@ info_node_of_file_buffer_tags (FILE_BUFFER *file_buffer, char *nodename)
Return NULL, since this file doesn't contain the desired node. */
return NULL;
}
/* Managing file_buffers, nodes, and tags. */
/* Create a new, empty file buffer. */

View file

@ -53,7 +53,7 @@ typedef struct {
#define N_CannotGC 0x20 /* File buffer cannot be gc'ed. */
#define N_IsManPage 0x40 /* This node is a manpage. */
#define N_FromAnchor 0x80 /* Synthesized for an anchor reference. */
/* Internal data structures. */
/* String constants. */
@ -109,7 +109,7 @@ typedef struct {
int tags_slots; /* Number of slots allocated for TAGS. */
int flags; /* Various flags. Mimics of N_* flags. */
} FILE_BUFFER;
/* Externally visible functions. */
/* Array of FILE_BUFFER * which represents the currently loaded info files. */

View file

@ -343,7 +343,7 @@ pc_initialize_terminal (term_name)
terminal_write_chars_hook = pc_write_chars;
terminal_scroll_terminal_hook = pc_scroll_terminal;
}
/* **************************************************************** */
/* */
/* How to Read Characters From the PC Terminal */
@ -633,7 +633,7 @@ install_keyboard_handler (void)
}
#endif /* __DJGPP__ */
/* **************************************************************** */
/* */
/* Emulation of SIGTSTP on Ctrl-Z */
@ -715,7 +715,7 @@ kill (pid_t pid, int sig)
else
return -1;
}
/* These should never be called, but they make the linker happy. */
void tputs (char *a, int b, int (*c)())

View file

@ -60,7 +60,7 @@ copy_binding (SEARCH_BINDING *binding)
return (copy);
}
/* **************************************************************** */
/* */
/* The Actual Searching Functions */
@ -246,7 +246,7 @@ looking_at (char *string, SEARCH_BINDING *binding)
string was found at binding->start. */
return (search_end == binding->start);
}
/* **************************************************************** */
/* */
/* Small String Searches */
@ -353,7 +353,7 @@ skip_node_characters (char *string, int newlines_okay)
return (i);
}
/* **************************************************************** */
/* */
/* Searching FILE_BUFFER's */

View file

@ -498,7 +498,7 @@ info_set_node_of_window (int remember, WINDOW *window, NODE *node)
info_get_or_remove_footnotes (window);
}
/* **************************************************************** */
/* */
/* Info Movement Commands */
@ -1363,7 +1363,7 @@ DECLARE_INFO_COMMAND (info_scroll_half_screen_up,
set_window_pagetop (window, desired_top);
}
}
/* **************************************************************** */
/* */
/* Commands for Manipulating Windows */
@ -1677,7 +1677,7 @@ DECLARE_INFO_COMMAND (info_toggle_wrap,
{
window_toggle_wrap (window);
}
/* **************************************************************** */
/* */
/* Info Node Commands */
@ -1982,7 +1982,7 @@ DECLARE_INFO_COMMAND (info_menu_digit, _("Select this menu item"))
}
/* Return a pointer to the xref in XREF_LIST that is nearest to POS, or
NULL if XREF_LIST is empty. That is, if POS is within any of the
given xrefs, return that one. Otherwise, return the one with the
@ -2459,7 +2459,7 @@ DECLARE_INFO_COMMAND (info_goto_node, _("Read a node name and select it"))
if (!info_error_was_printed)
window_clear_echo_area ();
}
/* Follow the menu list in MENUS (list of strings terminated by a NULL
entry) from INITIAL_NODE. If can't continue at any point (no menu or
no menu entry for the next item), return the node so far -- that
@ -2863,7 +2863,7 @@ DECLARE_INFO_COMMAND (info_goto_invocation_node,
free (line);
free (default_program_name);
}
#if defined (HANDLE_MAN_PAGES)
DECLARE_INFO_COMMAND (info_man, _("Read a manpage reference and select it"))
{
@ -2910,7 +2910,7 @@ DECLARE_INFO_COMMAND (info_dir_node, _("Select the node `(dir)'"))
info_parse_and_select ("(dir)Top", window);
}
/* Read the name of a node to kill. The list of available nodes comes
from the nodes appearing in the current window configuration. */
static char *
@ -3084,7 +3084,7 @@ DECLARE_INFO_COMMAND (info_kill_node, _("Kill this node"))
kill_node (window, nodename);
}
/* Read the name of a file and select the entire file. */
DECLARE_INFO_COMMAND (info_view_file, _("Read the name of a file and select it"))
{
@ -3118,7 +3118,7 @@ DECLARE_INFO_COMMAND (info_view_file, _("Read the name of a file and select it")
if (!info_error_was_printed)
window_clear_echo_area ();
}
/* **************************************************************** */
/* */
/* Dumping and Printing Nodes */
@ -3355,7 +3355,7 @@ write_node_to_stream (NODE *node, FILE *stream)
{
fwrite (node->contents, 1, node->nodelen, stream);
}
/* **************************************************************** */
/* */
/* Info Searching Commands */
@ -4221,7 +4221,7 @@ info_gc_file_buffers (void)
}
}
}
/* **************************************************************** */
/* */
/* Traversing and Selecting References */
@ -4373,7 +4373,7 @@ DECLARE_INFO_COMMAND (info_select_reference_this_line,
else
info_menu_or_ref_item (window, count, key, info_xrefs_of_node, 0);
}
/* **************************************************************** */
/* */
/* Miscellaneous Info Commands */
@ -4469,7 +4469,7 @@ DECLARE_INFO_COMMAND (info_redraw_display, _("Redraw the display"))
DECLARE_INFO_COMMAND (info_quit, _("Quit using Info"))
{}
/* **************************************************************** */
/* */
/* Reading Keys and Dispatching on Them */
@ -4687,7 +4687,7 @@ info_dispatch_on_key (unsigned char key, Keymap map)
break;
}
}
/* **************************************************************** */
/* */
/* Numeric Arguments */
@ -4806,7 +4806,7 @@ DECLARE_INFO_COMMAND (info_numeric_arg_digit_loop,
key = 0;
}
}
/* **************************************************************** */
/* */
/* Input Character Buffering */

View file

@ -183,7 +183,7 @@ terminal_end_using_terminal (void)
signal (SIGWINCH, sigsave);
#endif
}
/* **************************************************************** */
/* */
/* Necessary Terminal Functions */
@ -651,7 +651,7 @@ terminal_initialize_terminal (char *terminal_name)
if (!term_goto)
terminal_is_dumb_p = 1;
}
/* How to read characters from the terminal. */
#if defined (HAVE_TERMIOS_H)

View file

@ -266,7 +266,7 @@ tilde_expand_word (char *filename)
return dirname;
}
#if defined (TEST)
#undef NULL
#include <stdio.h>

View file

@ -604,7 +604,7 @@ window_set_node_of_window (WINDOW *window, NODE *node)
window_adjust_pagetop (window);
window_make_modeline (window);
}
/* Delete WINDOW from the list of known windows. If this window was the
active window, make the next window in the chain be the active window.
If the active window is the next or previous window, choose that window
@ -1223,7 +1223,7 @@ window_set_state (WINDOW *window, SEARCH_STATE *state)
window->point = state->point;
}
/* Manipulating home-made nodes. */
/* A place to buffer echo area messages. */

View file

@ -164,7 +164,7 @@ pop (int x)
return x;
}
struct loaded_l10nfile *
_nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list,
const char *dirlist, size_t dirlist_len,
@ -359,7 +359,7 @@ _nl_make_l10nflist (struct loaded_l10nfile **l10nfile_list,
return retval;
}
/* Normalize codeset name. There is no standard for the codeset
names. Normalization allows the user to use any of the common
names. The return value is dynamically allocated and has to be

View file

@ -19,7 +19,7 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
Ditto for AIX 3.2 and <stdlib.h>. */
#ifndef _NO_PROTO
@ -117,7 +117,7 @@ int optopt = '?';
static struct _getopt_data getopt_data;
#ifndef __GNU_LIBRARY__
/* Avoid depending on library functions or files
@ -128,7 +128,7 @@ extern char *getenv ();
#endif
#endif /* not __GNU_LIBRARY__ */
#ifdef _LIBC
/* Stored original parameters.
XXX This is no good solution. We should rather copy the args so
@ -312,7 +312,7 @@ _getopt_initialize (int argc, char *const *argv, const char *optstring,
return optstring;
}
/* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING.
@ -1162,7 +1162,7 @@ getopt (int argc, char *const *argv, const char *optstring)
0);
}
#ifdef TEST
/* Compile with -DTEST to make an executable for use in testing

View file

@ -16,7 +16,7 @@
You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation,
Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@ -77,7 +77,7 @@ _getopt_long_only_r (int argc, char *const *argv, const char *options,
1, d);
}
#ifdef TEST
#include <stdio.h>

View file

@ -25,7 +25,7 @@ extern int _getopt_internal (int ___argc, char *const *___argv,
const struct option *__longopts, int *__longind,
int __long_only);
/* Reentrant versions which can handle parsing multiple argument
vectors at the same time. */

View file

@ -368,7 +368,7 @@ COMMAND command_table[] = {
{ NULL, NULL, NO_BRACE_ARGS }
};
/* The bulk of the Texinfo commands. */
/* Commands which insert their own names. */
@ -652,7 +652,7 @@ cm_comment (void)
}
/* We keep acronyms with two arguments around, to be able to refer to them
later with only one argument. */
static ACRONYM_DESC *acronyms_stack = NULL;
@ -1751,7 +1751,7 @@ cm_bye (void)
discard_braces (); /* should not have any unclosed braces left */
input_text_offset = input_text_length;
}
/* @paragraphindent */
static void

View file

@ -324,7 +324,7 @@ get_base_type (int type)
return base_type;
}
/* Make the defun type insertion.
TYPE says which insertion this is.
X_P, if nonzero, says not to start a new insertion. */

View file

@ -31,7 +31,7 @@ FSTACK *filestack = NULL;
static int node_filename_stack_index = 0;
static int node_filename_stack_size = 0;
static char **node_filename_stack = NULL;
/* Looking for include files. */
/* Given a string containing units of information separated by colons,
@ -181,7 +181,7 @@ pop_path_from_include_path (void)
free (include_files_path);
include_files_path = tmp;
}
/* Find and load the file named FILENAME. Return a pointer to
the loaded file, or NULL if it can't be loaded. If USE_PATH is zero,
just look for the given file (this is used in handle_delayed_writes),
@ -259,7 +259,7 @@ error_exit:
input_text[input_text_length+1] = 0;
return result;
}
/* Pushing and popping files. */
static void
push_node_filename (void)
@ -619,7 +619,7 @@ normalize_filename (char *fname)
return fname;
}
/* Delayed writing functions. A few of the commands
needs to be handled at the end, namely @contents,
@shortcontents, @printindex and @listoffloats.

View file

@ -39,7 +39,7 @@ int number_footnotes = 1;
/* Nonzero means we are currently outputting footnotes. */
int already_outputting_pending_notes = 0;
/* Footnotes can be handled in one of two ways:
separate_node:
@ -55,7 +55,7 @@ int already_outputting_pending_notes = 0;
int footnote_style = end_node;
int first_footnote_this_node = 1;
int footnote_count = 0;
/* Set the footnote style based on the style identifier in STRING. */
int
set_footnote_style (char *string)

View file

@ -27,7 +27,7 @@
#include "node.h"
#include "sectioning.h"
/* Append CHAR to BUFFER, (re)allocating as necessary. We don't handle
null characters. */
@ -185,7 +185,7 @@ process_css_file (char *filename)
/* We're wasting the buffer struct memory, but so what. */
return inline_text->buffer;
}
HSTACK *htmlstack = NULL;
/* See html.h. */
@ -338,7 +338,7 @@ rel=\"generator-home\" title=\"Texinfo Homepage\">\n");
free (encoding);
}
/* Escape HTML special characters in the string if necessary,
returning a pointer to a possibly newly-allocated one. */
char *
@ -401,7 +401,7 @@ escape_string (char *string)
free (string);
return newstring - newlen;
}
/* Save current tag. */
static void
push_tag (char *tag, char *attribs)
@ -577,7 +577,7 @@ insert_html_tag (int start_or_end, char *tag)
{
insert_html_tag_with_attribute (start_or_end, tag, NULL);
}
/* Output an HTML <link> to the filename for NODE, including the
other string as extra attributes. */
void

View file

@ -52,7 +52,7 @@ int (*index_compare_fn) (const char *a, const char *b) = strcasecmp;
/* Function to compare index entries for sorting. (Calls
`index_compare_fn' above.) */
int index_element_compare (const void *element1, const void *element2);
/* Find which element in the known list of indices has this name.
Returns -1 if NAME isn't found. */
static int
@ -76,7 +76,7 @@ find_index (char *name)
else
return NULL;
}
/* User-defined commands, which happens only from user-defined indexes.
Used to initialize the builtin indices, too. */
static void
@ -96,7 +96,7 @@ define_user_command (char *name, COMMAND_FUNCTION (*proc), int needs_braces_p)
user_command_array[slot]->proc = proc;
user_command_array[slot]->argument_in_braces = needs_braces_p;
}
/* Please release me, let me go... */
static void
free_index (INDEX_ELT *index)
@ -137,7 +137,7 @@ undefindex (char *name)
free (name_index_alist[which]);
name_index_alist[which] = NULL;
}
/* Add the arguments to the current index command to the index NAME. */
static void
index_add_arg (char *name)
@ -271,7 +271,7 @@ gen_index (void)
index_add_arg (name);
free (name);
}
/* Define an index known as NAME. We assign the slot number.
If CODE is nonzero, make this a code index. */
static void
@ -325,7 +325,7 @@ top_defindex (char *name, int code)
defindex (name, code);
free (temp);
}
/* Set up predefined indices. */
void
init_indices (void)

View file

@ -79,7 +79,7 @@ static int raw_output_block = 0;
/* Non-zero if a <dl> element has a <dt> element in it. We use this when
deciding whether to insert a <br> or not. */
static int html_deflist_has_term = 0;
void
init_insertion_stack (void)
{
@ -399,7 +399,7 @@ enum_html (void)
add_html_block_elt_args ("<ol type=%c start=%d>\n", type, start);
}
/* Conditionally parse based on the current command name. */
void
command_name_condition (void)
@ -1341,7 +1341,7 @@ discard_insertions (int specials_ok)
}
line_number = real_line_number;
}
/* Insertion (environment) commands. */
void
@ -1738,7 +1738,7 @@ cm_group (void)
{
begin_insertion (group);
}
/* Insert raw HTML (no escaping of `<' etc.). */
void
cm_html (int arg)
@ -1887,7 +1887,7 @@ cm_ifnotxml (void)
command_name_condition ();
}
/* Generic xrefable block with a caption. */
void
cm_float (void)
@ -1964,7 +1964,7 @@ cm_detailmenu (void)
}
begin_insertion (detailmenu);
}
/* Title page commands. */
void
@ -2081,7 +2081,7 @@ cm_end (void)
end_insertion (type);
free (temp);
}
/* @itemx, @item. */
static int itemx_flag = 0;

View file

@ -142,7 +142,7 @@ static iso_map_type iso8859_1_map [] = {
{ NULL, 0, 0 }
};
/* ISO 8859-15, also known as Latin 9, differs from Latin 1 in only a
few positions. http://www.cs.tut.fi/~jkorpela/latin9.html has a good
explanation and listing, summarized here. The names are abbreviated
@ -263,7 +263,7 @@ static iso_map_type iso8859_15_map [] = {
};
/* Date: Mon, 31 Mar 2003 00:19:28 +0200
From: Wojciech Polak <polak@gnu.org>
...
@ -548,7 +548,7 @@ language_type language_table[] = {
{ zu, "zu", "Zulu" },
{ last_language_code, NULL, NULL }
};
/* @documentlanguage. Maybe we'll do something useful with this in the
future. For now, we just recognize it. */
@ -589,7 +589,7 @@ cm_documentlanguage (void)
}
/* Search through the encoding table for the given character, returning
its equivalent. */
@ -721,7 +721,7 @@ add_encoded_char (char *html_str, char *info_str)
}
/* Output an accent for HTML or XML. */
static void
@ -832,7 +832,7 @@ cm_accent_generic_no_headers (int arg, int start, int end, int single,
}
/* Accent commands that take explicit arguments and don't have any
special HTML support. */
@ -940,7 +940,7 @@ cm_accent_tilde (int arg, int start, int end)
}
/* Non-English letters/characters that don't insert themselves. */
void
cm_special_char (int arg)

View file

@ -72,7 +72,7 @@ typedef struct
extern language_type language_table[];
/* The document encoding. This is useful to produce true 8-bit
characters according to the @documentencoding. */
@ -127,7 +127,7 @@ typedef struct
/* Table with all the encoding codes that we recognize. */
extern encoding_type encoding_table[];
/* The commands. */
extern void cm_documentlanguage (void),
cm_documentencoding (void);

View file

@ -52,7 +52,7 @@ MACRO_DEF **macro_list = NULL;
int macro_list_len = 0; /* Number of elements. */
int macro_list_size = 0; /* Number of slots in total. */
/* Return the length of the array in ARRAY. */
int
array_len (char **array)
@ -77,7 +77,7 @@ free_array (char **array)
free (array);
}
}
/* Return the macro definition of NAME or NULL if NAME is not defined. */
MACRO_DEF *
find_macro (char *name)
@ -447,7 +447,7 @@ execute_macro (MACRO_DEF *def)
}
}
/* Read and remember the definition of a macro. If RECURSIVE is set,
set the ME_RECURSE flag. MACTYPE is either "macro" or "rmacro", and
tells us what the matching @end should be. */
@ -710,7 +710,7 @@ cm_rmacro (void)
{
define_macro ("rmacro", 1);
}
/* Delete the macro with name NAME. The macro is deleted from the list,
but it is also returned. If there was no macro defined, NULL is
returned. */
@ -778,7 +778,7 @@ cm_unmacro (void)
if (macro_expansion_output_stream && !executing_string)
remember_itext (input_text, input_text_offset);
}
/* How to output sections of the input file verbatim. */
/* Set the value of POINTER's offset to OFFSET. */
@ -976,7 +976,7 @@ write_region_to_macro_output (char *string, int start, int end)
if (macro_expansion_output_stream)
fwrite (string + start, 1, end - start, macro_expansion_output_stream);
}
/* Aliases. */
typedef struct alias_struct
@ -1024,7 +1024,7 @@ alias_expand (char *tok)
return tok;
}
/* definfoenclose implementation. */
/* This structure is used to track enclosure macros. When an enclosure

View file

@ -31,14 +31,14 @@
/* Hardcoded per GNU standards, not dependent on argv[0]. */
DECLARE (char *, progname, "makeinfo");
/* Nonzero means a string is in execution, as opposed to a file. */
DECLARE (int, executing_string, 0);
/* Nonzero means to inhibit writing macro expansions to the output
stream, because it has already been written. */
DECLARE (int, me_inhibit_expansion, 0);
/* Current output stream. */
DECLARE (FILE *, output_stream, NULL);
@ -175,14 +175,14 @@ DECLARE (int, input_text_offset, 0);
DECLARE (int, line_number, 0);
DECLARE (char *, toplevel_output_filename, NULL);
#define curchar() input_text[input_text_offset]
/* A colon separated list of directories to search for files included
with @include. This can be controlled with the `-I' option to makeinfo. */
DECLARE (char *, include_files_path, NULL);
/* The filename of the current input file. This is never freed. */
DECLARE (char *, node_filename, NULL);
/* Name of CSS file to include, if any. (--css-include). */
DECLARE (char *, css_include, NULL);
@ -235,7 +235,7 @@ DECLARE (int, split_size, 0);
like @@ and @value inconsistently in node names, but will slow
the program by about 80%. You HAVE been warned. */
DECLARE (int, expensive_validation, 0);
/* C's standard macros don't check to make sure that the characters being
changed are within range. So I have to check explicitly. */

View file

@ -29,7 +29,7 @@
#define MAXCOLS 100 /* remove this limit later @@ */
/*
* Output environments. This is a hack grafted onto existing
* structure. The "output environment" used to consist of the
@ -84,7 +84,7 @@ static int hsep, vsep;
/* whether this is the first row. */
static int first_row;
/* Called to handle a {...} template on the @multitable line.
We're at the { and our first job is to find the matching }; as a side
effect, we change *PARAMS to point to after it. Our other job is to
@ -314,7 +314,7 @@ draw_horizontal_separator (void)
out_char ('\n');
}
/* multitable strategy:
for each item {
for each column in an item {
@ -396,7 +396,7 @@ nselect_next_environment (void)
select_output_environment (current_env_no + 1);
}
/* do anything needed at the beginning of processing a
multitable column. */
static void

View file

@ -39,7 +39,7 @@ int node_number = -1;
int node_order = 0;
int current_section = 0;
int outstanding_node = 0;
/* Adding nodes, and making tags. */
/* Start a new tag table. */
@ -57,7 +57,7 @@ init_tag_table (void)
free (temp);
}
}
/* Write out the contents of the existing tag table.
INDIRECT_P says how to format the output (it depends on whether the
table is direct or indirect). */
@ -132,7 +132,7 @@ write_tag_table_indirect (void)
{
write_tag_table_internal (1);
}
/* Convert "top" and friends into "Top". */
static void
normalize_node_name (char *string)
@ -528,7 +528,7 @@ add_html_names (char *node)
free (tem);
}
/* The order is: nodename, nextnode, prevnode, upnode.
If all of the NEXT, PREV, and UP fields are empty, they are defaulted.
You must follow a node command which has those fields defaulted
@ -1229,7 +1229,7 @@ cm_anchor (int arg)
output_position + output_paragraph_offset,
line_number, fname_for_anchor, TAG_FLAG_ANCHOR);
}
/* Find NODE in REF_LIST. */
static NODE_REF *
find_node_reference (char *node, NODE_REF *ref_list)
@ -1321,7 +1321,7 @@ number_of_node (char *node)
else
return 0;
}
/* validation */
/* Return 1 if TAG (at LINE) correctly validated, or 0 if not.
@ -1636,7 +1636,7 @@ validate_file (TAG_ENTRY *tag_table)
input_filename = old_input_filename;
}
/* Splitting */
/* Return true if the tag entry pointed to by TAGS is the last node.

View file

@ -56,7 +56,7 @@ typedef struct tentry
#define TAG_FLAG_NO_WARN 8
#define TAG_FLAG_IS_TOP 16
#define TAG_FLAG_ANCHOR 32
/* Menu reference, *note reference, and validation hacking. */
/* A structure to remember references with. A reference to a node is
@ -97,7 +97,7 @@ extern int current_section;
/* Nonzero when the next sectioning command should generate an anchor
corresponding to the current node in HTML mode. */
extern int outstanding_node;
extern TAG_ENTRY *find_node (char *name);
/* A search string which is used to find a line defining a node. */

View file

@ -57,7 +57,7 @@ section_alist_type section_alist[] = {
{ "top", 1, ENUM_SECT_NO, TOC_YES },
{ NULL, 0, 0, 0 }
};
/* The argument of @settitle, used for HTML. */
char *title = NULL;
@ -88,7 +88,7 @@ static int section_alist_offset = 0;
static char *last_sectioning_number = "";
/* Last title used by sectioning_underscore, etc. */
static char *last_sectioning_title = "";
/* num == ENUM_SECT_NO means unnumbered (should never call this)
num == ENUM_SECT_YES means numbered
num == ENUM_SECT_APP means numbered like A.1 and so on */
@ -599,7 +599,7 @@ sectioning_html (int level, char *cmd)
no_indent = old_no_indent;
}
/* Shift the meaning of @section to @chapter. */
void
cm_raisesections (void)
@ -625,7 +625,7 @@ cm_ideprecated (int arg, int start, int end)
sectioning_underscore (command + 1);
}
/* Treat this just like @unnumbered. The only difference is
in node defaulting. */
void

View file

@ -37,7 +37,7 @@ static TOC_ENTRY_ELT **toc_entry_alist = NULL;
/* toc_counter start from 0 ... n for every @chapter, @section ... */
static int toc_counter = 0;
/* Routine to add an entry to the table of contents */
int
toc_add_entry (char *tocname, int level, char *node_name, char *anchor)
@ -179,7 +179,7 @@ toc_free (void)
toc_counter = 0; /* to be absolutley sure ;-) */
}
}
/* Print table of contents in HTML. */
static void

View file

@ -557,7 +557,7 @@ static int in_table_title = 0;
static int in_indexentry = 0;
static int in_secondary = 0;
static int in_indexterm = 0;
char *
xml_id (char *id)
{
@ -650,7 +650,7 @@ xml_begin_document (char *output_filename)
}
}
/* */
/* */
static int element_stack[256];
static int element_stack_index = 0;

View file

@ -31,7 +31,7 @@ void insert_entry_here (struct spec_entry *entry, int line_number,
struct line_data *dir_lines, int n_entries);
int compare_section_names (const void *s1, const void *s2);
int compare_entries_text (const void *e1, const void *e2);
/* Data structures. */
@ -113,7 +113,7 @@ struct menu_section
/* Line number of end of section. */
int end_line;
};
/* This table defines all the long-named options, says whether they
use an argument, and maps them into equivalent single-letter options. */
@ -133,7 +133,7 @@ struct option longopts[] =
{ "version", no_argument, NULL, 'V' },
{ 0 }
};
/* Error message functions. */
/* Print error message. S1 is printf control string, S2 and S3 args for it. */
@ -164,7 +164,7 @@ fatal (const char *s1, const char *s2, const char *s3)
error (s1, s2, s3);
xexit (1);
}
/* Return a newly-allocated string
whose contents concatenate those of S1, S2, S3. */
char *
@ -203,7 +203,7 @@ pfatal_with_name (const char *name)
char *s = concat ("", strerror (errno), _(" for %s"));
fatal (s, name, 0);
}
/* Compare the menu item names in LINE1 (line length LEN1)
and LINE2 (line length LEN2). Return 1 if the item name
in LINE1 is less, 0 otherwise. */
@ -257,7 +257,7 @@ menu_line_equal (char *line1, int len1, char *line2, int len2)
return 1;
}
/* Given the full text of a menu entry, null terminated,
return just the menu item name (copied). */
@ -319,7 +319,7 @@ extract_menu_file_name (char *item_text)
}
/* Return FNAME with any [.info][.gz] suffix removed. */
static char *
@ -419,7 +419,7 @@ menu_item_equal (const char *item, char term_char, const char *name)
}
void
suggest_asking_for_help (void)
{
@ -469,7 +469,7 @@ general questions and discussion to help-texinfo@gnu.org.\n\
Texinfo home page: http://www.gnu.org/software/texinfo/"));
}
/* If DIRFILE does not exist, create a minimal one (or abort). If it
already exists, do nothing. */
@ -518,7 +518,7 @@ The first time you invoke Info you start off looking at this node.\n\
else
close (desc); /* It already existed, so fine. */
}
/* Open FILENAME and return the resulting stream pointer. If it doesn't
exist, try FILENAME.gz. If that doesn't exist either, call
CREATE_CALLBACK (with FILENAME as arg) to create it, if that is
@ -652,7 +652,7 @@ open_possibly_compressed_file (char *filename,
return f;
}
/* Read all of file FILENAME into memory and return the address of the
data. Store the size of the data into SIZEP. If need be, uncompress
(i.e., try FILENAME.gz et al. if FILENAME does not exist) and store
@ -708,7 +708,7 @@ readfile (char *filename, int *sizep,
*sizep = filled;
return data;
}
/* Output the old dir file, interpolating the new sections
and/or new entries where appropriate. If COMPRESSION_PROGRAM is not
null, pipe to it to create DIRFILE. Thus if we read dir.gz on input,
@ -842,7 +842,7 @@ output_dirfile (char *dirfile, int dir_nlines, struct line_data *dir_lines,
else
fclose (output);
}
/* Parse the input to find the section names and the entry names it
specifies. Return the number of entries to add from this file. */
int
@ -1457,7 +1457,7 @@ For more information about these matters, see the files named COPYING.\n"));
xexit (0);
return 0; /* Avoid bogus warnings. */
}
/* Divide the text at DATA (of SIZE bytes) into lines.
Return a vector of struct line_data describing the lines.
Store the length of that vector into *NLINESP. */
@ -1507,7 +1507,7 @@ findlines (char *data, int size, int *nlinesp)
*nlinesp = filled;
return lines;
}
/* This is the comparison function for qsort for a vector of pointers to
struct spec_section. (Have to use const void * as the parameter type
to avoid incompatible-with-qsort warnings.)

View file

@ -153,7 +153,7 @@ done
arg_sep="$$--$$"
set dummy ${1+"$@"} "$arg_sep"; shift
#
#
# Parse command line arguments.
while test x"$1" != x"$arg_sep"; do
@ -363,7 +363,7 @@ else
exec 6>/dev/null
fi
#
#
# TeXify files.
for command_line_filename in ${1+"$@"}; do

View file

@ -146,7 +146,7 @@ void error (const char *format, const char *arg);
void *xmalloc (), *xrealloc ();
char *concat (char *s1, char *s2);
void flush_tempfiles (int to_count);
#define MAX_IN_CORE_SORT 500000
int
@ -239,7 +239,7 @@ main (int argc, char **argv)
xexit (0);
return 0; /* Avoid bogus warnings. */
}
typedef struct
{
char *long_name;
@ -386,7 +386,7 @@ For more information about these matters, see the files named COPYING.\n"));
if (num_infiles == 0)
usage (1);
}
/* Return a name for temporary file COUNT. */
static char *
@ -432,7 +432,7 @@ flush_tempfiles (int to_count)
unlink (maketempname (++last_deleted_tempcount));
}
/* Compare LINE1 and LINE2 according to the specified set of keyfields. */
int
@ -814,7 +814,7 @@ compare_field (struct keyfield *keyfield, char *start1, long int length1,
return 0;
}
}
/* A `struct linebuffer' is a structure which holds a line of text.
`readline' reads a line from a stream into a linebuffer
and works regardless of the length of the line. */
@ -864,7 +864,7 @@ readline (struct linebuffer *linebuffer, FILE *stream)
return p - buffer;
}
/* Sort an input file too big to sort in core. */
void
@ -961,7 +961,7 @@ fail:
merge_files (tempfiles, ntemps, outfile);
}
/* Sort INFILE, whose size is TOTAL,
assuming that is small enough to be done in-core,
then indexify it and send the output to OUTFILE (or to stdout). */
@ -1077,7 +1077,7 @@ sort_in_core (char *infile, int total, char *outfile)
free (linearray);
free (data);
}
/* Parse an input string in core into lines.
DATA is the input string, and SIZE is its length.
Data goes in LINEARRAY starting at NEXTLINE.
@ -1133,7 +1133,7 @@ parsefile (char *filename, char **nextline, char *data, long int size)
return line;
}
/* Indexification is a filter applied to the sorted lines
as they are being written to the output file.
Multiple entries for the same name, with different page numbers,
@ -1349,7 +1349,7 @@ finish_index (FILE *ostream)
free (lastprimary);
free (lastsecondary);
}
/* Copy the lines in the sorted order.
Each line is copied out of the input file it was found in. */
@ -1385,7 +1385,7 @@ writelines (char **linearray, int nlines, FILE *ostream)
finish_index (ostream);
}
/* Assume (and optionally verify) that each input file is sorted;
merge them and output the result.
Returns nonzero if any input file fails to be sorted.
@ -1436,7 +1436,7 @@ merge_files (char **infiles, int nfiles, char *outfile)
return value;
}
/* Assume (and optionally verify) that each input file is sorted;
merge them and output the result.
Returns nonzero if any input file fails to be sorted.
@ -1596,7 +1596,7 @@ merge_direct (char **infiles, int nfiles, char *outfile)
return lossage;
}
/* Print error message and exit. */
void
@ -1630,7 +1630,7 @@ pfatal_with_name (const char *name)
xexit (1);
}
/* Return a newly-allocated string concatenating S1 and S2. */
char *