devel-versioning.rst
changeset 950 06221010c81d
parent 949 57b995de80b5
child 1003 4b8b3daac0db
equal deleted inserted replaced
949:57b995de80b5 950:06221010c81d
    30 non meaningful.
    30 non meaningful.
    31 
    31 
    32 Compatibility formula.
    32 Compatibility formula.
    33 ======================
    33 ======================
    34 
    34 
    35 Assume that app linked with new version of lib. Thus
    35 Assume that app linked with new version of lib. Thus::
    36 
    36 
    37 is_compatible_with_old(old, new) {
    37   is_compatible_with_old(old, new) {
    38   if (old.major != new.major) return 0;
    38     if (old.major != new.major) return 0;
    39   if (old.minor > new.minor) return 0;
    39     if (old.minor > new.minor) return 0;
    40   return 1;
    40     return 1;
    41 }
    41   }
    42 
    42 
    43 Assume that app linked with old version of lib. Thus
    43 Assume that app linked with old version of lib. Thus::
    44 
    44 
    45 is_compatible_with_new(old, new) {
    45   is_compatible_with_new(old, new) {
    46   if (old.major != new.major) return 0;
    46     if (old.major != new.major) return 0;
    47   return 1;
    47     return 1;
    48 }
    48   }
    49 
    49 
    50 Reference.
    50 Reference.
    51 ==========
    51 ==========
    52 
    52 
    53   https://developer.mozilla.org/en/toolkit_version_format
    53   https://developer.mozilla.org/en/toolkit_version_format