Commit 643c635a authored by Benoit Perrot's avatar Benoit Perrot
Browse files

Index: ChangeLog

from  Benoît Perrot  <benoit@lrde.epita.fr>

	* configure.ac:
	Check isblank presence.
	* src/shell/shell.hh, src/shell/shell.cc:
	Provide isblank when the platform lack it.
parent 87e57a99
2004-10-25 Benot Perrot <benoit@lrde.epita.fr>
* configure.ac:
Check isblank presence.
* src/shell/shell.hh, src/shell/shell.cc:
Provide isblank when the platform lack it.
2004-10-25 Benot Perrot <benoit@lrde.epita.fr>
* src/vm/cpu.cc:
......
......@@ -36,6 +36,10 @@ AC_PROG_RANLIB
# Look for readline library.
AC_CHECK_READLINE
# Check presence of isblank
AC_CHECK_FUNCS(isblank)
## Development environment -------------
CXXFLAGS="${CXXFLAGS} -ansi -Wall -W -D__STDC_LIMIT_MACROS"
......
......@@ -26,6 +26,14 @@
#include "shell/shell.hh"
#include "shell/cmd.hh"
#ifndef HAVE_ISBLANK
bool
isblank(int c)
{
return (c == ' ' || c == '\t');
}
#endif // !HAVE_ISBLANK
namespace shell
{
......
......@@ -23,6 +23,8 @@
#ifndef SHELL_SHELL_HH
# define SHELL_SHELL_HH
# include "config.h"
# include <ctype.h>
# include <list>
......@@ -41,6 +43,10 @@
# include "vm/virtual_machine.hh"
# include "shell/cmd.hh"
# ifndef HAVE_ISBLANK
bool isblank(int c);
# endif // !HAVE_ISBLANK
namespace shell
{
/// Token word value.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment