File tree Expand file tree Collapse file tree 1 file changed +16
-19
lines changed Expand file tree Collapse file tree 1 file changed +16
-19
lines changed Original file line number Diff line number Diff line change @@ -31,12 +31,12 @@ struct cr {
31
31
32
32
#define cr_local static
33
33
34
- #define cr_begin () \
35
- do { \
36
- if ((ctx)->status == CR_FINISHED) \
37
- return; \
38
- if ((ctx)->label) \
39
- goto *(ctx)->label; \
34
+ #define cr_begin () \
35
+ do { \
36
+ if ((ctx)->status == CR_FINISHED) \
37
+ return; \
38
+ if ((ctx)->label) \
39
+ goto *(ctx)->label; \
40
40
} while (0)
41
41
#define cr_label (o , stat ) \
42
42
do { \
@@ -47,17 +47,17 @@ struct cr {
47
47
48
48
#define cr_status (name ) cr_context_name(name).status
49
49
50
- #define cr_wait (cond ) \
51
- do { \
52
- cr_label(ctx, CR_BLOCKED); \
53
- if (!(cond)) \
54
- return; \
50
+ #define cr_wait (cond ) \
51
+ do { \
52
+ cr_label(ctx, CR_BLOCKED); \
53
+ if (!(cond)) \
54
+ return; \
55
55
} while (0)
56
56
57
- #define cr_exit (stat ) \
58
- do { \
59
- cr_label(ctx, stat); \
60
- return; \
57
+ #define cr_exit (stat ) \
58
+ do { \
59
+ cr_label(ctx, stat); \
60
+ return; \
61
61
} while (0)
62
62
63
63
#define cr_queue (T , size ) \
@@ -178,10 +178,7 @@ int main(int argc, char *argv[])
178
178
179
179
struct sockaddr_in addr = {
180
180
.sin_family = AF_INET ,
181
- .sin_addr =
182
- {
183
- .s_addr = inet_addr (host ),
184
- },
181
+ .sin_addr = {.s_addr = inet_addr (host )},
185
182
.sin_port = htons (port ),
186
183
};
187
184
connect (fd , (struct sockaddr * ) & addr , sizeof (struct sockaddr_in ));
You can’t perform that action at this time.
0 commit comments