Enlightenment CVS committal
Author : vapier
Project : e17
Module : libs/imlib2
Dir : e17/libs/imlib2/src/lib
Modified Files:
asm.h
Log Message:
cleanup and simplify ... this should also fix the preprocessor paste error seen
on x86
===================================================================
RCS file: /cvs/e/e17/libs/imlib2/src/lib/asm.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -3 -r1.1 -r1.2
--- asm.h 9 Apr 2006 08:12:51 -0000 1.1
+++ asm.h 13 Jan 2007 05:39:06 -0000 1.2
@@ -4,32 +4,23 @@
#ifdef __EMX__
/* Due to strange behaviour of as.exe we use this macros */
/* For all OS/2 coders - please use PGCC to compile this code */
-#define PR_(foo) ___##foo
-#define PT_(foo,func) ___##foo,##func
-#define FN_(foo) \
-.globl PR_(foo); \
- .type PT_(foo,@function)
-#define SIZE(sym) \
- .___end_##sym:; \
- .size ___##sym,.___end_##sym-___##sym; \
- .align 8;
-#else /* not __EMX__ */
-#define PR_(foo) __##foo
-#define PT_(foo,func) __##foo,##func
+# define PR_(sym) ___##sym
+#else
+# define PR_(sym) __##sym
+#endif
+
#ifdef USE_HIDDEN_FUNCTION_ATTRIBUTE
-#define FN_(foo) \
-.globl PR_(foo); \
- .hidden PR_(foo); \
- .type PT_(foo,@function)
-#else /* not USE_HIDDEN... */
-#define FN_(foo) \
-.globl PR_(foo); \
- .type PT_(foo,@function)
-#endif /* USE_HIDDEN... */
-#define SIZE(sym) \
- .__end_##sym:; \
- .size __##sym,.__end_##sym-__##sym; \
- .align 8;
+# define HIDDEN_(sym) .hidden PR_(sym)
+#else
+# define HIDDEN_(sym)
#endif
+
+#define FN_(sym) \
+ .global PR_(sym); \
+ HIDDEN_(sym); \
+ .type PR_(sym),@function;
+#define SIZE(sym) \
+ .size PR_(sym),.-PR_(sym); \
+ .align 8;
#endif /* __ASM_H */
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs