about summary refs log tree commit diff
diff options
context:
space:
mode:
authorChristian Neukirchen <chneukirchen@gmail.com>2015-11-14 17:37:20 +0100
committerChristian Neukirchen <chneukirchen@gmail.com>2015-11-14 17:37:20 +0100
commit62ce08259da74b7fc4587f13a47c08db711659ab (patch)
treeca3e54e520c2d891d1c2a1e045fdf83ea40a762d
parentdc3713a954915fea898bf746f7dfb73bbc7469d2 (diff)
downloadarr-62ce08259da74b7fc4587f13a47c08db711659ab.tar.gz
arr-62ce08259da74b7fc4587f13a47c08db711659ab.tar.xz
arr-62ce08259da74b7fc4587f13a47c08db711659ab.zip
Cleanup
-rw-r--r--arr.c27
1 files changed, 0 insertions, 27 deletions
diff --git a/arr.c b/arr.c
index 76a2c06..d89e19a 100644
--- a/arr.c
+++ b/arr.c
@@ -13,12 +13,6 @@
 char lastsplit;
 static char *s;
 
-// TODO: negative numbers count from end
-// TODO: C-style literals
-// %FIELD shortcut?
-// default to as many - as there are references to fields?
-// option to don't stop at first EOF, fill with string (default empty)
-
 //  "%{" FIELD (CHOP FIELD)* (("|" | "*") FIELD ((, | :) FIELD)*)? "}"
 
 void
@@ -241,27 +235,6 @@ fmt(const char *pattern, char **args, size_t argsnum)
 
 int
 main(int argc, char *argv[]) {
-	char s[] = "foo,bar,baz,quux";
-	char t[] = "bo/ing;zi/ng;zo/ng";
-	char v[] = "  words  wordss\t wordsss";
-	char *a[] = { 0, s, t, v };
-	/* fmt("hello\n", a); */
-	/* fmt("%{1}\n", a); */
-	/* fmt("%{2}\n", a); */
-	/* fmt("%{1,2}\n", a); */
-	/* fmt(">>%{2}<<\n", a); */
-	/* fmt(">>%{2;|1:3}<<\n", a); */
-	/* fmt(">>%{2;|3:1}<<\n", a); */
-
-	/* fmt(">>%{2;|1:3} %{2;|3:1} %{2;|1,3}<<\n", a); */
-	/* fmt(">>%{2;|1,2,3} %{2;|3,2,1} %{2;|1,3}<<\n", a); */
-	/* fmt(">>%{2;2}<<\n", a); */
-	/* fmt(">>%{2;2/1}<<\n", a); */
-	/* fmt(">>%{3 |1:3}<<\n", a); */
-	/* fmt(">>%{3 1*1}<<\n", a); */
-	/* fmt(">>%{3 1*1:4}<<\n", a); */
-	/* fmt("%zz%%zz\n", a); */
-
         // number of implicit stdin arguments
         int stdins = 0;