Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: [netbsd-4] src/common/lib/libprop



Module Name:    src
Committed By:   riz
Date:           Sun Aug 27 01:20:57 UTC 2006

Modified Files:
        src/common/lib/libprop [netbsd-4]: prop_array.c prop_bool.c prop_data.c
            prop_dictionary.c prop_number.c prop_string.c

Log Message:
Pull up following revision(s) (requested by thorpej in ticket #51):
        common/lib/libprop/prop_dictionary.c: revision 1.11
        common/lib/libprop/prop_number.c: revision 1.5
        common/lib/libprop/prop_bool.c: revision 1.5
        common/lib/libprop/prop_data.c: revision 1.4
        common/lib/libprop/prop_string.c: revision 1.4
        common/lib/libprop/prop_array.c: revision 1.6
Also guard object accessors against NULL (like we do foreign object
types)
so that apps can use this construct safely:
        obj = prop_dictionary_get(dict, "value");
        if (! prop_number_equals_integer(obj, 5)) {
                ...
        }
Suggested by Iain Hibbert.


To generate a diff of this commit:
cvs rdiff -r1.3.2.1 -r1.3.2.2 src/common/lib/libprop/prop_array.c \
    src/common/lib/libprop/prop_bool.c src/common/lib/libprop/prop_number.c
cvs rdiff -r1.2.2.1 -r1.2.2.2 src/common/lib/libprop/prop_data.c \
    src/common/lib/libprop/prop_string.c
cvs rdiff -r1.8.2.1 -r1.8.2.2 src/common/lib/libprop/prop_dictionary.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.




Home | Main Index | Thread Index | Old Index