Enlightenment CVS committal

Author  : doursse
Project : e17
Module  : libs/evas

Dir     : e17/libs/evas/src/lib/include


Modified Files:
        evas_common.h 


Log Message:
fix alloca include with mingw, remove trailing spaces

===================================================================
RCS file: /cvs/e/e17/libs/evas/src/lib/include/evas_common.h,v
retrieving revision 1.88
retrieving revision 1.89
diff -u -3 -r1.88 -r1.89
--- evas_common.h       16 Jul 2007 07:29:34 -0000      1.88
+++ evas_common.h       16 Jul 2007 07:38:48 -0000      1.89
@@ -1,3 +1,7 @@
+/*
+ * vim:ts=8:sw=3:sts=8:noexpandtab:cino=>5n-3f0^-2{2
+ */
+
 #ifndef EVAS_COMMON_H
 #define EVAS_COMMON_H
 
@@ -29,11 +33,11 @@
 //#define EVAS_SLI 1
 
 #else
-# define LK(x)  
-# define LKI(x) 
-# define LKD(x) 
-# define LKL(x) 
-# define LKU(x) 
+# define LK(x)
+# define LKI(x)
+# define LKD(x)
+# define LKL(x)
+# define LKU(x)
 # define TH(x)
 # define THI(x)
 # define TH_MAX 0
@@ -51,7 +55,20 @@
 #include <ctype.h>
 
 #ifdef HAVE_ALLOCA_H
-#include <alloca.h>
+# include <alloca.h>
+#elif defined __GNUC__
+# define alloca __builtin_alloca
+#elif defined _AIX
+# define alloca __alloca
+#elif defined _MSC_VER
+# include <malloc.h>
+# define alloca _alloca
+#else
+# include <stddef.h>
+# ifdef  __cplusplus
+extern "C"
+# endif
+void *alloca (size_t);
 #endif
 
 #ifdef _WIN32_WCE
@@ -173,7 +190,7 @@
 
 typedef void (*Gfx_Func_Convert) (DATA32 *src, DATA8 *dst, int src_jump, int 
dst_jump, int w, int h, int dith_x, int dith_y, DATA8 *pal);
 
-typedef void (*Gfx_Func_Gradient_Fill)(DATA32 *src, int src_len, 
+typedef void (*Gfx_Func_Gradient_Fill)(DATA32 *src, int src_len,
                                          DATA32 *dst, DATA8 *mask, int len,
                                          int x, int y, int axx, int axy, int 
ayx, int ayy,
                                          void *geom_data);
@@ -306,7 +323,7 @@
    RGBA_Draw_Context         context;
    void                    (*op_func) (RGBA_Image *dst, RGBA_Pipe_Op *op, 
RGBA_Pipe_Thread_Info *info);
    void                    (*free_func) (RGBA_Pipe_Op *op);
-                                  
+
    union {
       struct {
         int                 x, y, w, h;
@@ -470,9 +487,9 @@
        RGBA_Gradient_Type *geometer;
        void          *gdata;
      } type;
-   
+
    int references;
-   
+
    unsigned char     imported_data : 1;
    unsigned char     has_alpha : 1;
 };
@@ -537,7 +554,7 @@
    int               data_size;
    int               current_size;
    Evas_Array_Hash  *charmap;
-   
+
    struct {
       int           orig_upem;
       FT_Face       face;
@@ -851,7 +868,7 @@
 EAPI void evas_common_cpu_can_do                        (int *mmx, int *sse, 
int *sse2);
 EAPI void evas_common_cpu_end_opt                       (void);
 EAPI int evas_common_cpu_count                          (void);
-       
+
 /****/
 EAPI void evas_common_blend_init                        (void);
 
@@ -1172,7 +1189,7 @@
 void          evas_common_regionbuf_span_del  (Regionbuf *rb, int x1, int x2, 
int y);
 Tilebuf_Rect *evas_common_regionbuf_rects_get (Regionbuf *rb);
 */
-   
+
 /****/
 EAPI void               evas_common_draw_init                      (void);
 
@@ -1198,7 +1215,7 @@
 EAPI void               
evas_common_draw_context_set_color_interpolation(RGBA_Draw_Context *dc, int 
color_space);
 EAPI void               evas_common_draw_context_set_render_op     
(RGBA_Draw_Context *dc, int op);
 EAPI void               evas_common_draw_context_set_sli           
(RGBA_Draw_Context *dc, int y, int h);
-       
+
 /****/
 /* image rendering pipelines... new optional system - non-immediate and
  * threadable
@@ -1212,7 +1229,7 @@
 EAPI void evas_common_pipe_grad_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, 
int x, int y, int w, int h, RGBA_Gradient *gr);
 EAPI void evas_common_pipe_text_draw(RGBA_Image *dst, RGBA_Draw_Context *dc, 
RGBA_Font *fn, int x, int y, const char *text);
 EAPI void evas_common_pipe_image_draw(RGBA_Image *src, RGBA_Image *dst, 
RGBA_Draw_Context *dc, int smooth, int src_region_x, int src_region_y, int 
src_region_w, int src_region_h, int dst_region_x, int dst_region_y, int 
dst_region_w, int dst_region_h);
-     
+
 void              evas_font_dir_cache_free(void);
 
 Evas_Array_Hash        *evas_common_array_hash_new     (void);



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to