This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: bit reversal example | |
source code: |- | |
input: ' 001' | |
blank: ' ' | |
start state: S0 | |
table: | |
S0: | |
' ' : {R: S1} | |
0 : {write: 1, L} | |
1 : {write: 0, L} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdlib.h> | |
#include <unistd.h> | |
#include <uv.h> | |
typedef struct req_bundle_s { | |
uv_loop_t *loop; | |
uv_fs_t *read_req; | |
uv_fs_t *writ_req; |