summaryrefslogtreecommitdiffstats
path: root/contrib/flex/misc.c
diff options
context:
space:
mode:
authorjkim <jkim@FreeBSD.org>2013-05-21 19:11:11 +0000
committerjkim <jkim@FreeBSD.org>2013-05-21 19:11:11 +0000
commitaf3aaf871a18c81e9986f6470064ec11a6d7ef1a (patch)
treedb324438fe5e24d91a790f6cf907e699c942bbc0 /contrib/flex/misc.c
parente2a508e1d1ac5da23d6007aedaff12dba4def7d7 (diff)
downloadFreeBSD-src-af3aaf871a18c81e9986f6470064ec11a6d7ef1a.zip
FreeBSD-src-af3aaf871a18c81e9986f6470064ec11a6d7ef1a.tar.gz
Apply still relevant local changes.
r124183: Work around a `label defined but not used' warning. r179549: De-register declarations. r179657: De-register declarations in non-dot-c files. r181269: Mark yy_fatal_error() as __dead2. r228992: Spelling fixes. r240518: Correct double "the the".
Diffstat (limited to 'contrib/flex/misc.c')
-rw-r--r--contrib/flex/misc.c26
1 files changed, 13 insertions, 13 deletions
diff --git a/contrib/flex/misc.c b/contrib/flex/misc.c
index e3fdd50..5bc844f 100644
--- a/contrib/flex/misc.c
+++ b/contrib/flex/misc.c
@@ -168,7 +168,7 @@ void *allocate_array (size, element_size)
int size;
size_t element_size;
{
- register void *mem;
+ void *mem;
size_t num_bytes = element_size * size;
mem = flex_alloc (num_bytes);
@@ -183,7 +183,7 @@ void *allocate_array (size, element_size)
/* all_lower - true if a string is all lower-case */
int all_lower (str)
- register char *str;
+ char *str;
{
while (*str) {
if (!isascii ((Char) * str) || !islower ((Char) * str))
@@ -198,7 +198,7 @@ int all_lower (str)
/* all_upper - true if a string is all upper-case */
int all_upper (str)
- register char *str;
+ char *str;
{
while (*str) {
if (!isascii ((Char) * str) || !isupper ((Char) * str))
@@ -241,7 +241,7 @@ void check_char (c)
/* clower - replace upper-case letter to lower-case */
Char clower (c)
- register int c;
+ int c;
{
return (Char) ((isascii (c) && isupper (c)) ? tolower (c) : c);
}
@@ -250,10 +250,10 @@ Char clower (c)
/* copy_string - returns a dynamically allocated copy of a string */
char *copy_string (str)
- register const char *str;
+ const char *str;
{
- register const char *c1;
- register char *c2;
+ const char *c1;
+ char *c2;
char *copy;
unsigned int size;
@@ -278,9 +278,9 @@ char *copy_string (str)
*/
Char *copy_unsigned_string (str)
- register Char *str;
+ Char *str;
{
- register Char *c;
+ Char *c;
Char *copy;
/* find length */
@@ -740,13 +740,13 @@ void out_m4_define (const char* def, const char* val)
}
-/* readable_form - return the the human-readable form of a character
+/* readable_form - return the human-readable form of a character
*
* The returned string is in static storage.
*/
char *readable_form (c)
- register int c;
+ int c;
{
static char rform[10];
@@ -795,7 +795,7 @@ void *reallocate_array (array, size, element_size)
int size;
size_t element_size;
{
- register void *new_array;
+ void *new_array;
size_t num_bytes = element_size * size;
new_array = flex_realloc (array, num_bytes);
@@ -991,7 +991,7 @@ void zero_out (region_ptr, size_in_bytes)
char *region_ptr;
size_t size_in_bytes;
{
- register char *rp, *rp_end;
+ char *rp, *rp_end;
rp = region_ptr;
rp_end = region_ptr + size_in_bytes;
OpenPOWER on IntegriCloud