avoid compiler warning

* sed/sed.c (includes): Supply missing header.
This commit is contained in:
Eric Blake authored and Paolo Bonzini committed 2012-03-16 09:59:05 +01:00
1 parent d7622aeb6b
commit 8528ed0334
4 files changed
+14 -5

No files matched your search

+7
View File
@@ -1,3 +1,10 @@
2010-11-03 Eric Blake <eblake@redhat.com>
* basicdefs.h (ISDIGIT): Avoid compiler warning on cygwin.
* sed/compile.c (normalize_text): Avoid undefined behavior.
* sed/sed.c (includes): Supply missing header.
2012-03-16 Paolo Bonzini <bonzini@gnu.org>
* gnulib: Update.
+2 -2
View File
@@ -1,5 +1,5 @@
/* GNU SED, a batch stream editor.
Copyright (C) 1998, 1999, 2002, 2003 Free Software Foundation, Inc.
Copyright (C) 1998, 1999, 2002, 2003, 2010 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -151,7 +151,7 @@ typedef unsigned long countT;
#undef ISPRINT
#define ISPRINT(c) (ISASCII (c) && isprint (c))
#define ISDIGIT(c) (ISASCII (c) && isdigit (c))
#define ISDIGIT(c) (ISASCII (c) && isdigit ((unsigned char) (c)))
#define ISALNUM(c) (ISASCII (c) && isalnum (c))
#define ISALPHA(c) (ISASCII (c) && isalpha (c))
#define ISCNTRL(c) (ISASCII (c) && iscntrl (c))
+2 -2
View File
@@ -1,5 +1,5 @@
/* GNU SED, a batch stream editor.
Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003,2004,2005,2006,2008
Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003,2004,2005,2006,2008,2010
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -1520,7 +1520,7 @@ normalize_text(buf, len, buftype)
case 'c':
if (++p < bufend)
{
*q++ = toupper(*p) ^ 0x40;
*q++ = toupper((unsigned char) *p) ^ 0x40;
p++;
continue;
}
+3 -1
View File
@@ -1,5 +1,5 @@
/* GNU SED, a batch stream editor.
Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003,2006,2008,2009
Copyright (C) 1989,90,91,92,93,94,95,98,99,2002,2003,2006,2008,2009,2010
Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
@@ -44,6 +44,8 @@
#endif
#include "getopt.h"
#include "version-etc.h"
#ifndef BOOTSTRAP
#ifndef HAVE_STDLIB_H
extern char *getenv P_((const char *));