summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-11-14 01:29:05 +0000
committerkitty <kitty@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2001-11-14 01:29:05 +0000
commit23f4a1ab82fb76507f10d450d9bf518434d6a5b2 (patch)
tree8b50334cb1f38c1f5b1307d67eb1ede8ca2484e1
parentb533290fd8f68cbfce7d508438ec560655083260 (diff)
downloadATCD-23f4a1ab82fb76507f10d450d9bf518434d6a5b2.tar.gz
ChangeLogTag: Tue Nov 13 19:23:24 2001 Krishnakumar B <kitty@cs.wustl.edu>
-rw-r--r--TAO/ChangeLogs/ChangeLog-02a21
-rw-r--r--TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp1243
-rw-r--r--TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff4
-rw-r--r--TAO/orbsvcs/tests/Concurrency/CC_command.tab.h52
-rw-r--r--TAO/orbsvcs/tests/Concurrency/Makefile2
-rw-r--r--TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp9
6 files changed, 539 insertions, 792 deletions
diff --git a/TAO/ChangeLogs/ChangeLog-02a b/TAO/ChangeLogs/ChangeLog-02a
index 71617eb07c7..c86988375f8 100644
--- a/TAO/ChangeLogs/ChangeLog-02a
+++ b/TAO/ChangeLogs/ChangeLog-02a
@@ -1,14 +1,27 @@
+Tue Nov 13 19:23:24 2001 Krishnakumar B <kitty@cs.wustl.edu>
+
+ * orbsvcs/tests/Concurrency/Makefile:
+ * orbsvcs/tests/Concurrency/CC_command.tab.cpp:
+ * orbsvcs/tests/Concurrency/CC_command.tab.h:
+ * orbsvcs/tests/Concurrency/lex.CC_command.cpp:
+
+ Regenerated the files by removing the #pragma.
+
+ * orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff:
+
+ Removed the file as it is no longer needed.
+
Tue Nov 13 18:01:57 2001 Craig Rodrigues <crodrigu@bbn.com>
- * orbsvcs/orbsvcs/AV.dsp: Added md5c.c
- * orbsvcs/orbsvcs/AV_Static.dsp: Added md5c.c
+ * orbsvcs/orbsvcs/AV.dsp: Added md5c.c
+ * orbsvcs/orbsvcs/AV_Static.dsp: Added md5c.c
* orbsvcs/orbsvcs/AV/md5c.c: Add a CVS Id tag.
* orbsvcs/orbsvcs/AV/RTCP.cpp:
Fix comments in TAO_AV_RTCP_Flow_Factory::make_protocol_object().
Do not return void in TAO_AV_RTCP_Object::ts_offset().
* orbsvcs/orbsvcs/AV/RTCP_Channel.cpp: Fixed comment.
-
+
Tue Nov 13 14:31:44 2001 Craig Rodrigues <crodrigu@bbn.com>
@@ -17,7 +30,7 @@ Tue Nov 13 14:31:44 2001 Craig Rodrigues <crodrigu@bbn.com>
Tue Nov 13 14:14:24 2001 Craig Rodrigues <crodrigu@bbn.com>
- Fixes provided by Rob Ruff <rruff@scires.com>:
+ Fixes provided by Rob Ruff <rruff@scires.com>:
* orbsvcs/orbsvcs/AV/AVStreams_i.cpp:
* orbsvcs/orbsvcs/AV/AVStreams_i.i:
diff --git a/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp b/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp
index 6c5c63bf5f8..408173d5c21 100644
--- a/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp
+++ b/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp
@@ -1,4 +1,19 @@
-// $Id$
+//$Id$
+#ifndef lint
+static char const
+ace_cc_yyrcsid[] = "$FreeBSD: src/usr.bin/yacc/skeleton.c,v 1.28 2000/01/17 02:04:06 bde Exp $";
+#endif
+#include <stdlib.h>
+#define ACE_CC_YYBYACC 1
+#define ACE_CC_YYMAJOR 1
+#define ACE_CC_YYMINOR 9
+#define ACE_CC_YYLEX ace_cc_yylex()
+#define ACE_CC_YYEMPTY -1
+#define ace_cc_yyclearin (ace_cc_yychar=(ACE_CC_YYEMPTY))
+#define ace_cc_yyerrok (ace_cc_yyerrflag=0)
+#define ACE_CC_YYRECOVERING() (ace_cc_yyerrflag!=0)
+static int ace_cc_yygrowstack();
+#define ACE_CC_YYPREFIX "ace_cc_yy"
#include "CC_command.h"
#include "ace/ACE.h"
#include "orbsvcs/CosConcurrencyControlC.h"
@@ -10,90 +25,176 @@ extern int line_no;
extern char line_buf[500];
extern char *ace_cc_yytext;
extern CC_CommandList *cmdlist;
-typedef union
-#ifdef __cplusplus
- ACE_CC_YYSTYPE
-#endif
- {
+typedef union {
CC_Command *command;
CosConcurrencyControl::lock_mode lock_mode;
char *id;
int num;
} ACE_CC_YYSTYPE;
-# define T_START_CMD 257
-# define T_CREATE_CMD 258
-# define T_LOCK_CMD 259
-# define T_UNLOCK_CMD 260
-# define T_TRYLOCK_CMD 261
-# define T_CHANGEMODE_CMD 262
-# define T_SLEEP_CMD 263
-# define T_WAIT_CMD 264
-# define T_REPEAT_CMD 265
-# define T_EXCEP_CMD 266
-# define T_PRINT_CMD 267
-# define T_LOOKUP_CMD 268
-# define T_TERM 269
-# define T_READ 270
-# define T_IREAD 271
-# define T_UPGRADE 272
-# define T_WRITE 273
-# define T_IWRITE 274
-# define T_IDENT 275
-# define Q_STRING 276
-# define T_NUM 277
-
-#include <inttypes.h>
-
-#ifdef __STDC__
-#include <stdlib.h>
-#include <string.h>
-#else
-#include <malloc.h>
-#include <memory.h>
-#endif
-
-#include <values.h>
-
-#if defined(__cplusplus) || defined(__STDC__)
-
-#if defined(__cplusplus) && defined(__EXTERN_C__)
-extern "C" {
-#endif
-#ifndef ace_cc_yyerror
-#if defined(__cplusplus)
- void ace_cc_yyerror(const char *);
+#define ACE_CC_YYERRCODE 256
+#define T_START_CMD 257
+#define T_CREATE_CMD 258
+#define T_LOCK_CMD 259
+#define T_UNLOCK_CMD 260
+#define T_TRYLOCK_CMD 261
+#define T_CHANGEMODE_CMD 262
+#define T_SLEEP_CMD 263
+#define T_WAIT_CMD 264
+#define T_REPEAT_CMD 265
+#define T_EXCEP_CMD 266
+#define T_PRINT_CMD 267
+#define T_LOOKUP_CMD 268
+#define T_TERM 269
+#define T_READ 270
+#define T_IREAD 271
+#define T_UPGRADE 272
+#define T_WRITE 273
+#define T_IWRITE 274
+#define T_IDENT 275
+#define Q_STRING 276
+#define T_NUM 277
+const short ace_cc_yylhs[] = { -1,
+ 0, 0, 6, 6, 1, 1, 1, 1, 1, 1,
+ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ 1, 1, 2, 3, 4, 5, 5, 5, 5, 5,
+};
+const short ace_cc_yylen[] = { 2,
+ 0, 1, 2, 1, 3, 3, 2, 4, 3, 4,
+ 3, 4, 3, 5, 4, 3, 2, 3, 3, 3,
+ 3, 3, 1, 1, 1, 1, 1, 1, 1, 1,
+};
+const short ace_cc_yydefred[] = { 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 4, 0, 23, 0, 7, 24, 0,
+ 26, 27, 28, 29, 30, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 17, 0, 0, 25, 0, 0,
+ 0, 3, 5, 6, 0, 9, 0, 11, 0, 13,
+ 0, 0, 16, 18, 21, 22, 19, 20, 8, 10,
+ 12, 0, 15, 14,
+};
+const short ace_cc_yydgoto[] = { 13,
+ 14, 17, 20, 39, 27, 15,
+};
+const short ace_cc_yysindex[] = { -254,
+ -260, -239, -233, -233, -233, -233, -256, -249, -246, -252,
+ -244, -242, 0, 0, -254, 0, -235, 0, 0, -234,
+ 0, 0, 0, 0, 0, -222, -226, -222, -225, -222,
+ -224, -222, -222, -223, 0, -216, -215, 0, -214, -213,
+ -212, 0, 0, 0, -211, 0, -210, 0, -209, 0,
+ -222, -208, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, -207, 0, 0,
+};
+const short ace_cc_yyrindex[] = { 63,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 64, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
+ 0, 0, 0, 0,
+};
+const short ace_cc_yygindex[] = { 0,
+ 50, 0, 13, 0, -4, 0,
+};
+#define ACE_CC_YYTABLESIZE 65
+const short ace_cc_yytable[] = { 29,
+ 31, 33, 1, 2, 3, 4, 5, 6, 7, 8,
+ 9, 10, 11, 12, 16, 26, 28, 30, 32, 35,
+ 34, 45, 38, 47, 41, 49, 36, 51, 52, 18,
+ 37, 40, 19, 43, 44, 19, 21, 22, 23, 24,
+ 25, 19, 46, 48, 50, 53, 62, 21, 22, 23,
+ 24, 25, 54, 55, 56, 57, 58, 59, 60, 61,
+ 63, 64, 1, 2, 42,
+};
+const short ace_cc_yycheck[] = { 4,
+ 5, 6, 257, 258, 259, 260, 261, 262, 263, 264,
+ 265, 266, 267, 268, 275, 3, 4, 5, 6, 269,
+ 277, 26, 275, 28, 12, 30, 276, 32, 33, 269,
+ 277, 276, 275, 269, 269, 275, 270, 271, 272, 273,
+ 274, 275, 269, 269, 269, 269, 51, 270, 271, 272,
+ 273, 274, 269, 269, 269, 269, 269, 269, 269, 269,
+ 269, 269, 0, 0, 15,
+};
+#define ACE_CC_YYFINAL 13
+#ifndef ACE_CC_YYDEBUG
+#define ACE_CC_YYDEBUG 0
#endif
+#define ACE_CC_YYMAXTOKEN 277
+#if ACE_CC_YYDEBUG
+const char * const ace_cc_yyname[] = {
+"end-of-file",0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,"T_START_CMD","T_CREATE_CMD",
+"T_LOCK_CMD","T_UNLOCK_CMD","T_TRYLOCK_CMD","T_CHANGEMODE_CMD","T_SLEEP_CMD",
+"T_WAIT_CMD","T_REPEAT_CMD","T_EXCEP_CMD","T_PRINT_CMD","T_LOOKUP_CMD","T_TERM",
+"T_READ","T_IREAD","T_UPGRADE","T_WRITE","T_IWRITE","T_IDENT","Q_STRING",
+"T_NUM",
+};
+const char * const ace_cc_yyrule[] = {
+"$accept : start",
+"start :",
+"start : cmd_list",
+"cmd_list : cmd_list cmd",
+"cmd_list : cmd",
+"cmd : T_START_CMD config_file_name T_TERM",
+"cmd : T_CREATE_CMD lock_set_name T_TERM",
+"cmd : T_CREATE_CMD T_TERM",
+"cmd : T_LOCK_CMD lock_set_name lock_mode T_TERM",
+"cmd : T_LOCK_CMD lock_mode T_TERM",
+"cmd : T_UNLOCK_CMD lock_set_name lock_mode T_TERM",
+"cmd : T_UNLOCK_CMD lock_mode T_TERM",
+"cmd : T_TRYLOCK_CMD lock_set_name lock_mode T_TERM",
+"cmd : T_TRYLOCK_CMD lock_mode T_TERM",
+"cmd : T_CHANGEMODE_CMD lock_set_name lock_mode lock_mode T_TERM",
+"cmd : T_CHANGEMODE_CMD lock_mode lock_mode T_TERM",
+"cmd : T_SLEEP_CMD T_NUM T_TERM",
+"cmd : T_WAIT_CMD T_TERM",
+"cmd : T_WAIT_CMD Q_STRING T_TERM",
+"cmd : T_PRINT_CMD Q_STRING T_TERM",
+"cmd : T_LOOKUP_CMD lock_set_name T_TERM",
+"cmd : T_REPEAT_CMD T_NUM T_TERM",
+"cmd : T_EXCEP_CMD exception_name T_TERM",
+"config_file_name : T_IDENT",
+"lock_set_name : T_IDENT",
+"exception_name : T_IDENT",
+"lock_mode : T_READ",
+"lock_mode : T_IREAD",
+"lock_mode : T_UPGRADE",
+"lock_mode : T_WRITE",
+"lock_mode : T_IWRITE",
+};
#endif
-#ifndef ace_cc_yylex
- int ace_cc_yylex(void);
+#if ACE_CC_YYDEBUG
+#include <stdio.h>
#endif
- int ace_cc_yyparse(void);
-#if defined(__cplusplus) && defined(__EXTERN_C__)
-}
+#ifdef ACE_CC_YYSTACKSIZE
+#undef ACE_CC_YYMAXDEPTH
+#define ACE_CC_YYMAXDEPTH ACE_CC_YYSTACKSIZE
+#else
+#ifdef ACE_CC_YYMAXDEPTH
+#define ACE_CC_YYSTACKSIZE ACE_CC_YYMAXDEPTH
+#else
+#define ACE_CC_YYSTACKSIZE 10000
+#define ACE_CC_YYMAXDEPTH 10000
#endif
-
#endif
-
-#define ace_cc_yyclearin ace_cc_yychar = -1
-#define ace_cc_yyerrok ace_cc_yyerrflag = 0
-extern int ace_cc_yychar;
-extern int ace_cc_yyerrflag;
-ACE_CC_YYSTYPE ace_cc_yylval;
+#define ACE_CC_YYINITSTACKSIZE 200
+int ace_cc_yydebug;
+int ace_cc_yynerrs;
+int ace_cc_yyerrflag;
+int ace_cc_yychar;
+short *ace_cc_yyssp;
+ACE_CC_YYSTYPE *ace_cc_yyvsp;
ACE_CC_YYSTYPE ace_cc_yyval;
-typedef int ace_cc_yytabelem;
-#ifndef ACE_CC_YYMAXDEPTH
-#define ACE_CC_YYMAXDEPTH 150
-#endif
-#if ACE_CC_YYMAXDEPTH > 0
-int ace_cc_yy_ace_cc_yys[ACE_CC_YYMAXDEPTH], *ace_cc_yys = ace_cc_yy_ace_cc_yys;
-ACE_CC_YYSTYPE ace_cc_yy_ace_cc_yyv[ACE_CC_YYMAXDEPTH], *ace_cc_yyv = ace_cc_yy_ace_cc_yyv;
-#else /* user does initial allocation */
-int *ace_cc_yys;
-ACE_CC_YYSTYPE *ace_cc_yyv;
-#endif
-static int ace_cc_yymaxdepth = ACE_CC_YYMAXDEPTH;
-# define ACE_CC_YYERRCODE 256
-
+ACE_CC_YYSTYPE ace_cc_yylval;
+short *ace_cc_yyss;
+short *ace_cc_yysslim;
+ACE_CC_YYSTYPE *ace_cc_yyvs;
+int ace_cc_yystacksize;
void
ace_cc_yyerror (const char *s)
@@ -105,706 +206,346 @@ ace_cc_yyerror (const char *s)
line_buf);
ACE_OS::exit (-1);
}
-static const ace_cc_yytabelem ace_cc_yyexca[] ={
--1, 1,
- 0, -1,
- -2, 0,
- };
-# define ACE_CC_YYNPROD 31
-# define ACE_CC_YYLAST 102
-static const ace_cc_yytabelem ace_cc_yyact[]={
-
- 24, 25, 26, 27, 28, 21, 4, 5, 6, 7,
- 8, 9, 10, 11, 14, 15, 12, 13, 24, 25,
- 26, 27, 28, 40, 36, 64, 20, 35, 38, 42,
- 63, 37, 21, 21, 18, 61, 60, 59, 58, 57,
- 56, 55, 54, 53, 50, 48, 46, 44, 43, 23,
- 2, 3, 1, 19, 16, 41, 17, 30, 32, 34,
- 22, 29, 31, 33, 0, 0, 0, 39, 0, 0,
- 0, 0, 45, 0, 0, 0, 0, 0, 0, 47,
- 0, 49, 0, 51, 52, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
- 0, 62 };
-static const ace_cc_yytabelem ace_cc_yypact[]={
-
- -251,-10000000, -251,-10000000, -241, -243, -270, -270, -270, -270,
- -250, -245, -248, -242, -254, -246,-10000000, -221,-10000000, -222,
--10000000,-10000000, -252, -223,-10000000,-10000000,-10000000,-10000000,-10000000, -252,
- -224, -252, -225, -252, -252, -226,-10000000, -227, -228, -229,
- -230, -231,-10000000,-10000000,-10000000, -232,-10000000, -233,-10000000, -234,
--10000000, -252, -239,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,-10000000,
--10000000,-10000000, -244,-10000000,-10000000 };
-static const ace_cc_yytabelem ace_cc_yypgo[]={
-
- 0, 51, 56, 53, 55, 49, 52, 50 };
-static const ace_cc_yytabelem ace_cc_yyr1[]={
-
- 0, 6, 6, 7, 7, 1, 1, 1, 1, 1,
- 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- 1, 1, 1, 2, 3, 4, 5, 5, 5, 5,
- 5 };
-static const ace_cc_yytabelem ace_cc_yyr2[]={
-
- 0, 0, 3, 5, 3, 7, 7, 5, 9, 7,
- 9, 7, 9, 7, 11, 9, 7, 5, 7, 7,
- 7, 7, 7, 3, 3, 3, 3, 3, 3, 3,
- 3 };
-static const ace_cc_yytabelem ace_cc_yychk[]={
-
--10000000, -6, -7, -1, 257, 258, 259, 260, 261, 262,
- 263, 264, 267, 268, 265, 266, -1, -2, 275, -3,
- 269, 275, -3, -5, 270, 271, 272, 273, 274, -3,
- -5, -3, -5, -3, -5, 277, 269, 276, 276, -3,
- 277, -4, 275, 269, 269, -5, 269, -5, 269, -5,
- 269, -5, -5, 269, 269, 269, 269, 269, 269, 269,
- 269, 269, -5, 269, 269 };
-static const ace_cc_yytabelem ace_cc_yydef[]={
-
- 1, -2, 2, 4, 0, 0, 0, 0, 0, 0,
- 0, 0, 0, 0, 0, 0, 3, 0, 23, 0,
- 7, 24, 0, 0, 26, 27, 28, 29, 30, 0,
- 0, 0, 0, 0, 0, 0, 17, 0, 0, 0,
- 0, 0, 25, 5, 6, 0, 9, 0, 11, 0,
- 13, 0, 0, 16, 18, 19, 20, 21, 22, 8,
- 10, 12, 0, 15, 14 };
-typedef struct
-#ifdef __cplusplus
- ace_cc_yytoktype
-#endif
-{ char *t_name; int t_val; } ace_cc_yytoktype;
-#ifndef ACE_CC_YYDEBUG
-# define ACE_CC_YYDEBUG 0 /* don't allow debugging */
-#endif
-
-#if ACE_CC_YYDEBUG
-
-ace_cc_yytoktype ace_cc_yytoks[] =
+/* allocate initial stack or double stack size, up to ACE_CC_YYMAXDEPTH */
+static int ace_cc_yygrowstack()
{
- "T_START_CMD", 257,
- "T_CREATE_CMD", 258,
- "T_LOCK_CMD", 259,
- "T_UNLOCK_CMD", 260,
- "T_TRYLOCK_CMD", 261,
- "T_CHANGEMODE_CMD", 262,
- "T_SLEEP_CMD", 263,
- "T_WAIT_CMD", 264,
- "T_REPEAT_CMD", 265,
- "T_EXCEP_CMD", 266,
- "T_PRINT_CMD", 267,
- "T_LOOKUP_CMD", 268,
- "T_TERM", 269,
- "T_READ", 270,
- "T_IREAD", 271,
- "T_UPGRADE", 272,
- "T_WRITE", 273,
- "T_IWRITE", 274,
- "T_IDENT", 275,
- "Q_STRING", 276,
- "T_NUM", 277,
- "-unknown-", -1 /* ends search */
-};
-
-char * ace_cc_yyreds[] =
-{
- "-no such reduction-",
- "start : /* empty */",
- "start : cmd_list",
- "cmd_list : cmd_list cmd",
- "cmd_list : cmd",
- "cmd : T_START_CMD config_file_name T_TERM",
- "cmd : T_CREATE_CMD lock_set_name T_TERM",
- "cmd : T_CREATE_CMD T_TERM",
- "cmd : T_LOCK_CMD lock_set_name lock_mode T_TERM",
- "cmd : T_LOCK_CMD lock_mode T_TERM",
- "cmd : T_UNLOCK_CMD lock_set_name lock_mode T_TERM",
- "cmd : T_UNLOCK_CMD lock_mode T_TERM",
- "cmd : T_TRYLOCK_CMD lock_set_name lock_mode T_TERM",
- "cmd : T_TRYLOCK_CMD lock_mode T_TERM",
- "cmd : T_CHANGEMODE_CMD lock_set_name lock_mode lock_mode T_TERM",
- "cmd : T_CHANGEMODE_CMD lock_mode lock_mode T_TERM",
- "cmd : T_SLEEP_CMD T_NUM T_TERM",
- "cmd : T_WAIT_CMD T_TERM",
- "cmd : T_WAIT_CMD Q_STRING T_TERM",
- "cmd : T_PRINT_CMD Q_STRING T_TERM",
- "cmd : T_LOOKUP_CMD lock_set_name T_TERM",
- "cmd : T_REPEAT_CMD T_NUM T_TERM",
- "cmd : T_EXCEP_CMD exception_name T_TERM",
- "config_file_name : T_IDENT",
- "lock_set_name : T_IDENT",
- "exception_name : T_IDENT",
- "lock_mode : T_READ",
- "lock_mode : T_IREAD",
- "lock_mode : T_UPGRADE",
- "lock_mode : T_WRITE",
- "lock_mode : T_IWRITE",
-};
-#endif /* ACE_CC_YYDEBUG */
-/*
- * Copyright (c) 1993 by Sun Microsystems, Inc.
- */
-
-#pragma ident "@(#)yaccpar 6.15 97/12/08 SMI"
-
-/*
-** Skeleton parser driver for yacc output
-*/
-
-/*
-** yacc user known macros and defines
-*/
-#define ACE_CC_YYERROR goto ace_cc_yyerrlab
-#define ACE_CC_YYACCEPT return(0)
-#define ACE_CC_YYABORT return(1)
-#define ACE_CC_YYBACKUP( newtoken, newvalue )\
-{\
- if ( ace_cc_yychar >= 0 || ( ace_cc_yyr2[ ace_cc_yytmp ] >> 1 ) != 1 )\
- {\
- ace_cc_yyerror( "syntax error - cannot backup" );\
- goto ace_cc_yyerrlab;\
- }\
- ace_cc_yychar = newtoken;\
- ace_cc_yystate = *ace_cc_yyps;\
- ace_cc_yylval = newvalue;\
- goto ace_cc_yynewstate;\
+ int newsize, i;
+ short *newss;
+ ACE_CC_YYSTYPE *newvs;
+
+ if ((newsize = ace_cc_yystacksize) == 0)
+ newsize = ACE_CC_YYINITSTACKSIZE;
+ else if (newsize >= ACE_CC_YYMAXDEPTH)
+ return -1;
+ else if ((newsize *= 2) > ACE_CC_YYMAXDEPTH)
+ newsize = ACE_CC_YYMAXDEPTH;
+ i = ace_cc_yyssp - ace_cc_yyss;
+ newss = ace_cc_yyss ? (short *)realloc(ace_cc_yyss, newsize * sizeof *newss) :
+ (short *)malloc(newsize * sizeof *newss);
+ if (newss == NULL)
+ return -1;
+ ace_cc_yyss = newss;
+ ace_cc_yyssp = newss + i;
+ newvs = ace_cc_yyvs ? (ACE_CC_YYSTYPE *)realloc(ace_cc_yyvs, newsize * sizeof *newvs) :
+ (ACE_CC_YYSTYPE *)malloc(newsize * sizeof *newvs);
+ if (newvs == NULL)
+ return -1;
+ ace_cc_yyvs = newvs;
+ ace_cc_yyvsp = newvs + i;
+ ace_cc_yystacksize = newsize;
+ ace_cc_yysslim = ace_cc_yyss + newsize - 1;
+ return 0;
}
-#define ACE_CC_YYRECOVERING() (!!ace_cc_yyerrflag)
-#define ACE_CC_YYNEW(type) malloc(sizeof(type) * ace_cc_yynewmax)
-#define ACE_CC_YYCOPY(to, from, type) \
- (type *) memcpy(to, (char *) from, ace_cc_yymaxdepth * sizeof (type))
-#define ACE_CC_YYENLARGE( from, type) \
- (type *) realloc((char *) from, ace_cc_yynewmax * sizeof(type))
-#ifndef ACE_CC_YYDEBUG
-# define ACE_CC_YYDEBUG 1 /* make debugging available */
-#endif
-
-/*
-** user known globals
-*/
-int ace_cc_yydebug; /* set to 1 to get debugging */
-
-/*
-** driver internal defines
-*/
-#define ACE_CC_YYFLAG (-10000000)
-
-/*
-** global variables used by the parser
-*/
-ACE_CC_YYSTYPE *ace_cc_yypv; /* top of value stack */
-int *ace_cc_yyps; /* top of state stack */
-
-int ace_cc_yystate; /* current state */
-int ace_cc_yytmp; /* extra var (lasts between blocks) */
-
-int ace_cc_yynerrs; /* number of errors */
-int ace_cc_yyerrflag; /* error recovery flag */
-int ace_cc_yychar; /* current input token number */
-
-
-#ifdef ACE_CC_YYNMBCHARS
-#define ACE_CC_YYLEX() ace_cc_yycvtok(ace_cc_yylex())
-/*
-** ace_cc_yycvtok - return a token if i is a wchar_t value that exceeds 255.
-** If i<255, i itself is the token. If i>255 but the neither
-** of the 30th or 31st bit is on, i is already a token.
-*/
-#if defined(__STDC__) || defined(__cplusplus)
-int ace_cc_yycvtok(int i)
-#else
-int ace_cc_yycvtok(i) int i;
-#endif
-{
- int first = 0;
- int last = ACE_CC_YYNMBCHARS - 1;
- int mid;
- wchar_t j;
-
- if(i&0x60000000){/*Must convert to a token. */
- if( ace_cc_yymbchars[last].character < i ){
- return i;/*Giving up*/
- }
- while ((last>=first)&&(first>=0)) {/*Binary search loop*/
- mid = (first+last)/2;
- j = ace_cc_yymbchars[mid].character;
- if( j==i ){/*Found*/
- return ace_cc_yymbchars[mid].tvalue;
- }else if( j<i ){
- first = mid + 1;
- }else{
- last = mid -1;
- }
- }
- /*No entry in the table.*/
- return i;/* Giving up.*/
- }else{/* i is already a token. */
- return i;
- }
-}
-#else/*!ACE_CC_YYNMBCHARS*/
-#define ACE_CC_YYLEX() ace_cc_yylex()
-#endif/*!ACE_CC_YYNMBCHARS*/
-
-/*
-** ace_cc_yyparse - return 0 if worked, 1 if syntax error not recovered from
-*/
-#if defined(__STDC__) || defined(__cplusplus)
-int ace_cc_yyparse(void)
-#else
-int ace_cc_yyparse()
+#define ACE_CC_YYABORT goto ace_cc_yyabort
+#define ACE_CC_YYREJECT goto ace_cc_yyabort
+#define ACE_CC_YYACCEPT goto ace_cc_yyaccept
+#define ACE_CC_YYERROR goto ace_cc_yyerrlab
+
+#ifndef ACE_CC_YYPARSE_PARAM
+#if defined(__cplusplus) || __STDC__
+#define ACE_CC_YYPARSE_PARAM_ARG void
+#define ACE_CC_YYPARSE_PARAM_DECL
+#else /* ! ANSI-C/C++ */
+#define ACE_CC_YYPARSE_PARAM_ARG
+#define ACE_CC_YYPARSE_PARAM_DECL
+#endif /* ANSI-C/C++ */
+#else /* ACE_CC_YYPARSE_PARAM */
+#ifndef ACE_CC_YYPARSE_PARAM_TYPE
+#define ACE_CC_YYPARSE_PARAM_TYPE void *
#endif
+#if defined(__cplusplus) || __STDC__
+#define ACE_CC_YYPARSE_PARAM_ARG ACE_CC_YYPARSE_PARAM_TYPE ACE_CC_YYPARSE_PARAM
+#define ACE_CC_YYPARSE_PARAM_DECL
+#else /* ! ANSI-C/C++ */
+#define ACE_CC_YYPARSE_PARAM_ARG ACE_CC_YYPARSE_PARAM
+#define ACE_CC_YYPARSE_PARAM_DECL ACE_CC_YYPARSE_PARAM_TYPE ACE_CC_YYPARSE_PARAM;
+#endif /* ANSI-C/C++ */
+#endif /* ! ACE_CC_YYPARSE_PARAM */
+
+int
+ace_cc_yyparse (ACE_CC_YYPARSE_PARAM_ARG)
+ ACE_CC_YYPARSE_PARAM_DECL
{
- register ACE_CC_YYSTYPE *ace_cc_yypvt = 0; /* top of value stack for $vars */
-
-#if defined(__cplusplus) || defined(lint)
-/*
- hacks to please C++ and lint - goto's inside
- switch should never be executed
-*/
- static int __yaccpar_lint_hack__ = 0;
- switch (__yaccpar_lint_hack__)
- {
- case 1: goto ace_cc_yyerrlab;
- case 2: goto ace_cc_yynewstate;
- }
-#endif
-
- /*
- ** Initialize externals - ace_cc_yyparse may be called more than once
- */
- ace_cc_yypv = &ace_cc_yyv[-1];
- ace_cc_yyps = &ace_cc_yys[-1];
- ace_cc_yystate = 0;
- ace_cc_yytmp = 0;
- ace_cc_yynerrs = 0;
- ace_cc_yyerrflag = 0;
- ace_cc_yychar = -1;
-
-#if ACE_CC_YYMAXDEPTH <= 0
- if (ace_cc_yymaxdepth <= 0)
- {
- if ((ace_cc_yymaxdepth = ACE_CC_YYEXPAND(0)) <= 0)
- {
- ace_cc_yyerror("yacc initialization error");
- ACE_CC_YYABORT;
- }
- }
+ register int ace_cc_yym, ace_cc_yyn, ace_cc_yystate;
+#if ACE_CC_YYDEBUG
+ register const char *ace_cc_yys;
+
+ if ((ace_cc_yys = ACE_OS::getenv("ACE_CC_YYDEBUG")))
+ {
+ ace_cc_yyn = *ace_cc_yys;
+ if (ace_cc_yyn >= '0' && ace_cc_yyn <= '9')
+ ace_cc_yydebug = ace_cc_yyn - '0';
+ }
#endif
- {
- register ACE_CC_YYSTYPE *ace_cc_yy_pv; /* top of value stack */
- register int *ace_cc_yy_ps; /* top of state stack */
- register int ace_cc_yy_state; /* current state */
- register int ace_cc_yy_n; /* internal state number info */
- goto ace_cc_yystack; /* moved from 6 lines above to here to please C++ */
-
- /*
- ** get globals into registers.
- ** branch to here only if ACE_CC_YYBACKUP was called.
- */
- ace_cc_yynewstate:
- ace_cc_yy_pv = ace_cc_yypv;
- ace_cc_yy_ps = ace_cc_yyps;
- ace_cc_yy_state = ace_cc_yystate;
- goto ace_cc_yy_newstate;
+ ace_cc_yynerrs = 0;
+ ace_cc_yyerrflag = 0;
+ ace_cc_yychar = (-1);
- /*
- ** get globals into registers.
- ** either we just started, or we just finished a reduction
- */
- ace_cc_yystack:
- ace_cc_yy_pv = ace_cc_yypv;
- ace_cc_yy_ps = ace_cc_yyps;
- ace_cc_yy_state = ace_cc_yystate;
+ if (ace_cc_yyss == NULL && ace_cc_yygrowstack()) goto ace_cc_yyoverflow;
+ ace_cc_yyssp = ace_cc_yyss;
+ ace_cc_yyvsp = ace_cc_yyvs;
+ *ace_cc_yyssp = ace_cc_yystate = 0;
- /*
- ** top of for (;;) loop while no reductions done
- */
- ace_cc_yy_stack:
- /*
- ** put a state and value onto the stacks
- */
+ace_cc_yyloop:
+ if ((ace_cc_yyn = ace_cc_yydefred[ace_cc_yystate])) goto ace_cc_yyreduce;
+ if (ace_cc_yychar < 0)
+ {
+ if ((ace_cc_yychar = ace_cc_yylex()) < 0) ace_cc_yychar = 0;
#if ACE_CC_YYDEBUG
- /*
- ** if debugging, look up token value in list of value vs.
- ** name pairs. 0 and negative (-1) are special values.
- ** Note: linear search is used since time is not a real
- ** consideration while debugging.
- */
- if ( ace_cc_yydebug )
- {
- register int ace_cc_yy_i;
-
- printf( "State %d, token ", ace_cc_yy_state );
- if ( ace_cc_yychar == 0 )
- printf( "end-of-file\n" );
- else if ( ace_cc_yychar < 0 )
- printf( "-none-\n" );
- else
- {
- for ( ace_cc_yy_i = 0; ace_cc_yytoks[ace_cc_yy_i].t_val >= 0;
- ace_cc_yy_i++ )
- {
- if ( ace_cc_yytoks[ace_cc_yy_i].t_val == ace_cc_yychar )
- break;
- }
- printf( "%s\n", ace_cc_yytoks[ace_cc_yy_i].t_name );
- }
- }
-#endif /* ACE_CC_YYDEBUG */
- if ( ++ace_cc_yy_ps >= &ace_cc_yys[ ace_cc_yymaxdepth ] ) /* room on stack? */
- {
- /*
- ** reallocate and recover. Note that pointers
- ** have to be reset, or bad things will happen
- */
- long ace_cc_yyps_index = (ace_cc_yy_ps - ace_cc_yys);
- long ace_cc_yypv_index = (ace_cc_yy_pv - ace_cc_yyv);
- long ace_cc_yypvt_index = (ace_cc_yypvt - ace_cc_yyv);
- int ace_cc_yynewmax;
-#ifdef ACE_CC_YYEXPAND
- ace_cc_yynewmax = ACE_CC_YYEXPAND(ace_cc_yymaxdepth);
-#else
- ace_cc_yynewmax = 2 * ace_cc_yymaxdepth; /* double table size */
- if (ace_cc_yymaxdepth == ACE_CC_YYMAXDEPTH) /* first time growth */
- {
- char *newace_cc_yys = (char *)ACE_CC_YYNEW(int);
- char *newace_cc_yyv = (char *)ACE_CC_YYNEW(ACE_CC_YYSTYPE);
- if (newace_cc_yys != 0 && newace_cc_yyv != 0)
- {
- ace_cc_yys = ACE_CC_YYCOPY(newace_cc_yys, ace_cc_yys, int);
- ace_cc_yyv = ACE_CC_YYCOPY(newace_cc_yyv, ace_cc_yyv, ACE_CC_YYSTYPE);
- }
- else
- ace_cc_yynewmax = 0; /* failed */
- }
- else /* not first time */
- {
- ace_cc_yys = ACE_CC_YYENLARGE(ace_cc_yys, int);
- ace_cc_yyv = ACE_CC_YYENLARGE(ace_cc_yyv, ACE_CC_YYSTYPE);
- if (ace_cc_yys == 0 || ace_cc_yyv == 0)
- ace_cc_yynewmax = 0; /* failed */
- }
+ if (ace_cc_yydebug)
+ {
+ ace_cc_yys = 0;
+ if (ace_cc_yychar <= ACE_CC_YYMAXTOKEN) ace_cc_yys = ace_cc_yyname[ace_cc_yychar];
+ if (!ace_cc_yys) ace_cc_yys = "illegal-symbol";
+ printf("%sdebug: state %d, reading %d (%s)\n",
+ ACE_CC_YYPREFIX, ace_cc_yystate, ace_cc_yychar, ace_cc_yys);
+ }
#endif
- if (ace_cc_yynewmax <= ace_cc_yymaxdepth) /* tables not expanded */
- {
- ace_cc_yyerror( "yacc stack overflow" );
- ACE_CC_YYABORT;
- }
- ace_cc_yymaxdepth = ace_cc_yynewmax;
-
- ace_cc_yy_ps = ace_cc_yys + ace_cc_yyps_index;
- ace_cc_yy_pv = ace_cc_yyv + ace_cc_yypv_index;
- ace_cc_yypvt = ace_cc_yyv + ace_cc_yypvt_index;
- }
- *ace_cc_yy_ps = ace_cc_yy_state;
- *++ace_cc_yy_pv = ace_cc_yyval;
-
- /*
- ** we have a new state - find out what to do
- */
- ace_cc_yy_newstate:
- if ( ( ace_cc_yy_n = ace_cc_yypact[ ace_cc_yy_state ] ) <= ACE_CC_YYFLAG )
- goto ace_cc_yydefault; /* simple state */
+ }
+ if ((ace_cc_yyn = ace_cc_yysindex[ace_cc_yystate]) && (ace_cc_yyn += ace_cc_yychar) >= 0 &&
+ ace_cc_yyn <= ACE_CC_YYTABLESIZE && ace_cc_yycheck[ace_cc_yyn] == ace_cc_yychar)
+ {
#if ACE_CC_YYDEBUG
- /*
- ** if debugging, need to mark whether new token grabbed
- */
- ace_cc_yytmp = ace_cc_yychar < 0;
+ if (ace_cc_yydebug)
+ printf("%sdebug: state %d, shifting to state %d\n",
+ ACE_CC_YYPREFIX, ace_cc_yystate, ace_cc_yytable[ace_cc_yyn]);
#endif
- if ( ( ace_cc_yychar < 0 ) && ( ( ace_cc_yychar = ACE_CC_YYLEX() ) < 0 ) )
- ace_cc_yychar = 0; /* reached EOF */
-#if ACE_CC_YYDEBUG
- if ( ace_cc_yydebug && ace_cc_yytmp )
- {
- register int ace_cc_yy_i;
+ if (ace_cc_yyssp >= ace_cc_yysslim && ace_cc_yygrowstack())
+ {
+ goto ace_cc_yyoverflow;
+ }
+ *++ace_cc_yyssp = ace_cc_yystate = ace_cc_yytable[ace_cc_yyn];
+ *++ace_cc_yyvsp = ace_cc_yylval;
+ ace_cc_yychar = (-1);
+ if (ace_cc_yyerrflag > 0) --ace_cc_yyerrflag;
+ goto ace_cc_yyloop;
+ }
+ if ((ace_cc_yyn = ace_cc_yyrindex[ace_cc_yystate]) && (ace_cc_yyn += ace_cc_yychar) >= 0 &&
+ ace_cc_yyn <= ACE_CC_YYTABLESIZE && ace_cc_yycheck[ace_cc_yyn] == ace_cc_yychar)
+ {
+ ace_cc_yyn = ace_cc_yytable[ace_cc_yyn];
+ goto ace_cc_yyreduce;
+ }
+ if (ace_cc_yyerrflag) goto ace_cc_yyinrecovery;
+#if defined(lint) || defined(__GNUC__)
- printf( "Received token " );
- if ( ace_cc_yychar == 0 )
- printf( "end-of-file\n" );
- else if ( ace_cc_yychar < 0 )
- printf( "-none-\n" );
- else
- {
- for ( ace_cc_yy_i = 0; ace_cc_yytoks[ace_cc_yy_i].t_val >= 0;
- ace_cc_yy_i++ )
- {
- if ( ace_cc_yytoks[ace_cc_yy_i].t_val == ace_cc_yychar )
- break;
- }
- printf( "%s\n", ace_cc_yytoks[ace_cc_yy_i].t_name );
- }
- }
-#endif /* ACE_CC_YYDEBUG */
- if ( ( ( ace_cc_yy_n += ace_cc_yychar ) < 0 ) || ( ace_cc_yy_n >= ACE_CC_YYLAST ) )
- goto ace_cc_yydefault;
- if ( ace_cc_yychk[ ace_cc_yy_n = ace_cc_yyact[ ace_cc_yy_n ] ] == ace_cc_yychar ) /*valid shift*/
- {
- ace_cc_yychar = -1;
- ace_cc_yyval = ace_cc_yylval;
- ace_cc_yy_state = ace_cc_yy_n;
- if ( ace_cc_yyerrflag > 0 )
- ace_cc_yyerrflag--;
- goto ace_cc_yy_stack;
- }
+#endif
- ace_cc_yydefault:
- if ( ( ace_cc_yy_n = ace_cc_yydef[ ace_cc_yy_state ] ) == -2 )
- {
-#if ACE_CC_YYDEBUG
- ace_cc_yytmp = ace_cc_yychar < 0;
+ ace_cc_yyerror("syntax error");
+#if defined(lint) || defined(__GNUC__)
+ goto ace_cc_yyerrlab;
#endif
- if ( ( ace_cc_yychar < 0 ) && ( ( ace_cc_yychar = ACE_CC_YYLEX() ) < 0 ) )
- ace_cc_yychar = 0; /* reached EOF */
+ace_cc_yyerrlab:
+ ++ace_cc_yynerrs;
+ace_cc_yyinrecovery:
+ if (ace_cc_yyerrflag < 3)
+ {
+ ace_cc_yyerrflag = 3;
+ for (;;)
+ {
+ if ((ace_cc_yyn = ace_cc_yysindex[*ace_cc_yyssp]) && (ace_cc_yyn += ACE_CC_YYERRCODE) >= 0 &&
+ ace_cc_yyn <= ACE_CC_YYTABLESIZE && ace_cc_yycheck[ace_cc_yyn] == ACE_CC_YYERRCODE)
+ {
#if ACE_CC_YYDEBUG
- if ( ace_cc_yydebug && ace_cc_yytmp )
- {
- register int ace_cc_yy_i;
-
- printf( "Received token " );
- if ( ace_cc_yychar == 0 )
- printf( "end-of-file\n" );
- else if ( ace_cc_yychar < 0 )
- printf( "-none-\n" );
- else
- {
- for ( ace_cc_yy_i = 0;
- ace_cc_yytoks[ace_cc_yy_i].t_val >= 0;
- ace_cc_yy_i++ )
- {
- if ( ace_cc_yytoks[ace_cc_yy_i].t_val
- == ace_cc_yychar )
- {
- break;
- }
- }
- printf( "%s\n", ace_cc_yytoks[ace_cc_yy_i].t_name );
- }
- }
-#endif /* ACE_CC_YYDEBUG */
- /*
- ** look through exception table
- */
- {
- register const int *ace_cc_yyxi = ace_cc_yyexca;
-
- while ( ( *ace_cc_yyxi != -1 ) ||
- ( ace_cc_yyxi[1] != ace_cc_yy_state ) )
- {
- ace_cc_yyxi += 2;
- }
- while ( ( *(ace_cc_yyxi += 2) >= 0 ) &&
- ( *ace_cc_yyxi != ace_cc_yychar ) )
- ;
- if ( ( ace_cc_yy_n = ace_cc_yyxi[1] ) < 0 )
- ACE_CC_YYACCEPT;
- }
- }
-
- /*
- ** check for syntax error
- */
- if ( ace_cc_yy_n == 0 ) /* have an error */
- {
- /* no worry about speed here! */
- switch ( ace_cc_yyerrflag )
- {
- case 0: /* new error */
- ace_cc_yyerror( "syntax error" );
- goto skip_init;
- ace_cc_yyerrlab:
- /*
- ** get globals into registers.
- ** we have a user generated syntax type error
- */
- ace_cc_yy_pv = ace_cc_yypv;
- ace_cc_yy_ps = ace_cc_yyps;
- ace_cc_yy_state = ace_cc_yystate;
- skip_init:
- ace_cc_yynerrs++;
- /* FALLTHRU */
- case 1:
- case 2: /* incompletely recovered error */
- /* try again... */
- ace_cc_yyerrflag = 3;
- /*
- ** find state where "error" is a legal
- ** shift action
- */
- while ( ace_cc_yy_ps >= ace_cc_yys )
- {
- ace_cc_yy_n = ace_cc_yypact[ *ace_cc_yy_ps ] + ACE_CC_YYERRCODE;
- if ( ace_cc_yy_n >= 0 && ace_cc_yy_n < ACE_CC_YYLAST &&
- ace_cc_yychk[ace_cc_yyact[ace_cc_yy_n]] == ACE_CC_YYERRCODE) {
- /*
- ** simulate shift of "error"
- */
- ace_cc_yy_state = ace_cc_yyact[ ace_cc_yy_n ];
- goto ace_cc_yy_stack;
- }
- /*
- ** current state has no shift on
- ** "error", pop stack
- */
+ if (ace_cc_yydebug)
+ printf("%sdebug: state %d, error recovery shifting\
+ to state %d\n", ACE_CC_YYPREFIX, *ace_cc_yyssp, ace_cc_yytable[ace_cc_yyn]);
+#endif
+ if (ace_cc_yyssp >= ace_cc_yysslim && ace_cc_yygrowstack())
+ {
+ goto ace_cc_yyoverflow;
+ }
+ *++ace_cc_yyssp = ace_cc_yystate = ace_cc_yytable[ace_cc_yyn];
+ *++ace_cc_yyvsp = ace_cc_yylval;
+ goto ace_cc_yyloop;
+ }
+ else
+ {
#if ACE_CC_YYDEBUG
-# define _POP_ "Error recovery pops state %d, uncovers state %d\n"
- if ( ace_cc_yydebug )
- printf( _POP_, *ace_cc_yy_ps,
- ace_cc_yy_ps[-1] );
-# undef _POP_
+ if (ace_cc_yydebug)
+ printf("%sdebug: error recovery discarding state %d\n",
+ ACE_CC_YYPREFIX, *ace_cc_yyssp);
#endif
- ace_cc_yy_ps--;
- ace_cc_yy_pv--;
- }
- /*
- ** there is no state on stack with "error" as
- ** a valid shift. give up.
- */
- ACE_CC_YYABORT;
- case 3: /* no shift yet; eat a token */
+ if (ace_cc_yyssp <= ace_cc_yyss) goto ace_cc_yyabort;
+ --ace_cc_yyssp;
+ --ace_cc_yyvsp;
+ }
+ }
+ }
+ else
+ {
+ if (ace_cc_yychar == 0) goto ace_cc_yyabort;
#if ACE_CC_YYDEBUG
- /*
- ** if debugging, look up token in list of
- ** pairs. 0 and negative shouldn't occur,
- ** but since timing doesn't matter when
- ** debugging, it doesn't hurt to leave the
- ** tests here.
- */
- if ( ace_cc_yydebug )
- {
- register int ace_cc_yy_i;
-
- printf( "Error recovery discards " );
- if ( ace_cc_yychar == 0 )
- printf( "token end-of-file\n" );
- else if ( ace_cc_yychar < 0 )
- printf( "token -none-\n" );
- else
- {
- for ( ace_cc_yy_i = 0;
- ace_cc_yytoks[ace_cc_yy_i].t_val >= 0;
- ace_cc_yy_i++ )
- {
- if ( ace_cc_yytoks[ace_cc_yy_i].t_val
- == ace_cc_yychar )
- {
- break;
- }
- }
- printf( "token %s\n",
- ace_cc_yytoks[ace_cc_yy_i].t_name );
- }
- }
-#endif /* ACE_CC_YYDEBUG */
- if ( ace_cc_yychar == 0 ) /* reached EOF. quit */
- ACE_CC_YYABORT;
- ace_cc_yychar = -1;
- goto ace_cc_yy_newstate;
- }
- }/* end if ( ace_cc_yy_n == 0 ) */
- /*
- ** reduction by production ace_cc_yy_n
- ** put stack tops, etc. so things right after switch
- */
+ if (ace_cc_yydebug)
+ {
+ ace_cc_yys = 0;
+ if (ace_cc_yychar <= ACE_CC_YYMAXTOKEN) ace_cc_yys = ace_cc_yyname[ace_cc_yychar];
+ if (!ace_cc_yys) ace_cc_yys = "illegal-symbol";
+ printf("%sdebug: state %d, error recovery discards token %d (%s)\n",
+ ACE_CC_YYPREFIX, ace_cc_yystate, ace_cc_yychar, ace_cc_yys);
+ }
+#endif
+ ace_cc_yychar = (-1);
+ goto ace_cc_yyloop;
+ }
+ace_cc_yyreduce:
#if ACE_CC_YYDEBUG
- /*
- ** if debugging, print the string that is the user's
- ** specification of the reduction which is just about
- ** to be done.
- */
- if ( ace_cc_yydebug )
- printf( "Reduce by (%d) \"%s\"\n",
- ace_cc_yy_n, ace_cc_yyreds[ ace_cc_yy_n ] );
+ if (ace_cc_yydebug)
+ printf("%sdebug: state %d, reducing by rule %d (%s)\n",
+ ACE_CC_YYPREFIX, ace_cc_yystate, ace_cc_yyn, ace_cc_yyrule[ace_cc_yyn]);
#endif
- ace_cc_yytmp = ace_cc_yy_n; /* value to switch over */
- ace_cc_yypvt = ace_cc_yy_pv; /* $vars top of value stack */
- /*
- ** Look in goto table for next state
- ** Sorry about using ace_cc_yy_state here as temporary
- ** register variable, but why not, if it works...
- ** If ace_cc_yyr2[ ace_cc_yy_n ] doesn't have the low order bit
- ** set, then there is no action to be done for
- ** this reduction. So, no saving & unsaving of
- ** registers done. The only difference between the
- ** code just after the if and the body of the if is
- ** the goto ace_cc_yy_stack in the body. This way the test
- ** can be made before the choice of what to do is needed.
- */
- {
- /* length of production doubled with extra bit */
- register int ace_cc_yy_len = ace_cc_yyr2[ ace_cc_yy_n ];
-
- if ( !( ace_cc_yy_len & 01 ) )
- {
- ace_cc_yy_len >>= 1;
- ace_cc_yyval = ( ace_cc_yy_pv -= ace_cc_yy_len )[1]; /* $$ = $1 */
- ace_cc_yy_state = ace_cc_yypgo[ ace_cc_yy_n = ace_cc_yyr1[ ace_cc_yy_n ] ] +
- *( ace_cc_yy_ps -= ace_cc_yy_len ) + 1;
- if ( ace_cc_yy_state >= ACE_CC_YYLAST ||
- ace_cc_yychk[ ace_cc_yy_state =
- ace_cc_yyact[ ace_cc_yy_state ] ] != -ace_cc_yy_n )
- {
- ace_cc_yy_state = ace_cc_yyact[ ace_cc_yypgo[ ace_cc_yy_n ] ];
- }
- goto ace_cc_yy_stack;
- }
- ace_cc_yy_len >>= 1;
- ace_cc_yyval = ( ace_cc_yy_pv -= ace_cc_yy_len )[1]; /* $$ = $1 */
- ace_cc_yy_state = ace_cc_yypgo[ ace_cc_yy_n = ace_cc_yyr1[ ace_cc_yy_n ] ] +
- *( ace_cc_yy_ps -= ace_cc_yy_len ) + 1;
- if ( ace_cc_yy_state >= ACE_CC_YYLAST ||
- ace_cc_yychk[ ace_cc_yy_state = ace_cc_yyact[ ace_cc_yy_state ] ] != -ace_cc_yy_n )
- {
- ace_cc_yy_state = ace_cc_yyact[ ace_cc_yypgo[ ace_cc_yy_n ] ];
- }
- }
- /* save until reenter driver code */
- ace_cc_yystate = ace_cc_yy_state;
- ace_cc_yyps = ace_cc_yy_ps;
- ace_cc_yypv = ace_cc_yy_pv;
- }
- /*
- ** code supplied by user is placed in this switch
- */
- switch( ace_cc_yytmp )
- {
-
-case 2:{ cmdlist->add(new CC_Sleep_Cmd(0));
+ ace_cc_yym = ace_cc_yylen[ace_cc_yyn];
+ ace_cc_yyval = ace_cc_yyvsp[1-ace_cc_yym];
+ switch (ace_cc_yyn)
+ {
+case 2:
+{ cmdlist->add(new CC_Sleep_Cmd(0));
/* dummy to check exeption in the last command */
- if(cmdlist->execute()!=0) //CC_FAIL
+ if(cmdlist->execute()!=0) /*CC_FAIL*/
{ printf(" ** Test succeded!!\n"); }
else
- { printf(" ** Test FAILED!!\n"); } } break;
-case 3:{ cmdlist->add(ace_cc_yypvt[-0].command); } break;
-case 4:{ cmdlist->add(ace_cc_yypvt[-0].command); } break;
-case 5:{ ace_cc_yyval.command = new CC_Start_Cmd(ace_cc_yypvt[-1].id); } break;
-case 6:{ ace_cc_yyval.command = new CC_CreateLockSet_Cmd(ace_cc_yypvt[-1].id); } break;
-case 7:{ ace_cc_yyval.command = new CC_CreateLockSet_Cmd(""); } break;
-case 8:{ ace_cc_yyval.command = new CC_Lock_Cmd(ace_cc_yypvt[-2].id, ace_cc_yypvt[-1].lock_mode); } break;
-case 9:{ ace_cc_yyval.command = new CC_Lock_Cmd("", ace_cc_yypvt[-1].lock_mode); } break;
-case 10:{ ace_cc_yyval.command = new CC_UnLock_Cmd(ace_cc_yypvt[-2].id, ace_cc_yypvt[-1].lock_mode); } break;
-case 11:{ ace_cc_yyval.command = new CC_UnLock_Cmd("", ace_cc_yypvt[-1].lock_mode); } break;
-case 12:{ ace_cc_yyval.command = new CC_TryLock_Cmd(ace_cc_yypvt[-2].id, ace_cc_yypvt[-1].lock_mode); } break;
-case 13:{ ace_cc_yyval.command = new CC_TryLock_Cmd("", ace_cc_yypvt[-1].lock_mode); } break;
-case 14:{ ace_cc_yyval.command = new CC_ChangeMode_Cmd(ace_cc_yypvt[-3].id, ace_cc_yypvt[-2].lock_mode, ace_cc_yypvt[-1].lock_mode); } break;
-case 15:{ ace_cc_yyval.command = new CC_ChangeMode_Cmd("", ace_cc_yypvt[-2].lock_mode, ace_cc_yypvt[-1].lock_mode); } break;
-case 16:{ ace_cc_yyval.command = new CC_Sleep_Cmd(ace_cc_yypvt[-1].num); } break;
-case 17:{ ace_cc_yyval.command = new CC_Wait_Cmd(""); } break;
-case 18:{ ace_cc_yyval.command = new CC_Wait_Cmd(ace_cc_yypvt[-1].id); } break;
-case 19:{ ace_cc_yyval.command = new CC_Print_Cmd(ace_cc_yypvt[-1].id); } break;
-case 20:{ ace_cc_yyval.command = new CC_Lookup_Cmd(ace_cc_yypvt[-1].id); } break;
-case 21:{ cmdlist->setrepeat(ace_cc_yypvt[-1].num);
- ace_cc_yyval.command = new CC_Dummy_Cmd();} break;
-case 22:{ ace_cc_yyval.command = new CC_Excep_Cmd(ace_cc_yypvt[-1].id); } break;
-case 23:{ace_cc_yyval.id = ace_cc_yypvt[-0].id; } break;
-case 24:{ace_cc_yyval.id = ace_cc_yypvt[-0].id; } break;
-case 25:{ace_cc_yyval.id = ace_cc_yypvt[-0].id; } break;
-case 26:{ ace_cc_yyval.lock_mode = CosConcurrencyControl::read; } break;
-case 27:{ ace_cc_yyval.lock_mode = CosConcurrencyControl::intention_read; } break;
-case 28:{ ace_cc_yyval.lock_mode = CosConcurrencyControl::upgrade; } break;
-case 29:{ ace_cc_yyval.lock_mode = CosConcurrencyControl::write; } break;
-case 30:{ ace_cc_yyval.lock_mode = CosConcurrencyControl::intention_write; } break;
- }
- goto ace_cc_yystack; /* reset registers in driver code */
+ { printf(" ** Test FAILED!!\n"); } }
+break;
+case 3:
+{ cmdlist->add(ace_cc_yyvsp[0].command); }
+break;
+case 4:
+{ cmdlist->add(ace_cc_yyvsp[0].command); }
+break;
+case 5:
+{ ace_cc_yyval.command = new CC_Start_Cmd(ace_cc_yyvsp[-1].id); }
+break;
+case 6:
+{ ace_cc_yyval.command = new CC_CreateLockSet_Cmd(ace_cc_yyvsp[-1].id); }
+break;
+case 7:
+{ ace_cc_yyval.command = new CC_CreateLockSet_Cmd(""); }
+break;
+case 8:
+{ ace_cc_yyval.command = new CC_Lock_Cmd(ace_cc_yyvsp[-2].id, ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 9:
+{ ace_cc_yyval.command = new CC_Lock_Cmd("", ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 10:
+{ ace_cc_yyval.command = new CC_UnLock_Cmd(ace_cc_yyvsp[-2].id, ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 11:
+{ ace_cc_yyval.command = new CC_UnLock_Cmd("", ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 12:
+{ ace_cc_yyval.command = new CC_TryLock_Cmd(ace_cc_yyvsp[-2].id, ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 13:
+{ ace_cc_yyval.command = new CC_TryLock_Cmd("", ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 14:
+{ ace_cc_yyval.command = new CC_ChangeMode_Cmd(ace_cc_yyvsp[-3].id, ace_cc_yyvsp[-2].lock_mode, ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 15:
+{ ace_cc_yyval.command = new CC_ChangeMode_Cmd("", ace_cc_yyvsp[-2].lock_mode, ace_cc_yyvsp[-1].lock_mode); }
+break;
+case 16:
+{ ace_cc_yyval.command = new CC_Sleep_Cmd(ace_cc_yyvsp[-1].num); }
+break;
+case 17:
+{ ace_cc_yyval.command = new CC_Wait_Cmd(""); }
+break;
+case 18:
+{ ace_cc_yyval.command = new CC_Wait_Cmd(ace_cc_yyvsp[-1].id); }
+break;
+case 19:
+{ ace_cc_yyval.command = new CC_Print_Cmd(ace_cc_yyvsp[-1].id); }
+break;
+case 20:
+{ ace_cc_yyval.command = new CC_Lookup_Cmd(ace_cc_yyvsp[-1].id); }
+break;
+case 21:
+{ cmdlist->setrepeat(ace_cc_yyvsp[-1].num);
+ ace_cc_yyval.command = new CC_Dummy_Cmd();}
+break;
+case 22:
+{ ace_cc_yyval.command = new CC_Excep_Cmd(ace_cc_yyvsp[-1].id); }
+break;
+case 23:
+{ace_cc_yyval.id = ace_cc_yyvsp[0].id; }
+break;
+case 24:
+{ace_cc_yyval.id = ace_cc_yyvsp[0].id; }
+break;
+case 25:
+{ace_cc_yyval.id = ace_cc_yyvsp[0].id; }
+break;
+case 26:
+{ ace_cc_yyval.lock_mode = CosConcurrencyControl::read; }
+break;
+case 27:
+{ ace_cc_yyval.lock_mode = CosConcurrencyControl::intention_read; }
+break;
+case 28:
+{ ace_cc_yyval.lock_mode = CosConcurrencyControl::upgrade; }
+break;
+case 29:
+{ ace_cc_yyval.lock_mode = CosConcurrencyControl::write; }
+break;
+case 30:
+{ ace_cc_yyval.lock_mode = CosConcurrencyControl::intention_write; }
+break;
+ }
+ ace_cc_yyssp -= ace_cc_yym;
+ ace_cc_yystate = *ace_cc_yyssp;
+ ace_cc_yyvsp -= ace_cc_yym;
+ ace_cc_yym = ace_cc_yylhs[ace_cc_yyn];
+ if (ace_cc_yystate == 0 && ace_cc_yym == 0)
+ {
+#if ACE_CC_YYDEBUG
+ if (ace_cc_yydebug)
+ printf("%sdebug: after reduction, shifting from state 0 to\
+ state %d\n", ACE_CC_YYPREFIX, ACE_CC_YYFINAL);
+#endif
+ ace_cc_yystate = ACE_CC_YYFINAL;
+ *++ace_cc_yyssp = ACE_CC_YYFINAL;
+ *++ace_cc_yyvsp = ace_cc_yyval;
+ if (ace_cc_yychar < 0)
+ {
+ if ((ace_cc_yychar = ace_cc_yylex()) < 0) ace_cc_yychar = 0;
+#if ACE_CC_YYDEBUG
+ if (ace_cc_yydebug)
+ {
+ ace_cc_yys = 0;
+ if (ace_cc_yychar <= ACE_CC_YYMAXTOKEN) ace_cc_yys = ace_cc_yyname[ace_cc_yychar];
+ if (!ace_cc_yys) ace_cc_yys = "illegal-symbol";
+ printf("%sdebug: state %d, reading %d (%s)\n",
+ ACE_CC_YYPREFIX, ACE_CC_YYFINAL, ace_cc_yychar, ace_cc_yys);
+ }
+#endif
+ }
+ if (ace_cc_yychar == 0) goto ace_cc_yyaccept;
+ goto ace_cc_yyloop;
+ }
+ if ((ace_cc_yyn = ace_cc_yygindex[ace_cc_yym]) && (ace_cc_yyn += ace_cc_yystate) >= 0 &&
+ ace_cc_yyn <= ACE_CC_YYTABLESIZE && ace_cc_yycheck[ace_cc_yyn] == ace_cc_yystate)
+ ace_cc_yystate = ace_cc_yytable[ace_cc_yyn];
+ else
+ ace_cc_yystate = ace_cc_yydgoto[ace_cc_yym];
+#if ACE_CC_YYDEBUG
+ if (ace_cc_yydebug)
+ printf("%sdebug: after reduction, shifting from state %d \
+to state %d\n", ACE_CC_YYPREFIX, *ace_cc_yyssp, ace_cc_yystate);
+#endif
+ if (ace_cc_yyssp >= ace_cc_yysslim && ace_cc_yygrowstack())
+ {
+ goto ace_cc_yyoverflow;
+ }
+ *++ace_cc_yyssp = ace_cc_yystate;
+ *++ace_cc_yyvsp = ace_cc_yyval;
+ goto ace_cc_yyloop;
+ace_cc_yyoverflow:
+ ace_cc_yyerror("yacc stack overflow");
+ace_cc_yyabort:
+ return (1);
+ace_cc_yyaccept:
+ return (0);
}
-
diff --git a/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff b/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff
deleted file mode 100644
index 04e1ca0e7b2..00000000000
--- a/TAO/orbsvcs/tests/Concurrency/CC_command.tab.cpp.diff
+++ /dev/null
@@ -1,4 +0,0 @@
---- CC_command.tab.cpp.orig Thu Jul 30 13:30:26 1998
-+++ CC_command.tab.cpp Mon Aug 17 11:06:24 1998
-@@ -1,3 +1,4 @@
-+// $Id$
diff --git a/TAO/orbsvcs/tests/Concurrency/CC_command.tab.h b/TAO/orbsvcs/tests/Concurrency/CC_command.tab.h
index 045368d0674..9e748fcdb2a 100644
--- a/TAO/orbsvcs/tests/Concurrency/CC_command.tab.h
+++ b/TAO/orbsvcs/tests/Concurrency/CC_command.tab.h
@@ -1,33 +1,33 @@
-// $Id$
-typedef union
-#ifdef __cplusplus
- ACE_CC_YYSTYPE
+//$Id$
+#ifndef ACE_CC_YYERRCODE
+#define ACE_CC_YYERRCODE 256
#endif
- {
+
+#define T_START_CMD 257
+#define T_CREATE_CMD 258
+#define T_LOCK_CMD 259
+#define T_UNLOCK_CMD 260
+#define T_TRYLOCK_CMD 261
+#define T_CHANGEMODE_CMD 262
+#define T_SLEEP_CMD 263
+#define T_WAIT_CMD 264
+#define T_REPEAT_CMD 265
+#define T_EXCEP_CMD 266
+#define T_PRINT_CMD 267
+#define T_LOOKUP_CMD 268
+#define T_TERM 269
+#define T_READ 270
+#define T_IREAD 271
+#define T_UPGRADE 272
+#define T_WRITE 273
+#define T_IWRITE 274
+#define T_IDENT 275
+#define Q_STRING 276
+#define T_NUM 277
+typedef union {
CC_Command *command;
CosConcurrencyControl::lock_mode lock_mode;
char *id;
int num;
} ACE_CC_YYSTYPE;
extern ACE_CC_YYSTYPE ace_cc_yylval;
-# define T_START_CMD 257
-# define T_CREATE_CMD 258
-# define T_LOCK_CMD 259
-# define T_UNLOCK_CMD 260
-# define T_TRYLOCK_CMD 261
-# define T_CHANGEMODE_CMD 262
-# define T_SLEEP_CMD 263
-# define T_WAIT_CMD 264
-# define T_REPEAT_CMD 265
-# define T_EXCEP_CMD 266
-# define T_PRINT_CMD 267
-# define T_LOOKUP_CMD 268
-# define T_TERM 269
-# define T_READ 270
-# define T_IREAD 271
-# define T_UPGRADE 272
-# define T_WRITE 273
-# define T_IWRITE 274
-# define T_IDENT 275
-# define Q_STRING 276
-# define T_NUM 277
diff --git a/TAO/orbsvcs/tests/Concurrency/Makefile b/TAO/orbsvcs/tests/Concurrency/Makefile
index a55b051975f..60424b680cb 100644
--- a/TAO/orbsvcs/tests/Concurrency/Makefile
+++ b/TAO/orbsvcs/tests/Concurrency/Makefile
@@ -91,8 +91,10 @@ CC_command.tab: CC_command.y
sed -e "s/char \*getenv/char *ace_foo/g" \
-e "s/= getenv/= ACE_OS::getenv/g" \
-e "s/yynewerror://g" \
+ -e "s/goto\ yynewerror.*//g" \
-e "s/yy/ace_cc_yy/g" \
-e "s/YY/ACE_CC_YY/g" \
+ -e "s/^\#pragma.*//g" \
-e "s/y\.tab\.c/CC_command.tab.cpp/g" < y.tab.c > /tmp/$(USER).CC_Y
sed -e "s/yy/ace_cc_yy/g" \
-e "s/YY/ACE_CC_YY/g" < y.tab.h > /tmp/$(USER).CC_YH
diff --git a/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp b/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
index c81ff1ae2ea..6e1e47c2622 100644
--- a/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
+++ b/TAO/orbsvcs/tests/Concurrency/lex.CC_command.cpp
@@ -9,6 +9,7 @@
#define ACE_CC_YY_FLEX_MINOR_VERSION 5
#include "ace/OS.h"
+#include "ace/OS.h"
/* cfront 1.2 defines "c_plusplus" instead of "__cplusplus" */
@@ -22,7 +23,6 @@
#ifdef __cplusplus
#include /**/ <stdlib.h>
-#include "ace/OS.h"
/* Use prototypes in function declarations. */
#define ACE_CC_YY_USE_PROTOS
@@ -616,7 +616,7 @@ ACE_CC_YY_MALLOC_DECL
ACE_CC_YY_DECL
{
register ace_cc_yy_state_type ace_cc_yy_current_state;
- register char *ace_cc_yy_cp, *ace_cc_yy_bp;
+ register char *ace_cc_yy_cp = NULL, *ace_cc_yy_bp = NULL;
register int ace_cc_yy_act;
@@ -1383,11 +1383,6 @@ ACE_CC_YY_BUFFER_STATE b;
}
-#ifndef ACE_CC_YY_ALWAYS_INTERACTIVE
-#ifndef ACE_CC_YY_NEVER_INTERACTIVE
-extern int isatty ACE_CC_YY_PROTO(( int ));
-#endif
-#endif
#ifdef ACE_CC_YY_USE_PROTOS
void ace_cc_yy_init_buffer( ACE_CC_YY_BUFFER_STATE b, FILE *file )