summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/lex.yy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe/lex.yy.cpp')
-rw-r--r--TAO/TAO_IDL/fe/lex.yy.cpp24
1 files changed, 16 insertions, 8 deletions
diff --git a/TAO/TAO_IDL/fe/lex.yy.cpp b/TAO/TAO_IDL/fe/lex.yy.cpp
index 268becd5a7d..e85bd732aab 100644
--- a/TAO/TAO_IDL/fe/lex.yy.cpp
+++ b/TAO/TAO_IDL/fe/lex.yy.cpp
@@ -1,4 +1,4 @@
-/* A lexical scanner generated by flex */
+//* A lexical scanner generated by flex */
/* Scanner skeleton version:
* $Id$
@@ -2935,30 +2935,38 @@ idl_store_pragma (char *buf)
}
else if (ACE_OS::strncmp (buf + 8, "DCPS_DATA_TYPE", 14) == 0)
{
- char *foo_type = idl_get_pragma_string (buf);
- idl_global->add_dcps_data_type(foo_type);
+ char *sample_type = idl_get_pragma_string (buf);
+ idl_global->add_dcps_data_type (sample_type);
}
else if (ACE_OS::strncmp (buf + 8, "DCPS_DATA_KEY", 13) == 0)
{
char *tmp = idl_get_pragma_string (buf);
// split up data type and key strings
- char *foo_type = tmp;
- while (*tmp && !isspace(*tmp))
+ char *sample_type = tmp;
+ while (*tmp && !isspace (*tmp))
tmp++;
- while (isspace(*tmp))
+ while (isspace (*tmp))
{
*tmp = '\0';
tmp++;
}
char *key = tmp;
- if (!idl_global->add_dcps_data_key(foo_type, key))
+ if (!idl_global->add_dcps_data_key (sample_type, key))
{
ACE_ERROR((LM_ERROR, "DCPS_DATA_TYPE \"%s\" not found for key \"%s\"\n",
- foo_type, key));
+ sample_type, key));
}
}
+ else if (ACE_OS::strncmp (buf + 8, "DCPS_SUPPORT_ZERO_COPY_READ", 27) == 0)
+ {
+ idl_global->dcps_support_zero_copy_read (true);
+ }
+ else if (ACE_OS::strncmp (buf + 8, "DCPS_GEN_ZERO_COPY_READ", 23) == 0)
+ {
+ idl_global->dcps_gen_zero_copy_read (true);
+ }
}
/*