Revision: 3047 http://geany.svn.sourceforge.net/geany/?rev=3047&view=rev Author: eht16 Date: 2008-10-06 18:37:10 +0000 (Mon, 06 Oct 2008)
Log Message: ----------- Use g_strerror() instead of strerror(). Remove build system checks for strerror().
Modified Paths: -------------- trunk/ChangeLog trunk/src/tools.c trunk/tagmanager/ctags.c trunk/wscript
Modified: trunk/ChangeLog =================================================================== --- trunk/ChangeLog 2008-10-06 18:36:36 UTC (rev 3046) +++ trunk/ChangeLog 2008-10-06 18:37:10 UTC (rev 3047) @@ -16,6 +16,9 @@ * wscript, waf: Update waf to its latest SVN version (nearly 1.5.0). Adjust wscript to latest Waf API changes. + * configure.in, wscript, tagmanager/ctags.c, src/tools.c: + Use g_strerror() instead of strerror(). + Remove build system checks for strerror().
2008-10-03 Frank Lanitz <frank(at)frank(dot)uvena(dot)de>
Modified: trunk/src/tools.c =================================================================== --- trunk/src/tools.c 2008-10-06 18:36:36 UTC (rev 3046) +++ trunk/src/tools.c 2008-10-06 18:37:10 UTC (rev 3047) @@ -275,7 +275,7 @@ if (wrote < 0) { g_warning("%s: %s: %s\n", __func__, "Failed sending data to command", - strerror(errno)); + g_strerror(errno)); break; } remaining -= wrote;
Modified: trunk/tagmanager/ctags.c =================================================================== --- trunk/tagmanager/ctags.c 2008-10-06 18:36:36 UTC (rev 3046) +++ trunk/tagmanager/ctags.c 2008-10-06 18:37:10 UTC (rev 3047) @@ -285,11 +285,7 @@ selected (selection, WARNING) ? "Warning: " : ""); vfprintf (errout, format, ap); if (selected (selection, PERROR)) -#ifdef HAVE_STRERROR - fprintf (errout, " : %s", strerror (errno)); -#else - perror (" "); -#endif + fprintf (errout, " : %s", g_strerror (errno)); fputs ("\n", errout); va_end (ap); if (selected (selection, FATAL))
Modified: trunk/wscript =================================================================== --- trunk/wscript 2008-10-06 18:36:36 UTC (rev 3046) +++ trunk/wscript 2008-10-06 18:37:10 UTC (rev 3047) @@ -161,7 +161,6 @@ conf.check(function_name='ftruncate', header_name='unistd.h') conf.check(function_name='gethostname', header_name='unistd.h') conf.check(function_name='mkstemp', header_name='stdlib.h') - conf.check(function_name='strerror', header_name='string.h') conf.check(function_name='strstr', header_name='string.h', mandatory=True)
# check for cxx after the header and function checks have been done to ensure they are
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.