OSSP CVS Repository

ossp - Difference in ossp-pkg/l2/l2_spec.h versions 1.2 and 1.3
Not logged in
[Honeypot]  [Browse]  [Home]  [Login]  [Reports
[Search]  [Ticket]  [Timeline
  [History

ossp-pkg/l2/l2_spec.h 1.2 -> 1.3

--- l2_spec.h    2001/11/07 16:30:51     1.2
+++ l2_spec.h    2001/12/14 12:42:07     1.3
@@ -3,6 +3,7 @@
 
 #include "l2.h"
 
+/* internal specification scanner/parser context */
 typedef struct {
     const char   *inputptr;  /* input buffer: current reading pointer */
     const char   *inputbuf;  /* input buffer: begin of buffer */
@@ -14,4 +15,20 @@
     void         *yyscan;    /* Flex scanner context */
 } l2_spec_ctx_t;
 
+/* internal scanner/parser token location */
+typedef struct {
+    int first;
+    int last;
+} l2_spec_loc_t;
+#define YYLTYPE l2_spec_loc_t
+
+/* support for automatic location tracking by Bison */
+#define first_line   first
+#define first_column first
+#define last_line    last
+#define last_column  last
+
+/* error reporting function */
+extern void l2_spec_error(l2_spec_ctx_t *ctx, l2_result_t rv, YYLTYPE *loc, const char *fmt, ...);
+
 #endif /* __L2_SPEC_H__ */

CVSTrac 2.0.1