OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_spec_parse.y versions 1.6 and 1.7
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

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 { 

CVSTrac 2.0.1