Changed all uses of lo_NVList to not depend on OJI being defined.

git-svn-id: svn://10.0.0.236/trunk@7610 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
beard%netscape.com
1998-08-08 20:50:22 +00:00
parent 8eeb4425f1
commit 5ef3aa0f18
12 changed files with 69 additions and 366 deletions

View File

@@ -963,17 +963,9 @@ nsPluginTagInfo::GetAttributes(PRUint16& n,
if (instance->type == NP_EMBED) {
np_data* ndata = (np_data*)instance->app->np_data;
#ifdef OJI
names = (const char*const*)ndata->lo_struct->attributes.names;
values = (const char*const*)ndata->lo_struct->attributes.values;
n = (PRUint16)ndata->lo_struct->attributes.n;
#else
// XXX I think all the parameters and attributes just get
// munged together under MOZ_JAVA...
names = (const char*const*) ndata->lo_struct->attribute_list;
values = (const char*const*) ndata->lo_struct->value_list;
n = (PRUint16) ndata->lo_struct->attribute_cnt;
#endif
return NS_OK;
} else {
@@ -1060,17 +1052,9 @@ nsPluginTagInfo::GetParameters(PRUint16& n,
if (instance->type == NP_EMBED) {
np_data* ndata = (np_data*)instance->app->np_data;
#ifdef OJI
names = (const char*const*)ndata->lo_struct->parameters.names;
values = (const char*const*)ndata->lo_struct->parameters.values;
n = (PRUint16)ndata->lo_struct->parameters.n;
#else
// XXX I think all the parameters and attributes just get
// munged together under MOZ_JAVA...
names = (const char*const*) ndata->lo_struct->attribute_list;
values = (const char*const*) ndata->lo_struct->value_list;
n = (PRUint16)ndata->lo_struct->attribute_cnt;
#endif
return NS_OK;
} else {