Massive whitespace cleanup.

Lots of trailing whitespace and otherwise blank lines.
This commit is contained in:
Bill Currie 2012-05-22 08:23:22 +09:00
parent 01773c7cd3
commit 23a38738fc
254 changed files with 1793 additions and 1793 deletions

View file

@ -135,7 +135,7 @@ typedef unsigned reg_syntax_t;
stored in the pattern buffer, so changing this does not affect stored in the pattern buffer, so changing this does not affect
already-compiled regexps. */ already-compiled regexps. */
extern reg_syntax_t re_syntax_options; extern reg_syntax_t re_syntax_options;
/* Define combinations of the above bits for the standard possibilities. /* Define combinations of the above bits for the standard possibilities.
(The [[[ comments delimit what gets put into the Texinfo file, so (The [[[ comments delimit what gets put into the Texinfo file, so
don't delete them!) */ don't delete them!) */
@ -198,7 +198,7 @@ extern reg_syntax_t re_syntax_options;
| RE_NO_BK_PARENS | RE_NO_BK_REFS \ | RE_NO_BK_PARENS | RE_NO_BK_REFS \
| RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD) | RE_NO_BK_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD)
/* [[[end syntaxes]]] */ /* [[[end syntaxes]]] */
/* Maximum number of duplicates an interval can allow. Some systems /* Maximum number of duplicates an interval can allow. Some systems
(erroneously) define this in other header files, but we want our (erroneously) define this in other header files, but we want our
value, so remove any previous define. */ value, so remove any previous define. */
@ -268,7 +268,7 @@ typedef enum
REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */ REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */
REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */ REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */
} reg_errcode_t; } reg_errcode_t;
/* This data structure represents a compiled pattern. Before calling /* This data structure represents a compiled pattern. Before calling
the pattern compiler, the fields `buffer', `allocated', `fastmap', the pattern compiler, the fields `buffer', `allocated', `fastmap',
`translate', and `no_sub' can be set. After the pattern has been `translate', and `no_sub' can be set. After the pattern has been
@ -349,7 +349,7 @@ typedef struct re_pattern_buffer regex_t;
/* search.c (search_buffer) in Emacs needs this one opcode value. It is /* search.c (search_buffer) in Emacs needs this one opcode value. It is
defined both in `regex.c' and here. */ defined both in `regex.c' and here. */
#define RE_EXACTN_VALUE 1 #define RE_EXACTN_VALUE 1
/* Type for byte offsets within the string. POSIX mandates this. */ /* Type for byte offsets within the string. POSIX mandates this. */
typedef int regoff_t; typedef int regoff_t;
@ -380,7 +380,7 @@ typedef struct
regoff_t rm_so; /* Byte offset from string's start to substring's start. */ regoff_t rm_so; /* Byte offset from string's start to substring's start. */
regoff_t rm_eo; /* Byte offset from string's start to substring's end. */ regoff_t rm_eo; /* Byte offset from string's start to substring's end. */
} regmatch_t; } regmatch_t;
/* Declarations for routines. */ /* Declarations for routines. */
/* To avoid duplicating every routine declaration -- once with a /* To avoid duplicating every routine declaration -- once with a
@ -480,7 +480,7 @@ extern size_t regerror
extern void regfree _RE_ARGS ((regex_t *preg)); extern void regfree _RE_ARGS ((regex_t *preg));
#endif /* not __REGEXP_LIBRARY_H__ */ #endif /* not __REGEXP_LIBRARY_H__ */
/* /*
Local variables: Local variables:
make-backup-files: t make-backup-files: t

View file

@ -128,7 +128,7 @@ init_syntax_once (void)
#define SYNTAX(c) re_syntax_table[c] #define SYNTAX(c) re_syntax_table[c]
#endif /* not emacs */ #endif /* not emacs */
/* Get the interface, including the syntax bits. */ /* Get the interface, including the syntax bits. */
#include "regex.h" #include "regex.h"
@ -176,7 +176,7 @@ init_syntax_once (void)
/* As in Harbison and Steele. */ /* As in Harbison and Steele. */
#define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128) #define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128)
#endif #endif
/* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we /* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we
use `alloca' instead of `malloc'. This is because using malloc in use `alloca' instead of `malloc'. This is because using malloc in
re_search* or re_match* could cause memory leaks when C-g is used in re_search* or re_match* could cause memory leaks when C-g is used in
@ -246,7 +246,7 @@ char *alloca ();
typedef char boolean; typedef char boolean;
#define false 0 #define false 0
#define true 1 #define true 1
/* These are the command codes that appear in compiled regular /* These are the command codes that appear in compiled regular
expressions. Some opcodes are followed by argument bytes. A expressions. Some opcodes are followed by argument bytes. A
command code can specify any interpretation whatsoever for its command code can specify any interpretation whatsoever for its
@ -386,7 +386,7 @@ typedef enum
notsyntaxspec notsyntaxspec
#endif /* emacs */ #endif /* emacs */
} re_opcode_t; } re_opcode_t;
/* Common operations on the compiled pattern. */ /* Common operations on the compiled pattern. */
/* Store NUMBER in two contiguous bytes starting at DESTINATION. */ /* Store NUMBER in two contiguous bytes starting at DESTINATION. */
@ -460,7 +460,7 @@ extract_number_and_incr (destination, source)
#endif /* not EXTRACT_MACROS */ #endif /* not EXTRACT_MACROS */
#endif /* DEBUG */ #endif /* DEBUG */
/* If DEBUG is defined, Regex prints many voluminous messages about what /* If DEBUG is defined, Regex prints many voluminous messages about what
it is doing (if the variable `debug' is nonzero). If linked with the it is doing (if the variable `debug' is nonzero). If linked with the
main program in `iregex.c', you can enter patterns and strings main program in `iregex.c', you can enter patterns and strings
@ -800,7 +800,7 @@ print_double_string (where, string1, size1, string2, size2)
#define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2) #define DEBUG_PRINT_DOUBLE_STRING(w, s1, sz1, s2, sz2)
#endif /* not DEBUG */ #endif /* not DEBUG */
/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can /* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
also be assigned to arbitrarily: each pattern buffer stores its own also be assigned to arbitrarily: each pattern buffer stores its own
syntax, so it can be changed between regex compilations. */ syntax, so it can be changed between regex compilations. */
@ -823,7 +823,7 @@ re_set_syntax (syntax)
re_syntax_options = syntax; re_syntax_options = syntax;
return ret; return ret;
} }
/* This table gives an error message for each of the error codes listed /* This table gives an error message for each of the error codes listed
in regex.h. Obviously the order here has to be same as there. */ in regex.h. Obviously the order here has to be same as there. */
@ -846,7 +846,7 @@ static const char *re_error_msg[] =
"Regular expression too big", /* REG_ESIZE */ "Regular expression too big", /* REG_ESIZE */
"Unmatched ) or \\)", /* REG_ERPAREN */ "Unmatched ) or \\)", /* REG_ERPAREN */
}; };
/* Subroutine declarations and macros for regex_compile. */ /* Subroutine declarations and macros for regex_compile. */
@ -1049,7 +1049,7 @@ typedef struct compile_stack_elt_t
|| STREQ (string, "space") || STREQ (string, "print") \ || STREQ (string, "space") || STREQ (string, "print") \
|| STREQ (string, "punct") || STREQ (string, "graph") \ || STREQ (string, "punct") || STREQ (string, "graph") \
|| STREQ (string, "cntrl") || STREQ (string, "blank")) || STREQ (string, "cntrl") || STREQ (string, "blank"))
/* `regex_compile' compiles PATTERN (of length SIZE) according to SYNTAX. /* `regex_compile' compiles PATTERN (of length SIZE) according to SYNTAX.
Returns one of error codes defined in `regex.h', or zero for success. Returns one of error codes defined in `regex.h', or zero for success.
@ -2071,7 +2071,7 @@ regex_compile (pattern, size, syntax, bufp)
return REG_NOERROR; return REG_NOERROR;
} /* regex_compile */ } /* regex_compile */
/* Subroutines for `regex_compile'. */ /* Subroutines for `regex_compile'. */
/* Store OP at LOC followed by two-byte integer parameter ARG. */ /* Store OP at LOC followed by two-byte integer parameter ARG. */
@ -2257,7 +2257,7 @@ compile_range (p_ptr, pend, translate, syntax, b)
return REG_NOERROR; return REG_NOERROR;
} }
/* Failure stack declarations and macros; both re_compile_fastmap and /* Failure stack declarations and macros; both re_compile_fastmap and
re_match_2 use a failure stack. These have to be macros because of re_match_2 use a failure stack. These have to be macros because of
REGEX_ALLOCATE. */ REGEX_ALLOCATE. */
@ -2531,7 +2531,7 @@ typedef struct
\ \
DEBUG_STATEMENT (nfailure_points_popped++); \ DEBUG_STATEMENT (nfailure_points_popped++); \
} /* POP_FAILURE_POINT */ } /* POP_FAILURE_POINT */
/* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in /* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible
characters can start a string that matches the pattern. This fastmap characters can start a string that matches the pattern. This fastmap
@ -2816,7 +2816,7 @@ re_compile_fastmap (bufp)
bufp->can_be_null |= path_can_be_null; bufp->can_be_null |= path_can_be_null;
return 0; return 0;
} /* re_compile_fastmap */ } /* re_compile_fastmap */
/* Set REGS to hold NUM_REGS registers, storing them in STARTS and /* Set REGS to hold NUM_REGS registers, storing them in STARTS and
ENDS. Subsequent matches using PATTERN_BUFFER and REGS will use ENDS. Subsequent matches using PATTERN_BUFFER and REGS will use
this memory for recording register information. STARTS and ENDS this memory for recording register information. STARTS and ENDS
@ -3005,7 +3005,7 @@ re_search_2 (bufp, string1, size1, string2, size2, startpos, range, regs, stop)
} }
return -1; return -1;
} /* re_search_2 */ } /* re_search_2 */
/* Declarations and macros for re_match_2. */ /* Declarations and macros for re_match_2. */
union register_info_type; union register_info_type;
static int bcmp_translate (const unsigned char *s1, const unsigned char *s2, int len, char *translate); static int bcmp_translate (const unsigned char *s1, const unsigned char *s2, int len, char *translate);
@ -3143,7 +3143,7 @@ typedef union register_info_type
to actually save any registers when none are active. */ to actually save any registers when none are active. */
#define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH) #define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
#define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1) #define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
/* Matching routines. */ /* Matching routines. */
#ifndef emacs /* Emacs never uses this. */ #ifndef emacs /* Emacs never uses this. */
@ -4360,7 +4360,7 @@ re_match_2 (bufp, string1, size1, string2, size2, pos, regs, stop)
return -1; /* Failure to match. */ return -1; /* Failure to match. */
} /* re_match_2 */ } /* re_match_2 */
/* Subroutine definitions for re_match_2. */ /* Subroutine definitions for re_match_2. */
@ -4622,7 +4622,7 @@ bcmp_translate (s1, s2, len, translate)
} }
return 0; return 0;
} }
/* Entry points for GNU code. */ /* Entry points for GNU code. */
/* re_compile_pattern is the GNU regular expression compiler: it /* re_compile_pattern is the GNU regular expression compiler: it
@ -4658,7 +4658,7 @@ re_compile_pattern (pattern, length, bufp)
return re_error_msg[(int) ret]; return re_error_msg[(int) ret];
} }
/* Entry points compatible with 4.2 BSD regex library. We don't define /* Entry points compatible with 4.2 BSD regex library. We don't define
them if this is an Emacs or POSIX compilation. */ them if this is an Emacs or POSIX compilation. */
@ -4714,7 +4714,7 @@ re_exec (s)
0 <= re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0); 0 <= re_search (&re_comp_buf, s, len, 0, len, (struct re_registers *) 0);
} }
#endif /* not emacs and not _POSIX_SOURCE */ #endif /* not emacs and not _POSIX_SOURCE */
/* POSIX.2 functions. Don't define these for Emacs. */ /* POSIX.2 functions. Don't define these for Emacs. */
#ifndef emacs #ifndef emacs
@ -4954,7 +4954,7 @@ regfree (preg)
} }
#endif /* not emacs */ #endif /* not emacs */
/* /*
Local variables: Local variables:
make-backup-files: t make-backup-files: t

View file

@ -20,7 +20,7 @@
License along with the GNU C Library; see the file COPYING.LIB. If not, License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
/* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>. /* This tells Alpha OSF/1 not to define a getopt prototype in <stdio.h>.
Ditto for AIX 3.2 and <stdlib.h>. */ Ditto for AIX 3.2 and <stdlib.h>. */
#ifndef _NO_PROTO #ifndef _NO_PROTO
@ -188,7 +188,7 @@ static enum
/* Value of POSIXLY_CORRECT environment variable. */ /* Value of POSIXLY_CORRECT environment variable. */
static char *posixly_correct; static char *posixly_correct;
#ifdef __GNU_LIBRARY__ #ifdef __GNU_LIBRARY__
/* We want to avoid inclusion of string.h with non-GNU libraries /* We want to avoid inclusion of string.h with non-GNU libraries
because there are many ways it can cause trouble. because there are many ways it can cause trouble.
@ -241,7 +241,7 @@ extern int strlen (const char *);
#endif /* __GNUC__ */ #endif /* __GNUC__ */
#endif /* not __GNU_LIBRARY__ */ #endif /* not __GNU_LIBRARY__ */
/* Handle permutation of arguments. */ /* Handle permutation of arguments. */
/* Describe the part of ARGV that contains non-options that have /* Describe the part of ARGV that contains non-options that have
@ -454,7 +454,7 @@ _getopt_initialize (argc, argv, optstring)
return optstring; return optstring;
} }
/* Scan elements of ARGV (whose length is ARGC) for option characters /* Scan elements of ARGV (whose length is ARGC) for option characters
given in OPTSTRING. given in OPTSTRING.
@ -984,7 +984,7 @@ getopt (argc, argv, optstring)
} }
#endif /* Not ELIDE_CODE. */ #endif /* Not ELIDE_CODE. */
#ifdef TEST #ifdef TEST
/* Compile with -DTEST to make an executable for use in testing /* Compile with -DTEST to make an executable for use in testing

View file

@ -17,7 +17,7 @@
License along with the GNU C Library; see the file COPYING.LIB. If not, License along with the GNU C Library; see the file COPYING.LIB. If not,
write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307, USA. */ Boston, MA 02111-1307, USA. */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
@ -92,7 +92,7 @@ getopt_long_only (argc, argv, options, long_options, opt_index)
#endif /* Not ELIDE_CODE. */ #endif /* Not ELIDE_CODE. */
#ifdef TEST #ifdef TEST
#include <stdio.h> #include <stdio.h>