Commit 9ed591cc authored by Niels Möller's avatar Niels Möller
Browse files

*** empty log message ***

Rev: ChangeLog:1.151
Rev: src/command.h:1.41
Rev: src/io.c:1.88
Rev: src/io_commands.c:1.24
Rev: src/list.h:1.7
Rev: src/read_packet.c:1.46
Rev: src/testsuite/Makefile.am:1.9
Rev: src/testsuite/macros.m4:1.4
Rev: src/werror.c:1.43
parent 81284af3
2000-02-02 Niels Mller <nisse@lysator.liu.se>
* src/testsuite/functions.sh, src/testsuite/lsh-1-test,
src/testsuite/lsh-2-test, src/testsuite/lsh-3-test,
src/testsuite/tcpip-local-test: Fixed bash-isms.
* src/argp/argp-fmtstream.c: Define the functions that are defined
as extern inline in argp_fmtstream.h. Needed for compilers that
don't have inline.
* src/argp/argp-help.c (hol_entry_help): Don't use non-constant
initializers (which is a GNUC extension).
* src/argp/argp-parse.c: Declare alloca properly.
* src/tty.c, src/tty.h: Signedness fixes.
* src/parse.c, src/parse.h: Signedness fixes.
* src/keyexchange.c (kex_make_key): Signedness fix.
* src/io_commands.c (do_connect_continue): Added a FIXME.
* src/client.c: Signedness fixes.
* src/Makefile.am.in (liblsh_a_SOURCES): Removed password.c.
* configure.in: Added check for inline.
Bumped version to 0.2.7.
2000-02-01 Niels Mller <nisse@cuckoo.localdomain> 2000-02-01 Niels Mller <nisse@cuckoo.localdomain>
* configure.in: Fixed messages for --without-* flags. * configure.in: Fixed messages for --without-* flags.
......
...@@ -73,6 +73,12 @@ ...@@ -73,6 +73,12 @@
#define COMMAND_SIMPLE_CALL(f, a) \ #define COMMAND_SIMPLE_CALL(f, a) \
((f)->call_simple((f), (struct lsh_object *)(a))) ((f)->call_simple((f), (struct lsh_object *)(a)))
#define STATIC_COMMAND(f) { STATIC_HEADER, f }
#define STATIC_COMMAND_SIMPLE(f) \
{ STATIC_COMMAND(do_call_simple_command), f}
#define COMMAND_SIMPLE(cname) \ #define COMMAND_SIMPLE(cname) \
static struct lsh_object * \ static struct lsh_object * \
do_simple_##cname(struct command_simple *s UNUSED, \ do_simple_##cname(struct command_simple *s UNUSED, \
...@@ -90,11 +96,6 @@ void do_call_simple_command(struct command *s, ...@@ -90,11 +96,6 @@ void do_call_simple_command(struct command *s,
struct command_continuation *c, struct command_continuation *c,
struct exception_handler *e); struct exception_handler *e);
#define STATIC_COMMAND_SIMPLE(f) \
{ { STATIC_HEADER, do_call_simple_command }, f}
#define STATIC_COMMAND(f) { STATIC_HEADER, f }
struct command *make_parallell_progn(struct object_list *body); struct command *make_parallell_progn(struct object_list *body);
extern struct command_simple progn_command; extern struct command_simple progn_command;
......
...@@ -615,7 +615,7 @@ static void init_file(struct io_backend *b, struct lsh_fd *f, int fd, ...@@ -615,7 +615,7 @@ static void init_file(struct io_backend *b, struct lsh_fd *f, int fd,
int blocking_read(int fd, struct read_handler *handler) int blocking_read(int fd, struct read_handler *handler)
{ {
char *buffer = alloca(BLOCKING_READ_SIZE); UINT8 *buffer = alloca(BLOCKING_READ_SIZE);
for (;;) for (;;)
{ {
...@@ -644,6 +644,7 @@ int blocking_read(int fd, struct read_handler *handler) ...@@ -644,6 +644,7 @@ int blocking_read(int fd, struct read_handler *handler)
done += READ_HANDLER(handler, got - done, buffer + done); done += READ_HANDLER(handler, got - done, buffer + done);
} }
} }
/* FIXME: Not reached. Hmm. */
close(fd); close(fd);
return !handler; return !handler;
} }
......
...@@ -273,6 +273,9 @@ STATIC_COLLECT_1(&collect_info_listen_2); ...@@ -273,6 +273,9 @@ STATIC_COLLECT_1(&collect_info_listen_2);
(e object exception_handler))) (e object exception_handler)))
*/ */
/* FIXME: The new fd object should be added to the same resource list
* as the old one. Perhaps the conenction code in io.c should reuse
* the fd object in some way? */
static void static void
do_connect_continue(struct fd_callback **s, int fd) do_connect_continue(struct fd_callback **s, int fd)
{ {
......
...@@ -41,6 +41,7 @@ ...@@ -41,6 +41,7 @@
(length simple unsigned))) (length simple unsigned)))
*/ */
/* FIXME: Should this be a list of unsigned ints? */
/* GABA: /* GABA:
(class (class
(name int_list) (name int_list)
......
...@@ -351,6 +351,7 @@ do_read_packet(struct read_handler **h, ...@@ -351,6 +351,7 @@ do_read_packet(struct read_handler **h,
default: default:
fatal("Internal error\n"); fatal("Internal error\n");
} }
/* FIXME: Not reached. */
return total; return total;
} }
......
...@@ -28,7 +28,9 @@ all: ...@@ -28,7 +28,9 @@ all:
M4FLAGS = -P #-s M4FLAGS = -P #-s
%.c: macros.m4 %.m4 %.c: macros.m4 %.m4
$(M4) $(M4FLAGS) $^ > $@ $(M4) $(M4FLAGS) $^ > $@T
test -s $@T && mv -f $@T $@
.PHONY: check-some check-more .PHONY: check-some check-more
......
...@@ -105,7 +105,8 @@ TS_DEFINE( ...@@ -105,7 +105,8 @@ TS_DEFINE(
m4_divert(1) m4_divert(1)
return 0; return 0;
} m4_divert }
m4_divert
m4_dnl C code m4_dnl C code
#include "lsh.h" #include "lsh.h"
......
...@@ -187,7 +187,7 @@ static void werror_cstring(char *s) { werror_write(strlen(s), s); } ...@@ -187,7 +187,7 @@ static void werror_cstring(char *s) { werror_write(strlen(s), s); }
static void werror_bignum(mpz_t n, int base) static void werror_bignum(mpz_t n, int base)
{ {
UINT8 *s = alloca(mpz_sizeinbase(n, base) + 2); char *s = alloca(mpz_sizeinbase(n, base) + 2);
mpz_get_str(s, 16, n); mpz_get_str(s, 16, n);
werror_cstring(s); werror_cstring(s);
...@@ -196,7 +196,7 @@ static void werror_bignum(mpz_t n, int base) ...@@ -196,7 +196,7 @@ static void werror_bignum(mpz_t n, int base)
static void werror_decimal(UINT32 n) static void werror_decimal(UINT32 n)
{ {
unsigned length = format_size_in_decimal(n); unsigned length = format_size_in_decimal(n);
char *buffer = alloca(length); UINT8 *buffer = alloca(length);
format_decimal(length, buffer, n); format_decimal(length, buffer, n);
......
Markdown is supported
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