From 199e61410acedbef866d12f714db8bab88ec8985 Mon Sep 17 00:00:00 2001 From: Joseph Stewart Date: Mon, 27 Dec 2021 16:21:42 -0800 Subject: [PATCH] Note changes from antirez, remove old includes and make sure formatting matches. --- examples/picol.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/examples/picol.c b/examples/picol.c index ef4ba2c34..ca135e4eb 100644 --- a/examples/picol.c +++ b/examples/picol.c @@ -25,16 +25,19 @@ * POSSIBILITY OF SUCH DAMAGE. */ +/* + * Original from http://oldblog.antirez.com/page/picol.html + * Changes on 2021-12-27 by octetta : + * . Use Cosmopolitan's headers. + * . Formatted as per Cosmopolitan's standards. + */ + #include #include #include "libc/fmt/conv.h" #include "libc/fmt/fmt.h" -//#include -//#include -//#include - enum { PICOL_OK, PICOL_ERR, PICOL_RETURN, PICOL_BREAK, PICOL_CONTINUE }; enum { PT_ESC, PT_STR, PT_CMD, PT_VAR, PT_SEP, PT_EOL, PT_EOF };