-
Notifications
You must be signed in to change notification settings - Fork 27
Gftp offical #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gftp offical #1
Changes from all commits
cb89e0f
aa68665
c75b642
0976386
3af007d
56ffd1a
d57739d
61a5ca4
aa165d4
0166794
f17aeab
3503f9f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,7 @@ | ||
| 2016-07-24 gettextize <[email protected]> | ||
|
|
||
| * configure.ac (AC_CONFIG_FILES): Add intl/Makefile, po/Makefile.in. | ||
|
|
||
| 2008-11-30 Brian Masney <[email protected]> | ||
| * docs/website/index.html.in docs/website/generate-gftp-website.pl | ||
| docs/website/announce.txt ChangeLog-old - updated for the 2.0.19 | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -494,14 +494,45 @@ struct gftp_request_tag | |
| SSL * ssl; | ||
| #endif | ||
|
|
||
| #if GLIB_MAJOR_VERSION > 1 | ||
| GIConv iconv_to, iconv_from; | ||
| unsigned int iconv_from_initialized : 1, | ||
| iconv_to_initialized : 1; | ||
| char *iconv_charset; | ||
| #endif | ||
| }; | ||
|
|
||
| /* Support deprecated functions for older glibs */ | ||
| #if GLIB_CHECK_VERSION(2,31,0) | ||
| #undef g_static_mutex_lock | ||
| #define g_static_mutex_lock g_mutex_lock | ||
| #undef g_static_mutex_unlock | ||
| #define g_static_mutex_unlock g_mutex_unlock | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would just convert everything over to use the GMutex instead of the GStaticMutex. I don't think it is a good idea to redefine symbols in the glib library. Someone else looking through the code would expect one type of behavior, but doing things like this could cause it to have a different type of behavior, which will increase the over long-term maintenance of the project. Moving to GMutex should also get rid of all of the #ifdefs around the mutex code.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I agree, I will make the required changes. |
||
|
|
||
| /* If I understand it correctly, we wouldn't normally get away with this | ||
| * but since we are already iniitializing it by calling malloc on the pointer | ||
| * I thnk we get a pass on having to change: | ||
| * GStaticMutex pointer to an (addressed) GMutex variable | ||
| * | ||
| * I suspect this will cause problems for someone down the road | ||
| */ | ||
| #define g_static_mutex_init g_mutex_init | ||
|
|
||
| /* Thanks to libvert for writing these two wrappers */ | ||
| static inline GMutex *gftp_g_mutex_new(void) | ||
| { | ||
| GMutex *mutex; | ||
|
|
||
| mutex = g_new(GMutex, 1); | ||
| g_mutex_init(mutex); | ||
|
|
||
| return mutex; | ||
| } | ||
|
|
||
| static inline void gftp_g_mutex_free(GMutex *mutex) | ||
| { | ||
| g_mutex_clear(mutex); | ||
| g_free(mutex); | ||
| } | ||
| #endif | ||
|
|
||
| typedef struct gftp_transfer_tag | ||
| { | ||
|
|
@@ -545,8 +576,13 @@ typedef struct gftp_transfer_tag | |
| void * fromwdata, | ||
| * towdata; | ||
|
|
||
| #if GLIB_CHECK_VERSION(2,31,0) | ||
| GMutex statmutex, | ||
| structmutex; | ||
| #else | ||
| GStaticMutex statmutex, | ||
| structmutex; | ||
| #endif | ||
|
|
||
| void *user_data; | ||
| void *thread_id; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,3 +1,14 @@ | ||
| 2016-07-24 gettextize <[email protected]> | ||
|
Owner
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. None of these changes to the po/ directory should be committed. Your commits change about 60K lines and at a cursor glance, most appear to be in the po/ directory. Let the language translators make the changes to this directory.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Right, I meant to exclude these, it shouldn't have gotten included. |
||
|
|
||
| * Makefile.in.in: New file, from gettext-0.19.4. | ||
| * Rules-quot: New file, from gettext-0.19.4. | ||
| * boldquot.sed: New file, from gettext-0.19.4. | ||
| * [email protected]: New file, from gettext-0.19.4. | ||
| * [email protected]: New file, from gettext-0.19.4. | ||
| * insert-header.sin: New file, from gettext-0.19.4. | ||
| * quot.sed: New file, from gettext-0.19.4. | ||
| * remove-potcdate.sin: New file, from gettext-0.19.4. | ||
|
|
||
| 2009-05-20 Wadim Dziedzic <[email protected]> | ||
|
|
||
| * pl.po: Updated Polish translation | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't commit these changes to the Changelog and configure.ac.