This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 44de9a46432c45949764964d3c49e65e2bb9701b (commit)
from f553db48b5df795253902ce74770f57217b642ab (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/44de9a46432c45949764964d3c49e65e2bb9…
commit 44de9a46432c45949764964d3c49e65e2bb9701b
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sun May 22 13:11:32 2011 +0200
Added .gitignore
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..6126da2
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,8 @@
+*.o
+*.pyc
+*.gen.c
+*.gen.h
+*.swp
+libGP_core.so*
+libGP_core.a
+
-----------------------------------------------------------------------
Summary of changes:
.gitignore | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
create mode 100644 .gitignore
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via f553db48b5df795253902ce74770f57217b642ab (commit)
via ff4fe6a3deedee19d4472c17568f13c3a029475b (commit)
via dfefe1528e754ca7f9908dafb4544c08a78f6e6c (commit)
from cf69cb4b75d228a01a4d7b803e6dfd2d32efbef3 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/f553db48b5df795253902ce74770f57217b6…
commit f553db48b5df795253902ce74770f57217b642ab
Merge: ff4fe6a cf69cb4
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sun May 22 13:07:05 2011 +0200
Merge branch 'master' of git://repo.or.cz/gfxprim
Conflicts:
core/GP_Common.h
http://repo.or.cz/w/gfxprim.git/commit/ff4fe6a3deedee19d4472c17568f13c3a029…
commit ff4fe6a3deedee19d4472c17568f13c3a029475b
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sun May 22 13:05:42 2011 +0200
Tests for GP_ASSERT/CHECK/ABORT, minor fix (ambiguous else)
diff --git a/core/GP_Common.h b/core/GP_Common.h
index 19cc9b9..d077f33 100644
--- a/core/GP_Common.h
+++ b/core/GP_Common.h
@@ -83,11 +83,12 @@
* Internal macro with common code for GP_ASSERT and GP_CHECK.
*/
#define GP_GENERAL_CHECK(check_cond_, check_message_, ...) do { - if (unlikely(!(check_cond_))) + if (unlikely(!(check_cond_))) { if (#__VA_ARGS__ [0]) GP_ABORT(check_message_ #check_cond_ "n" __VA_ARGS__); else GP_ABORT(check_message_ #check_cond_); + } } while (0)
/*
diff --git a/core/tests/common.test.c b/core/tests/GP_Comon.test.c
similarity index 83%
rename from core/tests/common.test.c
rename to core/tests/GP_Comon.test.c
index c7bd904..9faa290 100644
--- a/core/tests/common.test.c
+++ b/core/tests/GP_Comon.test.c
@@ -64,3 +64,26 @@ GP_TEST(set_bits)
fail_unless(x == 0xF108F000);
}
END_TEST
+
+GP_TEST(abort_check_assert, "loop_start=0, loop_end=9, expect_exit=1")
+{
+ if (_i==0) GP_ABORT();
+ if (_i==1) GP_ABORT("MSG");
+ if (_i==2) GP_ABORT("FORMAT %d", _i);
+ if (_i==3) GP_ASSERT(1==0);
+ if (_i==4) GP_ASSERT(1==0, "MSG");
+ if (_i==5) GP_ASSERT(1==0, "FORMAT %d", _i);
+ if (_i==6) GP_CHECK(1==0);
+ if (_i==7) GP_CHECK(1==0, "MSG");
+ if (_i==8) GP_CHECK(1==0, "FORMAT %d", _i);
+}
+END_TEST
+
+GP_TEST(assert_check_nop)
+{
+ GP_ASSERT(1);
+ GP_ASSERT(1, "MSG");
+ GP_CHECK(1);
+ GP_CHECK(1, "MSG");
+}
+END_TEST
http://repo.or.cz/w/gfxprim.git/commit/dfefe1528e754ca7f9908dafb4544c08a78f…
commit dfefe1528e754ca7f9908dafb4544c08a78f6e6c
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sun May 22 13:03:54 2011 +0200
Added looping, exit and signal handling to test parameters
diff --git a/core/tests/GP_Tests.h b/core/tests/GP_Tests.h
index 6068d67..1735f60 100644
--- a/core/tests/GP_Tests.h
+++ b/core/tests/GP_Tests.h
@@ -33,9 +33,13 @@
* The optional string is passed as parameters to Python dict() as parameters
* for the testcase-generator.
* Currently, the following parameters are recognized:
- * suite -- name of the suite
+ * suite -- name of the suite
+ * loop_start -- test will be repeated as with:
+ * loop_end for (int _i = loop_start; _i < loop_end; i++) { ... }
+ * expect_exit -- expect the function to exit with given exitcode
+ * expect_signal -- expect the function to exit with given exitcode
*
- * Do NOT use parameters: name, fname, line
+ * Parameters name, fname, line are used internally, do not use them
*/
#define GP_TEST(name, ...) static void name(int);diff --git a/core/tests/find_tests.py b/core/tests/find_tests.py
index c16c881..7ddc7fb 100644
--- a/core/tests/find_tests.py
+++ b/core/tests/find_tests.py
@@ -91,19 +91,25 @@ def gen_tests(f):
" * Test %s/%s defined in %s:%dn"
" */nn" % (suite, t['name'], t['fname'], t['line']))
f.write("void GP_TEST_%s(int);nn"
- "TCase *GP_TC_%s()n"
+ "TCase *GP_TC_%s_%s()n"
"{n"
- " TCase *tc = tcase_create("%s");n"
- " tcase_add_test(tc, GP_TEST_%s);n"
- " return tc;n"
- "}nn" % (t['name'], t['name'], t['name'], t['name']))
+ " TCase *tc = tcase_create("%s");n" %
+ (t['name'], suite, t['name'], t['name']))
+ signal = t.get('expect_signal', 0)
+ exitval = t.get('expect_exit', 0)
+ assert ('loop_start' in t) == ('loop_end' in t)
+ loop_start = t.get('loop_start', 0)
+ loop_end = t.get('loop_end', 1)
+ f.write(" _tcase_add_test(tc, GP_TEST_%s, "%s", %d, %d, %d, %d);n" % + (t['name'], t['name'], signal, exitval, loop_start, loop_end))
+ f.write(" return tc;n}nn")
# TODO: Handle special test requirements (timing, fixture, ...)
f.write("Suite *GP_TS_%s()n"
"{n"
" Suite *s = suite_create("%s");n" % (suite, suite))
for t in tests:
- f.write(" suite_add_tcase(s, GP_TC_%s());n" % (t['name']))
+ f.write(" suite_add_tcase(s, GP_TC_%s_%s());n" % (suite, t['name']))
f.write(" return s;n"
"}nn")
-----------------------------------------------------------------------
Summary of changes:
core/GP_Common.h | 2 +-
core/tests/{common.test.c => GP_Comon.test.c} | 23 +++++++++++++++++++++++
core/tests/GP_Tests.h | 8 ++++++--
core/tests/find_tests.py | 18 ++++++++++++------
4 files changed, 42 insertions(+), 9 deletions(-)
rename core/tests/{common.test.c => GP_Comon.test.c} (83%)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via cf69cb4b75d228a01a4d7b803e6dfd2d32efbef3 (commit)
from 3e29dc184eff61f987adb9bbab4c223a9b07ff5f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/cf69cb4b75d228a01a4d7b803e6dfd2d32ef…
commit cf69cb4b75d228a01a4d7b803e6dfd2d32efbef3
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun May 22 12:31:02 2011 +0200
Fix ambiguous else statement.
diff --git a/core/GP_Common.h b/core/GP_Common.h
index 19cc9b9..407aa31 100644
--- a/core/GP_Common.h
+++ b/core/GP_Common.h
@@ -83,11 +83,12 @@
* Internal macro with common code for GP_ASSERT and GP_CHECK.
*/
#define GP_GENERAL_CHECK(check_cond_, check_message_, ...) do { - if (unlikely(!(check_cond_))) + if (unlikely(!(check_cond_))) { if (#__VA_ARGS__ [0]) GP_ABORT(check_message_ #check_cond_ "n" __VA_ARGS__); else GP_ABORT(check_message_ #check_cond_); + } } while (0)
/*
-----------------------------------------------------------------------
Summary of changes:
core/GP_Common.h | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 852d0d3925acf658dd96979bfbaef0dabb45e81b (commit)
via 266c6d21983c196e2071c65d6b5d14d201d9392c (commit)
from 983969d8fad548991c47cf81e7e013308fcf6a70 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/852d0d3925acf658dd96979bfbaef0dabb45…
commit 852d0d3925acf658dd96979bfbaef0dabb45e81b
Merge: 266c6d2 983969d
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sun May 22 11:45:06 2011 +0200
Merge branch 'master' of git://repo.or.cz/gfxprim
http://repo.or.cz/w/gfxprim.git/commit/266c6d21983c196e2071c65d6b5d14d201d9…
commit 266c6d21983c196e2071c65d6b5d14d201d9392c
Author: Tomas Gavenciak <gavento(a)ucw.cz>
Date: Sun May 22 11:41:36 2011 +0200
Unified ASSERT/ABORT/CHECK code, printf-like behaviour
diff --git a/core/GP_Common.h b/core/GP_Common.h
index c6005f8..19cc9b9 100644
--- a/core/GP_Common.h
+++ b/core/GP_Common.h
@@ -65,40 +65,53 @@
/*
* Aborts and prints the message along with the location in code
* to stderr. Used for fatal errors.
+ *
+ * Use as either GP_ABORT(), GP_ABORT(msg) or GP_ABORT(format, params...) where
+ * msg and format must be string constants.
*/
-#define GP_ABORT(msg) do { - fprintf(stderr, "*** gfxprim: aborted: %s:%d: in %s: %sn", - __FILE__, __LINE__, __FUNCTION__, msg); +#define GP_ABORT(...) do { + fprintf(stderr, "*** gfxprim: %s:%d: in %s: ", + __FILE__, __LINE__, __FUNCTION__); + fprintf(stderr, "" __VA_ARGS__); + if (! (#__VA_ARGS__ [0])) + fprintf(stderr, "abort()"); + fprintf(stderr, "n"); abort(); } while (0)
/*
+ * Internal macro with common code for GP_ASSERT and GP_CHECK.
+ */
+#define GP_GENERAL_CHECK(check_cond_, check_message_, ...) do { + if (unlikely(!(check_cond_))) + if (#__VA_ARGS__ [0]) + GP_ABORT(check_message_ #check_cond_ "n" __VA_ARGS__); + else + GP_ABORT(check_message_ #check_cond_); +} while (0)
+
+/*
* Checks the condition and aborts immediately if it is not satisfied,
* printing the condition and location in the source.
- * (Intended for checking for bugs within the library itself.
- * GP_CHECK is used for reporting user errors, like invalid arguments.)
+ * (Intended for checking for bugs within the library itself.)
+ *
+ * Use as either GP_ASSERT(cond), GP_ASSERT(cond, msg) or
+ * GP_ASSERT(cond, format, params...) where msg and format must be string
+ * constants.
*/
-#define GP_ASSERT(cond) do { - if (unlikely(!(cond))) { - fprintf(stderr, "*** gfxprim: %s:%d: in %s: BUG: assertion failed: %sn", - __FILE__, __LINE__, __FUNCTION__, #cond); - abort(); - } -} while (0)
+#define GP_ASSERT(check_cond_, ...) + GP_GENERAL_CHECK(check_cond_, "asserion failed: ", ##__VA_ARGS__);
/*
* Perform a runtime check, on failure abort and print a message.
- * (This macro is intended for checks for user-caused errors,
- * like invalid arguments, leaving the library in improper state etc.
- * For internal sanity checks, use GP_ASSERT.)
+ * (Intended for user-caused errors like invalid arguments.)
+ *
+ * Use as either GP_CHECK(cond), GP_CHECK(cond, msg) or
+ * GP_CHECK(cond, format, params...) where msg and format must be string
+ * constants.
*/
-#define GP_CHECK(cond, msg) do { - if (unlikely(!(cond))) { - fprintf(stderr, "*** gfxprim: %s:%d: in %s: %sn", - __FILE__, __LINE__, __FUNCTION__, msg); - abort(); - } -} while (0)
+#define GP_CHECK(check_cond_, ...) + GP_GENERAL_CHECK(check_cond_, "check failed: ", ##__VA_ARGS__);
/*
* Swap a and b using an intermediate variable
-----------------------------------------------------------------------
Summary of changes:
core/GP_Common.h | 57 +++++++++++++++++++++++++++++++++--------------------
1 files changed, 35 insertions(+), 22 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 983969d8fad548991c47cf81e7e013308fcf6a70 (commit)
from ab15bc2a2e7b7636d7e0481251615c360de17c3f (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/983969d8fad548991c47cf81e7e013308fcf…
commit 983969d8fad548991c47cf81e7e013308fcf6a70
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun May 22 11:03:33 2011 +0200
Fix FillTriangle pointer passing.
diff --git a/core/GP_Triangle.c b/core/GP_Triangle.c
index 4734617..9a8d87b 100644
--- a/core/GP_Triangle.c
+++ b/core/GP_Triangle.c
@@ -53,7 +53,7 @@ void GP_FillTriangle(GP_Context * context, int x0, int y0, int x1, int y1,
GP_CHECK_CONTEXT(context);
int coords[6] = { x0, y0, x1, y1, x2, y2 };
- GP_FillPolygon(context, 3, &coords, pixel);
+ GP_FillPolygon(context, 3, coords, pixel);
}
void GP_TFillTriangle(GP_Context* context, int x0, int y0, int x1, int y1,
@@ -66,5 +66,5 @@ void GP_TFillTriangle(GP_Context* context, int x0, int y0, int x1, int y1,
GP_TRANSFORM_POINT(context, x2, y2);
int coords[6] = { x0, y0, x1, y1, x2, y2 };
- GP_FillPolygon(context, 3, &coords, pixel);
+ GP_FillPolygon(context, 3, coords, pixel);
}
-----------------------------------------------------------------------
Summary of changes:
core/GP_Triangle.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via ab15bc2a2e7b7636d7e0481251615c360de17c3f (commit)
from 94a7d269628a94cf585ed33951bac25b370f20cc (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/ab15bc2a2e7b7636d7e0481251615c360de1…
commit ab15bc2a2e7b7636d7e0481251615c360de17c3f
Author: Cyril Hrubis <metan(a)ucw.cz>
Date: Sun May 22 10:59:41 2011 +0200
Fix the FnPerBpp macro (now with GNU preprocessor extensions).
diff --git a/core/GP_FnPerBpp.h b/core/GP_FnPerBpp.h
index 712d3b0..0e3da13 100644
--- a/core/GP_FnPerBpp.h
+++ b/core/GP_FnPerBpp.h
@@ -30,55 +30,50 @@
* of the specified function depending on the bit depth of the context.
* Extra arguments are arguments to be passed to the function.
* Returns GP_ENOIMPL if the bit depth is unknown.
- *
- * Note: Relying on existing context variable is ugly and broken, I know...
- * But I hate doing just another GP_FN_PER_BPP macro for functions
- * that takes context as it's only argument. Or passing the context
- * twice or whatever else.
*/
-#define GP_FN_PER_BPP(FN_NAME, ...) +#define GP_FN_PER_BPP(FN_NAME, context, args ...) switch (context->bpp) { case 1: - FN_NAME##1bpp(__VA_ARGS__); + FN_NAME##1bpp(context, ##args); break; case 2: - FN_NAME##2bpp(__VA_ARGS__); + FN_NAME##2bpp(context, ##args); break; case 4: - FN_NAME##4bpp(__VA_ARGS__); + FN_NAME##4bpp(context, ##args); break; case 8: - FN_NAME##8bpp(__VA_ARGS__); + FN_NAME##8bpp(context, ##args); break; case 16: - FN_NAME##16bpp(__VA_ARGS__); + FN_NAME##16bpp(context, ##args); break; case 24: - FN_NAME##24bpp(__VA_ARGS__); + FN_NAME##24bpp(context, ##args); break; case 32: - FN_NAME##32bpp(__VA_ARGS__); + FN_NAME##32bpp(context, ##args); break; default: break; }
-#define GP_FN_RET_PER_BPP(FN_NAME, ...) +#define GP_FN_RET_PER_BPP(FN_NAME, context, args ...) switch (context->bpp) { case 1: - return FN_NAME##1bpp(__VA_ARGS__); + return FN_NAME##1bpp(context, ##args); case 2: - return FN_NAME##2bpp(__VA_ARGS__); + return FN_NAME##2bpp(context, ##args); case 4: - return FN_NAME##4bpp(__VA_ARGS__); + return FN_NAME##4bpp(context, ##args); case 8: - return FN_NAME##8bpp(__VA_ARGS__); + return FN_NAME##8bpp(context, ##args); case 16: - return FN_NAME##16bpp(__VA_ARGS__); + return FN_NAME##16bpp(context, ##args); case 24: - return FN_NAME##24bpp(__VA_ARGS__); + return FN_NAME##24bpp(context, ##args); case 32: - return FN_NAME##32bpp(__VA_ARGS__); + return FN_NAME##32bpp(context, ##args); }
-----------------------------------------------------------------------
Summary of changes:
core/GP_FnPerBpp.h | 37 ++++++++++++++++---------------------
1 files changed, 16 insertions(+), 21 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 48a02d9f6947b24c9b1ea70effaeee5191bf454a (commit)
from 3e089f991eb2a1946964b6d42357db197d3be099 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/48a02d9f6947b24c9b1ea70effaeee5191bf…
commit 48a02d9f6947b24c9b1ea70effaeee5191bf454a
Author: BlueBear <jiri.bluebear.dluhos(a)gmail.com>
Date: Sat May 21 21:07:56 2011 +0200
Separate directory for backends.
diff --git a/core/GP_Backend_SDL.c b/backends/GP_Backend_SDL.c
similarity index 100%
rename from core/GP_Backend_SDL.c
rename to backends/GP_Backend_SDL.c
diff --git a/core/GP_RetCode.c b/core/GP_RetCode.c
index dd53d78..a4069c5 100644
--- a/core/GP_RetCode.c
+++ b/core/GP_RetCode.c
@@ -32,6 +32,7 @@ static char *ret_code_names[] = {
"Not implemented",
"Imprecise result",
"Unexpected null pointer",
+ "No backend available",
"Connection with backend lost",
"Bad context",
"Bad file",
diff --git a/core/GP_RetCode.h b/core/GP_RetCode.h
index 379f621..9241a26 100644
--- a/core/GP_RetCode.h
+++ b/core/GP_RetCode.h
@@ -32,7 +32,8 @@ typedef enum GP_RetCode {
GP_ENOIMPL,
GP_EUNPRECISE,
GP_ENULLPTR, /* some argument was unexpectedly NULL */
- GP_EBACKENDLOST,
+ GP_ENOBACKEND, /* no backend available */
+ GP_EBACKENDLOST, /* lost connection to the backend */
GP_EBADCONTEXT, /* context contains invalid data */
GP_EBADFILE, /* error in file, or bad file format */
GP_ENOENT, /* no such file or another object */
diff --git a/core/Makefile b/core/Makefile
index 83ca598..b23dad4 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -1,9 +1,10 @@
+COREDIR=`pwd`
LIBRARY=libGP_core
-SOURCES=$(wildcard *.c)
+SOURCES=$(wildcard *.c) $(wildcard ../backends/*.c)
OBJECTS=$(SOURCES:.c=.o)
-HEADERS=$(wildcard *.h)
+HEADERS=$(wildcard *.h) $(wildcard ../backends/*.h)
ALGORITHMS=$(wildcard ../algo/*.algo.h)
-CFLAGS=-W -Wall -O2 -fPIC -I../
+CFLAGS=-W -Wall -O2 -fPIC -I$(COREDIR) -I$(COREDIR)/../
HEADER_LOC=/usr/include/
LIB_LOC=/usr/lib/
@@ -32,5 +33,6 @@ $(LIBRARY).so: $(OBJECTS)
clean:
rm -f $(LIBRARY).a $(LIBRARY).so $(LIBRARY).so.0
rm -f *.o
+ rm -f ../backends/*.o
cd tests && $(MAKE) clean
-----------------------------------------------------------------------
Summary of changes:
{core => backends}/GP_Backend_SDL.c | 0
core/GP_RetCode.c | 1 +
core/GP_RetCode.h | 3 ++-
core/Makefile | 8 +++++---
4 files changed, 8 insertions(+), 4 deletions(-)
rename {core => backends}/GP_Backend_SDL.c (100%)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project gfxprim.git.
The branch, master has been updated
via 3e089f991eb2a1946964b6d42357db197d3be099 (commit)
from c3b33c14d2263d443554d1b3ac5f43430e148698 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://repo.or.cz/w/gfxprim.git/commit/3e089f991eb2a1946964b6d42357db197d3b…
commit 3e089f991eb2a1946964b6d42357db197d3be099
Author: BlueBear <jiri.bluebear.dluhos(a)gmail.com>
Date: Mon May 9 00:39:45 2011 +0200
-ldl is needed for the SDL backend to build.
diff --git a/core/Makefile b/core/Makefile
index 9981be7..83ca598 100644
--- a/core/Makefile
+++ b/core/Makefile
@@ -23,7 +23,7 @@ $(LIBRARY).a: $(OBJECTS)
ar crus $@ $^
$(LIBRARY).so: $(OBJECTS)
- $(CC) -fPIC -dPIC -lm --shared -Wl,-soname -Wl,$@.0 $(CFLAGS) $^ -o $@
+ $(CC) -fPIC -dPIC -lm -ldl --shared -Wl,-soname -Wl,$@.0 $(CFLAGS) $^ -o $@
ln -sf $@ $@.0
%.o: %.c $(ALGORITHMS)
-----------------------------------------------------------------------
Summary of changes:
core/Makefile | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
repo.or.cz automatic notification. Contact project admin jiri.bluebear.dluhos(a)gmail.com
if you want to unsubscribe, or site admin admin(a)repo.or.cz if you receive
no reply.
--
gfxprim.git ("A simple 2D graphics library with emphasis on correctness and well-defined operation.")