Note changes from antirez, remove old includes and make sure formatting matches.

This commit is contained in:
Joseph Stewart 2021-12-27 16:21:42 -08:00
parent d1eaf65ce8
commit 199e61410a

View file

@ -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 <libc/log/log.h>
#include <libc/stdio/stdio.h>
#include "libc/fmt/conv.h"
#include "libc/fmt/fmt.h"
//#include <stdio.h>
//#include <stdlib.h>
//#include <string.h>
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 };