mirror of
https://github.com/rkd77/elinks.git
synced 2024-12-04 14:46:47 -05:00
SEE: Always use SEE_no_enumerator instead of NULL.
Although <see/object.h> of SEE 2.0.1131 has a comment saying that SEE_objectclass.enumerator is optional and may be left NULL, SEE crashes if one tries to enumerate the properties of an object created from such a class. Conveniently, it provides a suitable stub function. http://www.adaptive-enterprises.com.au/bugs/show_bug.cgi?id=75
This commit is contained in:
parent
c9b2fbbd46
commit
c7b3a8c423
@ -64,7 +64,7 @@ struct SEE_objectclass js_document_object_class = {
|
||||
document_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
|
@ -85,7 +85,7 @@ struct SEE_objectclass js_input_object_class = {
|
||||
input_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
@ -99,7 +99,7 @@ struct SEE_objectclass js_form_elems_class = {
|
||||
form_elems_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
@ -113,7 +113,7 @@ struct SEE_objectclass js_forms_object_class = {
|
||||
forms_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
@ -127,7 +127,7 @@ struct SEE_objectclass js_form_class = {
|
||||
form_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
|
@ -88,7 +88,7 @@ struct SEE_objectclass js_history_object_class = {
|
||||
history_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
@ -102,7 +102,7 @@ struct SEE_objectclass js_location_object_class = {
|
||||
location_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
|
@ -57,7 +57,7 @@ struct SEE_objectclass js_navigator_object_class = {
|
||||
navigator_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
|
@ -64,7 +64,7 @@ struct SEE_objectclass js_menubar_object_class = {
|
||||
unibar_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
@ -78,7 +78,7 @@ struct SEE_objectclass js_statusbar_object_class = {
|
||||
unibar_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
|
@ -67,7 +67,7 @@ struct SEE_objectclass js_window_object_class = {
|
||||
window_hasproperty,
|
||||
SEE_no_delete,
|
||||
SEE_no_defaultvalue,
|
||||
NULL,
|
||||
SEE_no_enumerator,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
|
Loading…
Reference in New Issue
Block a user