mirror of
https://github.com/gnustep/tools-make.git
synced 2025-04-23 22:33:28 +00:00
Changes to better chack for whitespace at end of line
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/tools/make/trunk@21859 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
b79f0385e9
commit
d8b6b57a04
5 changed files with 14 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
2005-10-24 Richard Frith-Macdonald <rfm@gnu.org>
|
||||
|
||||
* which_lib.c: Tidied a little on lines suggested by David Ayers
|
||||
* configure.ac: Check for ctype.h
|
||||
* configure: regenerate
|
||||
* config.h.in: regenerate
|
||||
|
||||
2005-10-23 Jeremy Bettis
|
||||
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
/* config.h.in. Generated from configure.ac by autoheader. */
|
||||
|
||||
/* Define to 1 if you have the <ctype.h> header file. */
|
||||
#undef HAVE_CTYPE_H
|
||||
|
||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
||||
*/
|
||||
#undef HAVE_DIRENT_H
|
||||
|
|
3
configure
vendored
3
configure
vendored
|
@ -4243,7 +4243,8 @@ done
|
|||
|
||||
|
||||
|
||||
for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h
|
||||
|
||||
for ac_header in sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h ctype.h
|
||||
do
|
||||
as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
|
||||
if eval "test \"\${$as_ac_Header+set}\" = set"; then
|
||||
|
|
|
@ -566,7 +566,7 @@ export LD_LIBRARY_PATH
|
|||
#--------------------------------------------------------------------
|
||||
AC_HEADER_DIRENT
|
||||
AC_CHECK_HEADERS(sys/param.h sys/file.h dir.h string.h stdlib.h sys/types.h dnl
|
||||
fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h)
|
||||
fcntl.h limits.h utime.h sys/stat.h pwd.h unistd.h ctype.h)
|
||||
AC_CHECK_FUNCS(getpwnam getpwuid geteuid getlogin strchr)
|
||||
|
||||
#--------------------------------------------------------------------
|
||||
|
|
|
@ -104,6 +104,10 @@
|
|||
# include <string.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_CTYPE_H
|
||||
# include <ctype.h>
|
||||
#endif
|
||||
|
||||
#if HAVE_SYS_STAT_H
|
||||
# include <sys/stat.h>
|
||||
#endif
|
||||
|
@ -177,7 +181,7 @@ static void stripstr (char *s)
|
|||
while (len > 0)
|
||||
{
|
||||
len--;
|
||||
if (s[len] < 33)
|
||||
if (isspace(s[len]))
|
||||
{
|
||||
s[len] = '\0';
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue