Check-in Number:
|
2347 | |
Date: |
2002-Jul-25 11:13:13 (local)
2002-Jul-25 09:13:13 (UTC) |
User: | rse |
Branch: | |
Comment: |
allow empty stream (means a 'null' channel) |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/l2/l2_spec_parse.y 1.6 -> 1.7
--- l2_spec_parse.y 2002/01/02 17:07:38 1.6
+++ l2_spec_parse.y 2002/07/25 09:13:13 1.7
@@ -100,7 +100,15 @@
/* stream of channels */
stream
- : channel {
+ : /* empty */ {
+ l2_channel_t *ch;
+ if ((CTX->rv = l2_channel_create(&ch, CTX->env, "null")) != L2_OK) {
+ l2_spec_error(CTX, CTX->rv, &yylloc, "failed to create channel 'null'");
+ YYERROR;
+ }
+ $$ = ch;
+ }
+ | channel {
$$ = $1;
}
| channel T_OP_ARROW stream {
|
|