ARROW-1546: [GLib] Support GLib 2.40 again#1106
Conversation
c_glib/arrow-glib/gobject-type.h
Outdated
There was a problem hiding this comment.
Since GLib is LGPL (which is Category X) I wanted to check that this code did not come from that codebase
There was a problem hiding this comment.
GLib's implementation is here: https://git.gnome.org/browse/glib/tree/gobject/gtype.h#n1395
This implementation generates codes based on
arrow/c_glib/arrow-glib/array.h
Lines 28 to 60 in c1492bf
Defining macros such as GARROW_ARRAY() by "static inline" function idea is taken from GLib's implementation. Others aren't taken.
It seems that the idea (implementing convenient functions by "static inline" function instead of macro) is a generic C technique. I know that Ruby is also uses the technique such as https://github.com/ruby/ruby/blob/trunk/include/ruby/ruby.h#L307-L320 .
So I think that this code isn't LGPL-ed work.
There was a problem hiding this comment.
No problem, thank you. Since this was feature backporting issue I just wanted to check. Reusing implementation ideas is no problem so long as actual lines of Category X code are not being redistributed or otherwise directly ported
There was a problem hiding this comment.
Thanks for checking license issue!
|
Can you also rebase on master? |
Ubuntu 14.04 ships GLib 2.40.
daadd3f to
cbcdf9a
Compare
|
Done. |
Ubuntu 14.04 ships GLib 2.40.