summaryrefslogtreecommitdiff
path: root/TAO/TAO_IDL/fe/idl.ll
diff options
context:
space:
mode:
Diffstat (limited to 'TAO/TAO_IDL/fe/idl.ll')
-rw-r--r--TAO/TAO_IDL/fe/idl.ll22
1 files changed, 15 insertions, 7 deletions
diff --git a/TAO/TAO_IDL/fe/idl.ll b/TAO/TAO_IDL/fe/idl.ll
index 34b2c5eafc2..efe27a2bf30 100644
--- a/TAO/TAO_IDL/fe/idl.ll
+++ b/TAO/TAO_IDL/fe/idl.ll
@@ -732,30 +732,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);
+ }
}
/*