From b0c6943121f186c79d2152694d209f82904ff1e1 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Thu, 30 Sep 2021 17:03:17 +0200 Subject: cc: rearanged for a pseudo-main --- miniany/cc.wg | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'miniany/cc.wg') diff --git a/miniany/cc.wg b/miniany/cc.wg index dbf56a9..7aca567 100644 --- a/miniany/cc.wg +++ b/miniany/cc.wg @@ -29,14 +29,14 @@ WordGrinder dumpfile v3: this is a text file; diff me! .clipboard.margin: 0 .clipboard.viewmode: 1 .clipboard.wordcount: 19 -.documents.1.co: 10 -.documents.1.cp: 39 -.documents.1.cw: 5 +.documents.1.co: 11 +.documents.1.cp: 74 +.documents.1.cw: 1 .documents.1.margin: 0 .documents.1.name: "main" .documents.1.sticky_selection: false .documents.1.viewmode: 1 -.documents.1.wordcount: 910 +.documents.1.wordcount: 928 .fileformat: 8 .findtext: "C4" .menu.accelerators.^@: "ZM" @@ -199,7 +199,7 @@ PRE echo -n -e "\034" > EOF PRE cat cc.c EOF hello.c | ./c4 PRE cat c4.c EOF cc.c EOF hello.c | ./c4 PRE cat c4.c4 EOF c4.c EOF cc.c EOF hello.c | ./c4 -P EOF contains the traditional FS (file separator) character in the ASCII character set. Every time c4/c4.c is invoked it reads exacly one input file up to the first FS character (or stops at the end of stdin). +P EOF contains the traditional FS (file separator) character in the ASCII character set. Every time c4 is invoked it reads exacly one input file up to the first FS character (or stops at the end of stdin). P We can also use -s, or -d on every level as follows: PRE cat cc.c EOF hello.c | ./c4 -d H2 References @@ -220,4 +220,7 @@ LB https://github.com/rswier/swieros.git: c.c in swieros, Robert Swierczek P Assembly: LB https://github.com/felipensp/assembly/blob/master/x86/itoa.s, for putint (early debugging keyword) LB https://baptiste-wicht.com/posts/2011/11/print-strings-integers-intel-assembly.htm (earldy debugging keyword) +P Documentation: +LB http://cowlark.com/wordgrinder/index.html: the fabulous editor which just does what it should do +LB https://github.com/mity/md4c: markdown to HTML in C . -- cgit v1.2.3-54-g00ecf