view Paper/codes/wc/main.cbc @ 29:11aa33c0b2e9 default tip

merge
author ichikitakahiro <e165713@ie.u-ryukyu.ac.jp>
date Fri, 21 May 2021 15:21:37 +0900
parents 2d91b4d2569c
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
}