Skip to content

Instantly share code, notes, and snippets.

@jungle-boogie
jungle-boogie / gist:19a9b0011bc38611a450
Created September 7, 2015 03:39
miller build ticket #64 with CO 5dfe530
% git checkout 5dfe53056cbd9762416c973a96bc1d3cd2014ba9 .
% make -e CCOMP=clang
make -C dsls put_dsl_parse.o
clang -o lemon lemon.c
lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static preprocess_input(char *z){
~~~~~~ ^
lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
@jungle-boogie
jungle-boogie / buildfail.log
Created September 6, 2015 20:56
build fail with test case minmax.dkvp
% make -e CCOMP=clang
make -C dsls put_dsl_parse.o
clang -o lemon lemon.c
lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static preprocess_input(char *z){
~~~~~~ ^
lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
lemon.c:2863:6: warning: use of out-of-scope declaration of 'access'
% make
tclsh tools/assemble.tcl sqawk-dev.tcl > sqawk.tcl
tclsh tests.tcl
==== test1 Handle broken pipe, read from stdin FAILED
==== Contents of test case:
with-temp-files filename ch {
puts $ch "line 1\nline 2\nline 3"
@jungle-boogie
jungle-boogie / makefile_fail.log
Created August 31, 2015 14:46
build failure on Linux debian 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt11-1+deb8u3 (2015-08-04) x86_64 GNU/Linux
$ make
make -C dsls put_dsl_parse.o
make[1]: Entering directory '/home/jungle/bin/miller/c/dsls'
gcc -o lemon lemon.c
./lemon put_dsl_parse.y
mv put_dsl_parse.c put_dsl_parse.c.tmp
sed \
-e 's/ParseTrace/put_dsl_ParseTrace/g' \
-e 's/ParseTokenName/put_dsl_ParseTokenName/g' \
-e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' \
% sh test/run
test/../mlr cat test/input/abixy
test/../mlr cat /dev/null
test/../mlr cut -f a,x test/input/abixy
test/../mlr cut --complement -f a,x test/input/abixy
test/../mlr having-fields --at-least a,b test/input/abixy
test/../mlr having-fields --at-least a,c test/input/abixy
test/../mlr having-fields --at-least a,b,i,x,y test/input/abixy
test/../mlr having-fields --which-are a,b,i,x test/input/abixy
make -C dsls put_dsl_parse.o
clang -o lemon lemon.c
lemon.c:2277:8: warning: type specifier missing, defaults to 'int' [-Wimplicit-int]
static preprocess_input(char *z){
~~~~~~ ^
lemon.c:2327:1: warning: control may reach end of non-void function [-Wreturn-type]
}
^
lemon.c:2863:6: warning: use of out-of-scope declaration of 'access'
if (access(buf,004)==0) {
make -C dsls put_dsl_parse.o
gcc -o lemon lemon.c
./lemon put_dsl_parse.y
mv put_dsl_parse.c put_dsl_parse.c.tmp
sed -e 's/ParseTrace/put_dsl_ParseTrace/g' -e 's/ParseTokenName/put_dsl_ParseTokenName/g' -e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' -e 's/lemon_parser_free/put_dsl_lemon_parser_free/g' -e 's/lemon_parser_parse_token/put_dsl_lemon_parser_parse_token/g' -e 's/yy_destructor/put_dsl_yy_destructor/g' put_dsl_parse.c.tmp > put_dsl_parse.c
rm -f put_dsl_parse.c.tmp
gcc -I.. -O3 -c -std=gnu99 put_dsl_parse.c
make -C dsls put_dsl_lexer.o
flex --prefix=put_dsl_lexer_ --outfile=put_dsl_lexer.c --header-file=put_dsl_lexer.h put_dsl_lexer.l
gcc -I.. -O3 -c -std=gnu99 put_dsl_lexer.c
% make
make -C dsls put_dsl_parse.o
gcc -o lemon lemon.c
./lemon put_dsl_parse.y
mv put_dsl_parse.c put_dsl_parse.c.tmp
sed -e 's/ParseTrace/put_dsl_ParseTrace/g' -e 's/ParseTokenName/put_dsl_ParseTokenName/g' -e 's/lemon_parser_alloc/put_dsl_lemon_parser_alloc/g' -e 's/lemon_parser_free/put_dsl_lemon_parser_free/g' -e 's/lemon_parser_parse_token/put_dsl_lemon_parser_parse_token/g' -e 's/yy_destructor/put_dsl_yy_destructor/g' put_dsl_parse.c.tmp > put_dsl_parse.c
rm -f put_dsl_parse.c.tmp
gcc -I.. -O3 -c -std=gnu99 put_dsl_parse.c
make -C dsls put_dsl_lexer.o
flex --prefix=put_dsl_lexer_ --outfile=put_dsl_lexer.c --header-file=put_dsl_lexer.h put_dsl_lexer.l
make
tclsh tools/assemble.tcl sqawk-dev.tcl > sqawk.tcl
tclsh tests.tcl
==== test1 Handle broken pipe, read from stdin FAILED
==== Contents of test case:
with-temp-files filename ch {
puts $ch "line 1\nline 2\nline 3"
@jungle-boogie
jungle-boogie / gist:8ba3551519f21e04c99c
Created June 25, 2015 18:54
pivot table with csv.vim
Say I have data like this:
Merchant ID,Txn Type
30422,Sale
30430,Sale
30414,Sale
30391,Sale
30412,Sale
30402,Sale
30405,Sale