зеркало из https://github.com/mozilla/pjs.git
Use PR_TRUE and PR_FALSE instead of True and False.
This commit is contained in:
Родитель
3237d4791e
Коммит
73d3b0457c
|
@ -98,7 +98,7 @@ register_converter(char *mime_type, void *data_id)
|
||||||
|
|
||||||
if ((mime_type == NULL)||(data_id == NULL))
|
if ((mime_type == NULL)||(data_id == NULL))
|
||||||
{
|
{
|
||||||
return False;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
while (converter != NULL)
|
while (converter != NULL)
|
||||||
|
@ -106,7 +106,7 @@ register_converter(char *mime_type, void *data_id)
|
||||||
if ((converter->data_id == data_id)&&
|
if ((converter->data_id == data_id)&&
|
||||||
(PL_strcmp(converter->mime_type, mime_type) == 0))
|
(PL_strcmp(converter->mime_type, mime_type) == 0))
|
||||||
{
|
{
|
||||||
return False;
|
return PR_FALSE;
|
||||||
}
|
}
|
||||||
converter = converter->next;
|
converter = converter->next;
|
||||||
}
|
}
|
||||||
|
@ -115,7 +115,7 @@ register_converter(char *mime_type, void *data_id)
|
||||||
converter->data_id = data_id;
|
converter->data_id = data_id;
|
||||||
converter->next = RegisteredConverters;
|
converter->next = RegisteredConverters;
|
||||||
RegisteredConverters = converter;
|
RegisteredConverters = converter;
|
||||||
return True;
|
return PR_TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -181,7 +181,7 @@ NET_PluginStream(int fmt, void* data_obj, URL_Struct* URL_s, MWContext* w)
|
||||||
}
|
}
|
||||||
|
|
||||||
can_use = register_converter(mime_type, (void *)URL_s);
|
can_use = register_converter(mime_type, (void *)URL_s);
|
||||||
if (can_use == False)
|
if (can_use == PR_FALSE)
|
||||||
{
|
{
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче