view wc_sigos/main.cbc @ 5:7599728af8ba default tip

add wc
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Sat, 19 Jun 2021 07:24:43 +0900
parents
children
line wrap: on
line source

#data "wcTarget.h"
#interface "Wc.h"

//
// start file  and wc 
//   connect continuation each other
//

__code startCode(struct GearsData* gearsData) {   
  File* file = createUnixFileImpl(context, /* file name */ gearsData->args[1] );
  Wc* wc = createWcImpl(context);
  goto file->openFile(asReader(wc)); // readerInterface
}