Initial .bep file checking for sdl-image

This commit is contained in:
Scott McCreary
2008-07-30 16:49:08 +00:00
commit 081833065f
54 changed files with 32707 additions and 0 deletions

View File

@@ -0,0 +1,33 @@
? gettext-runtime/libasprintf/autom4te.cache
Index: gettext-runtime/libasprintf/configure.ac
===================================================================
RCS file: /sources/gettext/gettext/gettext-runtime/libasprintf/configure.ac,v
retrieving revision 1.24
diff -u -r1.24 configure.ac
--- gettext-runtime/libasprintf/configure.ac 20 Apr 2008 06:48:03 -0000 1.24
+++ gettext-runtime/libasprintf/configure.ac 4 May 2008 17:26:34 -0000
@@ -41,7 +41,7 @@
case "$host_os" in
# On Cygwin, without -no-undefined, a warning is emitted and only a static
# library is built.
- beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
+ beos* | haiku* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
*) LTNOUNDEF='' ;;
esac
AC_SUBST([LTNOUNDEF])
Index: gettext-tools/configure.ac
===================================================================
RCS file: /sources/gettext/gettext/gettext-tools/configure.ac,v
retrieving revision 1.96
diff -u -r1.96 configure.ac
--- gettext-tools/configure.ac 20 Apr 2008 06:48:03 -0000 1.96
+++ gettext-tools/configure.ac 4 May 2008 17:29:23 -0000
@@ -92,7 +92,7 @@
case "$host_os" in
# On Cygwin, without -no-undefined, a warning is emitted and only a static
# library is built.
- beos* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
+ beos* | haiku* | mingw* | cygwin*) LTNOUNDEF='-no-undefined' ;;
*) LTNOUNDEF='' ;;
esac
AC_SUBST([LTNOUNDEF])

View File

@@ -0,0 +1,54 @@
diff -ur libtool-2.2.5a/libltdl/config/ltmain.m4sh libtool-2.2.5a-haiku/libltdl/config/ltmain.m4sh
--- libtool-2.2.5a/libltdl/config/ltmain.m4sh 2008-06-02 07:07:26.000000000 +0000
+++ libtool-2.2.5a-haiku/libltdl/config/ltmain.m4sh 2008-06-05 16:07:25.000000000 +0000
@@ -4072,7 +4072,7 @@
-l*)
if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos*)
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-*-haiku*)
# These systems don't actually have a C or math library (as such)
continue
;;
@@ -6026,7 +6026,7 @@
if test "$build_libtool_libs" = yes; then
if test -n "$rpath"; then
case $host in
- *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
+ *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-*-haiku*)
# these systems don't actually have a c library (as such)!
;;
*-*-rhapsody* | *-*-darwin1.[012])
diff -ur libtool-2.2.5a/libltdl/m4/libtool.m4 libtool-2.2.5a-haiku/libltdl/m4/libtool.m4
--- libtool-2.2.5a/libltdl/m4/libtool.m4 2008-05-26 07:05:05.000000000 +0000
+++ libtool-2.2.5a-haiku/libltdl/m4/libtool.m4 2008-06-06 09:32:17.000000000 +0000
@@ -2344,6 +2344,18 @@
hardcode_into_libs=yes
;;
+haiku*)
+ version_type=linux
+ need_lib_prefix=no
+ need_version=no
+ dynamic_linker="$host_os runtime_loader"
+ library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
+ soname_spec='${libname}${release}${shared_ext}$major'
+ shlibpath_var=LIBRARY_PATH
+ sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
+ hardcode_into_libs=yes
+ ;;
+
hpux9* | hpux10* | hpux11*)
# Give a soname corresponding to the major version so that dld.sl refuses to
# link against other versions.
@@ -5656,6 +5668,10 @@
gnu*)
;;
+ haiku*)
+ _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
+ ;;
+
hpux9*)
_LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
_LT_TAGVAR(hardcode_libdir_separator, $1)=:

View File

@@ -0,0 +1,111 @@
diff --git a/Makefile b/Makefile
index 3eab17e..146da72 100644
--- a/Makefile
+++ b/Makefile
@@ -13,7 +13,7 @@ HAVE_LIBXML=$(shell pkg-config --exists libxml-2.0 && echo 'yes')
#
# For debugging, uncomment the next one
#
-CFLAGS += -DDEBUG
+#CFLAGS += -DDEBUG
DESTDIR=
PREFIX=$(HOME)
diff --git a/allocate.h b/allocate.h
index 9f1dc8c..abde7a0 100644
--- a/allocate.h
+++ b/allocate.h
@@ -4,7 +4,7 @@
struct allocation_blob {
struct allocation_blob *next;
unsigned int left, offset;
- unsigned char data[];
+ unsigned char data[1];
};
struct allocator_struct {
diff --git a/compat/strtold.c b/compat/strtold.c
index 1b6ad7d..0749e33 100644
--- a/compat/strtold.c
+++ b/compat/strtold.c
@@ -2,5 +2,6 @@
long double string_to_ld(const char *nptr, char **endptr)
{
- return strtold(nptr, endptr);
+ //return strtold(nptr, endptr);
+ return strtod(nptr, endptr);
}
diff --git a/evaluate.c b/evaluate.c
index 2a126dd..4c09dee 100644
--- a/evaluate.c
+++ b/evaluate.c
@@ -152,24 +152,24 @@ static struct symbol *bigger_int_type(struct symbol *left, struct symbol *right)
right = integer_promotion(right);
if (left == right)
- goto left;
+ goto lleft;
if (left->bit_size > right->bit_size)
- goto left;
+ goto lleft;
if (right->bit_size > left->bit_size)
- goto right;
+ goto lright;
lmod = left->ctype.modifiers;
rmod = right->ctype.modifiers;
if ((lmod ^ rmod) & MOD_UNSIGNED) {
if (lmod & MOD_UNSIGNED)
- goto left;
+ goto lleft;
} else if ((lmod & ~rmod) & (MOD_LONG | MOD_LONGLONG))
- goto left;
-right:
+ goto lleft;
+lright:
left = right;
-left:
+lleft:
return left;
}
diff --git a/lib.c b/lib.c
index 75afdb7..973d953 100644
--- a/lib.c
+++ b/lib.c
@@ -35,6 +35,10 @@ int die_if_error = 0;
# define __GNUC__ 2
# define __GNUC_MINOR__ 95
# define __GNUC_PATCHLEVEL__ 0
+#else
+# ifndef __GNUC_PATCHLEVEL__
+# define __GNUC_PATCHLEVEL__ 3
+# endif
#endif
int gcc_major = __GNUC__;
diff --git a/token.h b/token.h
index ba7866d..6cea61a 100644
--- a/token.h
+++ b/token.h
@@ -56,7 +56,7 @@ struct ident {
unsigned char tainted:1,
reserved:1,
keyword:1;
- char name[]; /* Actual identifier */
+ char name[1]; /* Actual identifier */
};
enum token_type {
@@ -137,7 +137,7 @@ enum special_token {
struct string {
unsigned int length;
- char data[];
+ char data[1];
};
/* will fit into 32 bits */