forked from enlightenment/efl
* formatting: new lines are good for reading code
* remove comma after EINA_MAGIC (compilation with Visual Studio) SVN revision: 38814
This commit is contained in:
parent
53f757287f
commit
e9908d6e42
|
@ -15,6 +15,7 @@
|
|||
* License along with this library;
|
||||
* if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef EINA_TILER_H_
|
||||
#define EINA_TILER_H_
|
||||
|
||||
|
|
|
@ -15,14 +15,17 @@
|
|||
* License along with this library;
|
||||
* if not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
||||
#include "eina_cpu.h"
|
||||
|
||||
/*============================================================================*
|
||||
* Local *
|
||||
*============================================================================*/
|
||||
|
||||
/* FIXME this ifdefs should be replaced */
|
||||
#if defined(__i386__) || defined(__x86_64__)
|
||||
/* We save ebx and restore it to be PIC compatible */
|
||||
|
@ -72,12 +75,15 @@ void _x86_simd(Eina_Cpu_Features *features)
|
|||
*features |= EINA_CPU_SSE3;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*============================================================================*
|
||||
* Global *
|
||||
*============================================================================*/
|
||||
|
||||
/*============================================================================*
|
||||
* API *
|
||||
*============================================================================*/
|
||||
|
||||
/* FIXME the features checks should be called when this function is called?
|
||||
* or make it static by doing eina_cpu_init() and return a local var
|
||||
*/
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
* version Gustavo did is hardcoded here
|
||||
* http://blog.gustavobarbieri.com.br/2007/06/03/evas-now-using-rectangle-split-and-merge/
|
||||
*/
|
||||
|
||||
#ifdef HAVE_CONFIG_H
|
||||
# include "config.h"
|
||||
#endif
|
||||
|
@ -30,9 +31,11 @@
|
|||
|
||||
#include "eina_tiler.h"
|
||||
#include "eina_private.h"
|
||||
|
||||
/*============================================================================*
|
||||
* Local *
|
||||
*============================================================================*/
|
||||
|
||||
/* The splitter data types */
|
||||
typedef struct list_node list_node_t;
|
||||
typedef struct list list_t;
|
||||
|
@ -91,7 +94,7 @@ typedef struct _Eina_Iterator_Tiler
|
|||
Eina_Iterator iterator;
|
||||
const Eina_Tiler *tiler;
|
||||
list_node_t *curr;
|
||||
EINA_MAGIC;
|
||||
EINA_MAGIC
|
||||
} Eina_Iterator_Tiler;
|
||||
|
||||
struct _Eina_Tiler
|
||||
|
@ -101,9 +104,10 @@ struct _Eina_Tiler
|
|||
int w, h;
|
||||
} tile;
|
||||
Eina_Rectangle area;
|
||||
EINA_MAGIC;
|
||||
EINA_MAGIC
|
||||
splitter_t splitter;
|
||||
};
|
||||
|
||||
#define EINA_MAGIC_CHECK_TILER(d) \
|
||||
do { \
|
||||
if (!EINA_MAGIC_CHECK(d, EINA_MAGIC_TILER)) \
|
||||
|
|
Loading…
Reference in New Issue