Added a tiny implementation of readline library, based on linenoise sources.

See https://github.com/antirez/linenoise for details.

Implemented a routine atexit() in libc.

Pdc modified to use readline library.
This commit is contained in:
Serge Vakulenko
2015-07-18 18:41:46 -07:00
parent 0b8e8bd520
commit e8cb02f3f7
15 changed files with 1507 additions and 5 deletions

3
src/cmd/pdc/.gitignore vendored Normal file
View File

@@ -0,0 +1,3 @@
pdc
y.tab.c
y.tab.h

View File

@@ -8,7 +8,8 @@ OBJS = pdc.o
LDFLAGS += -g
CFLAGS += -Werror -Wall -Os
CFLAGS += -DGCC_COMPAT -DHAVE_CPP_VARARG_MACRO_GCC
CFLAGS += -DGCC_COMPAT -DHAVE_CPP_VARARG_MACRO_GCC -DHAVE_READLINE
LIBS = -lreadline -lc
all: pdc