Author: miguel
Date: 2006-10-17 18:45:51 -0400 (Tue, 17 Oct 2006)
New Revision: 66769
Modified:
trunk/mono/eglib/ChangeLog
trunk/mono/eglib/configure.ac
trunk/mono/eglib/src/garray.c
trunk/mono/eglib/src/gerror.c
trunk/mono/eglib/src/glib.h
trunk/mono/eglib/src/gmem.c
trunk/mono/eglib/src/goutput.c
trunk/mono/eglib/src/gpath.c
trunk/mono/eglib/src/gptrarray.c
trunk/mono/eglib/src/gshell.c
trunk/mono/eglib/src/gspawn.c
trunk/mono/eglib/src/gstr.c
trunk/mono/eglib/src/gstring.c
trunk/mono/eglib/test/string-util.c
trunk/mono/eglib/test/test.c
Log:
2006-10-17 Miguel de Icaza <[EMAIL PROTECTED]>
* Add _GNU_SOURCE at configure time, remove from sources.
* src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
* src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
for the support stuff.
Move private prototypes elsewhere
Modified: trunk/mono/eglib/ChangeLog
===================================================================
--- trunk/mono/eglib/ChangeLog 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/ChangeLog 2006-10-17 22:45:51 UTC (rev 66769)
@@ -1,7 +1,14 @@
2006-10-17 Miguel de Icaza <[EMAIL PROTECTED]>
- * src/glib.h: Move private prototypes elsewhere
+ * Add _GNU_SOURCE at configure time, remove from sources.
+ * src/gstr.c (g_strsplit): Empty strings return a 0 value vector.
+
+ * src/glib.h (G_MAXINT64, G_MININT64): Add another set of macros
+ for the support stuff.
+
+ Move private prototypes elsewhere
+
* src/glib.h (g_thread_init): Adding missing brace
(g_list_next): remove ; from the macro definition.
Modified: trunk/mono/eglib/configure.ac
===================================================================
--- trunk/mono/eglib/configure.ac 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/configure.ac 2006-10-17 22:45:51 UTC (rev 66769)
@@ -7,7 +7,7 @@
AC_PROG_CC
AM_PROG_LIBTOOL
-CFLAGS='-g -O0'
+CFLAGS='-g -O0 -D_GNU_SOURCE'
AC_SUBST(CFLAGS)
GNUC_PRETTY=
GNUC_UNUSED=
Modified: trunk/mono/eglib/src/garray.c
===================================================================
--- trunk/mono/eglib/src/garray.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/garray.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -26,7 +26,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdlib.h>
#include <glib.h>
Modified: trunk/mono/eglib/src/gerror.c
===================================================================
--- trunk/mono/eglib/src/gerror.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gerror.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -25,7 +25,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
Modified: trunk/mono/eglib/src/glib.h
===================================================================
--- trunk/mono/eglib/src/glib.h 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/glib.h 2006-10-17 22:45:51 UTC (rev 66769)
@@ -52,6 +52,8 @@
#define G_MAXINT32 INT32_MAX
#define G_MININT32 INT32_MIN
+#define G_MININT64 INT64_MIN
+#define G_MAXINT64 INT64_MAX
#define G_LITTLE_ENDIAN 1234
#define G_BIG_ENDIAN 4321
Modified: trunk/mono/eglib/src/gmem.c
===================================================================
--- trunk/mono/eglib/src/gmem.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gmem.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -25,7 +25,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <glib.h>
Modified: trunk/mono/eglib/src/goutput.c
===================================================================
--- trunk/mono/eglib/src/goutput.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/goutput.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -24,7 +24,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <glib.h>
Modified: trunk/mono/eglib/src/gpath.c
===================================================================
--- trunk/mono/eglib/src/gpath.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gpath.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -25,7 +25,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <glib.h>
#include <unistd.h>
Modified: trunk/mono/eglib/src/gptrarray.c
===================================================================
--- trunk/mono/eglib/src/gptrarray.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gptrarray.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -26,7 +26,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdlib.h>
#include <glib.h>
Modified: trunk/mono/eglib/src/gshell.c
===================================================================
--- trunk/mono/eglib/src/gshell.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gshell.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -25,7 +25,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <glib.h>
Modified: trunk/mono/eglib/src/gspawn.c
===================================================================
--- trunk/mono/eglib/src/gspawn.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gspawn.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -25,7 +25,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
Modified: trunk/mono/eglib/src/gstr.c
===================================================================
--- trunk/mono/eglib/src/gstr.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gstr.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -26,7 +26,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <string.h>
#include <ctype.h>
@@ -205,7 +204,10 @@
}
}
- if(vector != NULL && size > 0) {
+ if (vector == NULL){
+ vector = (gchar **) g_malloc (2 * sizeof (vector));
+ vector [0] = NULL;
+ } else if (size > 0){
vector[size - 1] = NULL;
}
Modified: trunk/mono/eglib/src/gstring.c
===================================================================
--- trunk/mono/eglib/src/gstring.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/src/gstring.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -26,7 +26,6 @@
* OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdio.h>
#include <glib.h>
Modified: trunk/mono/eglib/test/string-util.c
===================================================================
--- trunk/mono/eglib/test/string-util.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/test/string-util.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -64,7 +64,11 @@
to_split, v[0]);
}
g_strfreev(v);
-
+
+ v = g_strsplit ("", ":", 0);
+ if (v == NULL)
+ return FAILED ("g_strsplit returned NULL");
+ g_strfreev (v);
return OK;
}
Modified: trunk/mono/eglib/test/test.c
===================================================================
--- trunk/mono/eglib/test/test.c 2006-10-17 22:33:48 UTC (rev 66768)
+++ trunk/mono/eglib/test/test.c 2006-10-17 22:45:51 UTC (rev 66769)
@@ -26,7 +26,6 @@
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#define _GNU_SOURCE
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches