forked from enlightenment/efl
parent
80a1aea7b0
commit
0279df6fc1
|
@ -522,7 +522,7 @@ typedef struct _Eet_Dictionary Eet_Dictionary;
|
|||
* You can also open the file for read/write. If you then write a key that
|
||||
* does not exist it will be created, if the key exists it will be replaced
|
||||
* by the new data.
|
||||
*
|
||||
*
|
||||
* If the same file is opened multiple times, then the same file handle will
|
||||
* be returned as eet maintains an internal list of all currently open
|
||||
* files. Note that it considers files opened for read only and those opened
|
||||
|
@ -1389,7 +1389,7 @@ eet_data_image_read_cipher(Eet_File *ef,
|
|||
int *compress,
|
||||
int *quality,
|
||||
int *lossy);
|
||||
|
||||
|
||||
/**
|
||||
* Read image data from the named key in the eet file using a cipher.
|
||||
* @param ef A valid eet file handle opened for reading.
|
||||
|
@ -2343,7 +2343,7 @@ typedef struct _Eet_Data_Descriptor Eet_Data_Descriptor;
|
|||
typedef struct _Eet_Data_Descriptor_Class Eet_Data_Descriptor_Class;
|
||||
|
||||
typedef int (*Eet_Descriptor_Hash_Foreach_Callback_Callback)(void *h, const char *k, void *dt, void *fdt);
|
||||
|
||||
|
||||
typedef void *(*Eet_Descriptor_Mem_Alloc_Callback)(size_t size);
|
||||
typedef void (*Eet_Descriptor_Mem_Free_Callback)(void *mem);
|
||||
typedef char *(*Eet_Descriptor_Str_Alloc_Callback)(const char *str);
|
||||
|
@ -2405,7 +2405,7 @@ struct _Eet_Data_Descriptor_Class
|
|||
* @}
|
||||
*/
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Create a new empty data structure descriptor.
|
||||
* @param name The string name of this data structure (most be a
|
||||
|
@ -3218,7 +3218,7 @@ eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
|
|||
(char *)(& (___ett)), \
|
||||
NULL, unified_type); \
|
||||
} while (0)
|
||||
|
||||
|
||||
/**
|
||||
* Add a automatically selectable type to a data descriptor
|
||||
* @param edd The data descriptor to add the type to.
|
||||
|
@ -3250,7 +3250,7 @@ eet_data_descriptor_encode(Eet_Data_Descriptor *edd,
|
|||
(char *)(& (___ett)), \
|
||||
NULL, unified_type); \
|
||||
} while (0)
|
||||
|
||||
|
||||
/**
|
||||
* Add a mapping to a data descriptor that will be used by union, variant or inherited type
|
||||
* @param unified_type The data descriptor to add the mapping to.
|
||||
|
@ -3906,7 +3906,7 @@ typedef void *(*Eet_Node_Walk_List_Callback)(const char *name, void *user_data);
|
|||
typedef void (*Eet_Node_Walk_Append_Callback)(void *list, void *child, void *user_data);
|
||||
typedef void *(*Eet_Node_Walk_Hash_Callback)(void *parent, const char *name, const char *key, void *value, void *user_data);
|
||||
typedef void *(*Eet_Node_Walk_Simple_Callback)(int type, Eet_Node_Data *data, void *user_data);
|
||||
|
||||
|
||||
/**
|
||||
* @struct _Eet_Node_Walk
|
||||
* Describes how to walk trees of #Eet_Node.
|
||||
|
|
|
@ -150,7 +150,7 @@ eet_identity_open(const char *certificate_file,
|
|||
|
||||
/* let's make mmap safe and just get 0 pages for IO erro */
|
||||
eina_mmap_safety_enabled_set(EINA_TRUE);
|
||||
|
||||
|
||||
if ((data =
|
||||
mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
|
||||
goto on_error;
|
||||
|
@ -184,7 +184,7 @@ eet_identity_open(const char *certificate_file,
|
|||
|
||||
/* let's make mmap safe and just get 0 pages for IO erro */
|
||||
eina_mmap_safety_enabled_set(EINA_TRUE);
|
||||
|
||||
|
||||
if ((data =
|
||||
mmap(NULL, st.st_size, PROT_READ, MAP_PRIVATE, fd, 0)) == MAP_FAILED)
|
||||
goto on_error;
|
||||
|
@ -533,7 +533,7 @@ eet_identity_sign(FILE *fp,
|
|||
|
||||
/* let's make mmap safe and just get 0 pages for IO erro */
|
||||
eina_mmap_safety_enabled_set(EINA_TRUE);
|
||||
|
||||
|
||||
/* Map the file in memory. */
|
||||
data = mmap(NULL, st_buf.st_size, PROT_READ, MAP_PRIVATE, fd, 0);
|
||||
if (data == MAP_FAILED)
|
||||
|
|
|
@ -94,7 +94,7 @@ static void
|
|||
_eet_jpeg_membuf_src_term(j_decompress_ptr cinfo)
|
||||
{
|
||||
struct jpeg_membuf_src *src = ((struct jpeg_membuf_src *)cinfo->src)->self;
|
||||
|
||||
|
||||
free(src);
|
||||
cinfo->src = NULL;
|
||||
} /* _eet_jpeg_membuf_src_term */
|
||||
|
@ -111,7 +111,7 @@ eet_jpeg_membuf_src(j_decompress_ptr cinfo,
|
|||
return -1;
|
||||
|
||||
src->self = src;
|
||||
|
||||
|
||||
cinfo->src = &src->pub;
|
||||
src->buf = buf;
|
||||
src->len = len;
|
||||
|
@ -1571,7 +1571,7 @@ _eet_data_image_decode_inside(const void *data,
|
|||
Bytef *dtmp;
|
||||
uLongf dlen = src_w * src_h * 4;
|
||||
|
||||
/* FIXME: This could create a huge alloc. So compressed
|
||||
/* FIXME: This could create a huge alloc. So compressed
|
||||
data and tile could not always work. */
|
||||
dtmp = malloc(dlen);
|
||||
if (!dtmp)
|
||||
|
|
|
@ -929,7 +929,7 @@ eet_internal_read2(Eet_File *ef)
|
|||
efn = malloc(sizeof(Eet_File_Node));
|
||||
if (eet_test_close(!efn, ef))
|
||||
{
|
||||
if (efn) free(efn); /* yes i know - we only get here if
|
||||
if (efn) free(efn); /* yes i know - we only get here if
|
||||
* efn is null/0 -> trying to shut up
|
||||
* warning tools like cppcheck */
|
||||
return NULL;
|
||||
|
@ -1193,7 +1193,7 @@ eet_internal_read1(Eet_File *ef)
|
|||
efn = malloc (sizeof(Eet_File_Node));
|
||||
if (eet_test_close(!efn, ef))
|
||||
{
|
||||
if (efn) free(efn); /* yes i know - we only get here if
|
||||
if (efn) free(efn); /* yes i know - we only get here if
|
||||
* efn is null/0 -> trying to shut up
|
||||
* warning tools like cppcheck */
|
||||
return NULL;
|
||||
|
|
Loading…
Reference in New Issue