projects
/
yaz-moved-to-github.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Minor changes.
[yaz-moved-to-github.git]
/
zoom
/
zoomsh.c
diff --git
a/zoom/zoomsh.c
b/zoom/zoomsh.c
index
2f3897f
..
9f9d0e4
100644
(file)
--- a/
zoom/zoomsh.c
+++ b/
zoom/zoomsh.c
@@
-1,5
+1,5
@@
/*
/*
- * $Id: zoomsh.c,v 1.1 2001-10-23 21:00:20 adam Exp $
+ * $Id: zoomsh.c,v 1.2 2001-10-24 12:24:43 adam Exp $
*
* ZOOM-C Shell
*/
*
* ZOOM-C Shell
*/
@@
-9,9
+9,6
@@
#include <string.h>
#include <ctype.h>
#include <string.h>
#include <ctype.h>
-#define HAVE_READLINE_READLINE_H 1
-#define HAVE_READLINE_HISTORY_H 1
-
#if HAVE_READLINE_READLINE_H
#include <readline/readline.h>
#endif
#if HAVE_READLINE_READLINE_H
#include <readline/readline.h>
#endif
@@
-32,7
+29,7
@@
static int next_token (const char **cpp, const char **t_start)
while (*cp == ' ')
cp++;
*t_start = cp;
while (*cp == ' ')
cp++;
*t_start = cp;
- while (*cp && *cp != ' ')
+ while (*cp && *cp != ' ' && *cp != '\r' && *cp != '\n')
{
cp++;
len++;
{
cp++;
len++;