mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-31 05:00:35 +00:00
Massive whitespace cleanup.
Lots of trailing whitespace and otherwise blank lines.
This commit is contained in:
parent
01773c7cd3
commit
23a38738fc
254 changed files with 1793 additions and 1793 deletions
|
@ -135,7 +135,7 @@ typedef unsigned reg_syntax_t;
|
|||
stored in the pattern buffer, so changing this does not affect
|
||||
already-compiled regexps. */
|
||||
extern reg_syntax_t re_syntax_options;
|
||||
|
||||
|
||||
/* Define combinations of the above bits for the standard possibilities.
|
||||
(The [[[ comments delimit what gets put into the Texinfo file, so
|
||||
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_VBAR | RE_UNMATCHED_RIGHT_PAREN_ORD)
|
||||
/* [[[end syntaxes]]] */
|
||||
|
||||
|
||||
/* Maximum number of duplicates an interval can allow. Some systems
|
||||
(erroneously) define this in other header files, but we want our
|
||||
value, so remove any previous define. */
|
||||
|
@ -268,7 +268,7 @@ typedef enum
|
|||
REG_ESIZE, /* Compiled pattern bigger than 2^16 bytes. */
|
||||
REG_ERPAREN /* Unmatched ) or \); not returned from regcomp. */
|
||||
} reg_errcode_t;
|
||||
|
||||
|
||||
/* This data structure represents a compiled pattern. Before calling
|
||||
the pattern compiler, the fields `buffer', `allocated', `fastmap',
|
||||
`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
|
||||
defined both in `regex.c' and here. */
|
||||
#define RE_EXACTN_VALUE 1
|
||||
|
||||
|
||||
/* Type for byte offsets within the string. POSIX mandates this. */
|
||||
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_eo; /* Byte offset from string's start to substring's end. */
|
||||
} regmatch_t;
|
||||
|
||||
|
||||
/* Declarations for routines. */
|
||||
|
||||
/* 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));
|
||||
|
||||
#endif /* not __REGEXP_LIBRARY_H__ */
|
||||
|
||||
|
||||
/*
|
||||
Local variables:
|
||||
make-backup-files: t
|
||||
|
|
|
@ -128,7 +128,7 @@ init_syntax_once (void)
|
|||
#define SYNTAX(c) re_syntax_table[c]
|
||||
|
||||
#endif /* not emacs */
|
||||
|
||||
|
||||
/* Get the interface, including the syntax bits. */
|
||||
#include "regex.h"
|
||||
|
||||
|
@ -176,7 +176,7 @@ init_syntax_once (void)
|
|||
/* As in Harbison and Steele. */
|
||||
#define SIGN_EXTEND_CHAR(c) ((((unsigned char) (c)) ^ 128) - 128)
|
||||
#endif
|
||||
|
||||
|
||||
/* Should we use malloc or alloca? If REGEX_MALLOC is not defined, we
|
||||
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
|
||||
|
@ -246,7 +246,7 @@ char *alloca ();
|
|||
typedef char boolean;
|
||||
#define false 0
|
||||
#define true 1
|
||||
|
||||
|
||||
/* These are the command codes that appear in compiled regular
|
||||
expressions. Some opcodes are followed by argument bytes. A
|
||||
command code can specify any interpretation whatsoever for its
|
||||
|
@ -386,7 +386,7 @@ typedef enum
|
|||
notsyntaxspec
|
||||
#endif /* emacs */
|
||||
} re_opcode_t;
|
||||
|
||||
|
||||
/* Common operations on the compiled pattern. */
|
||||
|
||||
/* Store NUMBER in two contiguous bytes starting at DESTINATION. */
|
||||
|
@ -460,7 +460,7 @@ extract_number_and_incr (destination, source)
|
|||
#endif /* not EXTRACT_MACROS */
|
||||
|
||||
#endif /* DEBUG */
|
||||
|
||||
|
||||
/* If DEBUG is defined, Regex prints many voluminous messages about what
|
||||
it is doing (if the variable `debug' is nonzero). If linked with the
|
||||
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)
|
||||
|
||||
#endif /* not DEBUG */
|
||||
|
||||
|
||||
/* Set by `re_set_syntax' to the current regexp syntax to recognize. Can
|
||||
also be assigned to arbitrarily: each pattern buffer stores its own
|
||||
syntax, so it can be changed between regex compilations. */
|
||||
|
@ -823,7 +823,7 @@ re_set_syntax (syntax)
|
|||
re_syntax_options = syntax;
|
||||
return ret;
|
||||
}
|
||||
|
||||
|
||||
/* 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. */
|
||||
|
||||
|
@ -846,7 +846,7 @@ static const char *re_error_msg[] =
|
|||
"Regular expression too big", /* REG_ESIZE */
|
||||
"Unmatched ) or \\)", /* REG_ERPAREN */
|
||||
};
|
||||
|
||||
|
||||
/* 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, "punct") || STREQ (string, "graph") \
|
||||
|| STREQ (string, "cntrl") || STREQ (string, "blank"))
|
||||
|
||||
|
||||
/* `regex_compile' compiles PATTERN (of length SIZE) according to SYNTAX.
|
||||
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;
|
||||
} /* regex_compile */
|
||||
|
||||
|
||||
/* Subroutines for `regex_compile'. */
|
||||
|
||||
/* 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;
|
||||
}
|
||||
|
||||
|
||||
/* Failure stack declarations and macros; both re_compile_fastmap and
|
||||
re_match_2 use a failure stack. These have to be macros because of
|
||||
REGEX_ALLOCATE. */
|
||||
|
@ -2531,7 +2531,7 @@ typedef struct
|
|||
\
|
||||
DEBUG_STATEMENT (nfailure_points_popped++); \
|
||||
} /* POP_FAILURE_POINT */
|
||||
|
||||
|
||||
/* re_compile_fastmap computes a ``fastmap'' for the compiled pattern in
|
||||
BUFP. A fastmap records which of the (1 << BYTEWIDTH) possible
|
||||
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;
|
||||
return 0;
|
||||
} /* re_compile_fastmap */
|
||||
|
||||
|
||||
/* Set REGS to hold NUM_REGS registers, storing them in STARTS and
|
||||
ENDS. Subsequent matches using PATTERN_BUFFER and REGS will use
|
||||
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;
|
||||
} /* re_search_2 */
|
||||
|
||||
|
||||
/* Declarations and macros for re_match_2. */
|
||||
union register_info_type;
|
||||
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. */
|
||||
#define NO_HIGHEST_ACTIVE_REG (1 << BYTEWIDTH)
|
||||
#define NO_LOWEST_ACTIVE_REG (NO_HIGHEST_ACTIVE_REG + 1)
|
||||
|
||||
|
||||
/* Matching routines. */
|
||||
|
||||
#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. */
|
||||
} /* re_match_2 */
|
||||
|
||||
|
||||
/* Subroutine definitions for re_match_2. */
|
||||
|
||||
|
||||
|
@ -4622,7 +4622,7 @@ bcmp_translate (s1, s2, len, translate)
|
|||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
/* Entry points for GNU code. */
|
||||
|
||||
/* 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];
|
||||
}
|
||||
|
||||
|
||||
/* Entry points compatible with 4.2 BSD regex library. We don't define
|
||||
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);
|
||||
}
|
||||
#endif /* not emacs and not _POSIX_SOURCE */
|
||||
|
||||
|
||||
/* POSIX.2 functions. Don't define these for Emacs. */
|
||||
|
||||
#ifndef emacs
|
||||
|
@ -4954,7 +4954,7 @@ regfree (preg)
|
|||
}
|
||||
|
||||
#endif /* not emacs */
|
||||
|
||||
|
||||
/*
|
||||
Local variables:
|
||||
make-backup-files: t
|
||||
|
|
|
@ -20,7 +20,7 @@
|
|||
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,
|
||||
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
|
||||
|
@ -188,7 +188,7 @@ static enum
|
|||
|
||||
/* Value of POSIXLY_CORRECT environment variable. */
|
||||
static char *posixly_correct;
|
||||
|
||||
|
||||
#ifdef __GNU_LIBRARY__
|
||||
/* We want to avoid inclusion of string.h with non-GNU libraries
|
||||
because there are many ways it can cause trouble.
|
||||
|
@ -241,7 +241,7 @@ extern int strlen (const char *);
|
|||
#endif /* __GNUC__ */
|
||||
|
||||
#endif /* not __GNU_LIBRARY__ */
|
||||
|
||||
|
||||
/* Handle permutation of arguments. */
|
||||
|
||||
/* Describe the part of ARGV that contains non-options that have
|
||||
|
@ -454,7 +454,7 @@ _getopt_initialize (argc, argv, optstring)
|
|||
|
||||
return optstring;
|
||||
}
|
||||
|
||||
|
||||
/* Scan elements of ARGV (whose length is ARGC) for option characters
|
||||
given in OPTSTRING.
|
||||
|
||||
|
@ -984,7 +984,7 @@ getopt (argc, argv, optstring)
|
|||
}
|
||||
|
||||
#endif /* Not ELIDE_CODE. */
|
||||
|
||||
|
||||
#ifdef TEST
|
||||
|
||||
/* Compile with -DTEST to make an executable for use in testing
|
||||
|
|
|
@ -17,7 +17,7 @@
|
|||
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,
|
||||
Boston, MA 02111-1307, USA. */
|
||||
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
#include <config.h>
|
||||
#endif
|
||||
|
@ -92,7 +92,7 @@ getopt_long_only (argc, argv, options, long_options, opt_index)
|
|||
|
||||
|
||||
#endif /* Not ELIDE_CODE. */
|
||||
|
||||
|
||||
#ifdef TEST
|
||||
|
||||
#include <stdio.h>
|
||||
|
|
Loading…
Reference in a new issue