Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-1003

Polishing c_glib code

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.6
    • None
    • None

    Description

      attached patch contains following changes:

      • Added Apache headers to c/h files
      • Use gtester for running tests. We don't need -wrapper script anymore
      • Use one-line macros G_DEFINE_TYPE instead of 15-line class definition
      • Keep formatting closer to glib-like style (one line class definition macroses/remove trailing spaces)

      Given changes are mostly fixing low hanging fruits. It does not change any logic/api.

      There are more chages needed, such as

      • using CLASS_TYPE_new functions instead of g_object_new(CLASS_TYPE)
      • stop using _set_property (aka reflection) in constructors
      • check more careful about _ref and _unref handling

      but this requires more careful refactoring so it will be later in a separate patch.

      Attachments

        1. c_glib_fixes.diff
          258 kB
          Anatol Pomozov

        Activity

          People

            anatolikus Anatol Pomozov
            anatolikus Anatol Pomozov
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: