From ce0bd5f36eadcbe91bbe2208fa9681fc12bf8c46 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Fri, 2 Dec 2011 14:42:13 +0000 Subject: [PATCH] remove annoying post-brace comments SVN revision: 65819 --- legacy/eet/src/lib/eet_cipher.c | 26 +-- legacy/eet/src/lib/eet_connection.c | 12 +- legacy/eet/src/lib/eet_data.c | 238 ++++++++++++++-------------- legacy/eet/src/lib/eet_dictionary.c | 30 ++-- legacy/eet/src/lib/eet_image.c | 74 ++++----- legacy/eet/src/lib/eet_lib.c | 76 ++++----- legacy/eet/src/lib/eet_node.c | 56 +++---- legacy/eet/src/lib/eet_utils.c | 2 +- 8 files changed, 257 insertions(+), 257 deletions(-) diff --git a/legacy/eet/src/lib/eet_cipher.c b/legacy/eet/src/lib/eet_cipher.c index 89ee65d2b3..37a0899623 100644 --- a/legacy/eet/src/lib/eet_cipher.c +++ b/legacy/eet/src/lib/eet_cipher.c @@ -275,7 +275,7 @@ on_error: cb = NULL; #endif /* ifdef HAVE_SIGNATURE */ return NULL; -} /* eet_identity_open */ +} EAPI void eet_identity_close(Eet_Key *key) @@ -295,7 +295,7 @@ eet_identity_close(Eet_Key *key) #else key = NULL; #endif /* ifdef HAVE_SIGNATURE */ -} /* eet_identity_close */ +} EAPI void eet_identity_print(Eet_Key *key, @@ -419,7 +419,7 @@ on_error: out = NULL; ERR("You need to compile signature support in EET."); #endif /* ifdef HAVE_SIGNATURE */ -} /* eet_identity_print */ +} void eet_identity_ref(Eet_Key *key) @@ -428,7 +428,7 @@ eet_identity_ref(Eet_Key *key) return; key->references++; -} /* eet_identity_ref */ +} void eet_identity_unref(Eet_Key *key) @@ -438,7 +438,7 @@ eet_identity_unref(Eet_Key *key) key->references--; eet_identity_close(key); -} /* eet_identity_unref */ +} void * eet_identity_compute_sha1(const void *data_base, @@ -479,7 +479,7 @@ eet_identity_compute_sha1(const void *data_base, #endif /* ifdef HAVE_SIGNATURE */ return result; -} /* eet_identity_compute_sha1 */ +} Eet_Error eet_identity_sign(FILE *fp, @@ -650,7 +650,7 @@ on_error: key = NULL; return EET_ERROR_NOT_IMPLEMENTED; #endif /* ifdef HAVE_SIGNATURE */ -} /* eet_identity_sign */ +} const void * eet_identity_check(const void *data_base, @@ -830,7 +830,7 @@ eet_identity_check(const void *data_base, x509_length = NULL; return NULL; #endif /* ifdef HAVE_SIGNATURE */ -} /* eet_identity_check */ +} EAPI void eet_identity_certificate_print(const unsigned char *certificate, @@ -896,7 +896,7 @@ on_error: out = NULL; ERR("You need to compile signature support in EET."); #endif /* ifdef HAVE_SIGNATURE */ -} /* eet_identity_certificate_print */ +} Eet_Error eet_cipher(const void *data, @@ -1073,7 +1073,7 @@ on_error: (void)result_length; return EET_ERROR_NOT_IMPLEMENTED; #endif /* ifdef HAVE_CIPHER */ -} /* eet_cipher */ +} Eet_Error eet_decipher(const void *data, @@ -1224,7 +1224,7 @@ on_error: (void)result_length; return EET_ERROR_NOT_IMPLEMENTED; #endif /* ifdef HAVE_CIPHER */ -} /* eet_decipher */ +} #ifdef HAVE_CIPHER # ifdef HAVE_GNUTLS @@ -1265,7 +1265,7 @@ eet_hmac_sha1(const void *key, gcry_md_close(mdh); return 0; -} /* eet_hmac_sha1 */ +} # endif /* ifdef HAVE_GNUTLS */ @@ -1337,6 +1337,6 @@ eet_pbkdf2_sha1(const char *key, HMAC_cleanup(&hctx); # endif /* ifdef HAVE_GNUTLS */ return 0; -} /* eet_pbkdf2_sha1 */ +} #endif /* ifdef HAVE_CIPHER */ diff --git a/legacy/eet/src/lib/eet_connection.c b/legacy/eet/src/lib/eet_connection.c index 6171b7e4e6..6036a5a2e3 100644 --- a/legacy/eet/src/lib/eet_connection.c +++ b/legacy/eet/src/lib/eet_connection.c @@ -69,7 +69,7 @@ eet_connection_new(Eet_Read_Cb *eet_read_cb, conn->user_data = (void *)user_data; return conn; -} /* eet_connection_new */ +} EAPI int eet_connection_received(Eet_Connection *conn, @@ -158,7 +158,7 @@ eet_connection_received(Eet_Connection *conn, } while (size > 0); return size; -} /* eet_connection_received */ +} static Eina_Bool _eet_connection_raw_send(Eet_Connection *conn, @@ -181,7 +181,7 @@ _eet_connection_raw_send(Eet_Connection *conn, data_size + sizeof (int) * 2, conn->user_data); return EINA_TRUE; -} /* _eet_connection_raw_send */ +} EAPI Eina_Bool eet_connection_send(Eet_Connection *conn, @@ -205,7 +205,7 @@ eet_connection_send(Eet_Connection *conn, free(flat_data); return ret; -} /* eet_connection_send */ +} EAPI Eina_Bool eet_connection_node_send(Eet_Connection *conn, @@ -225,7 +225,7 @@ eet_connection_node_send(Eet_Connection *conn, free(data); return ret; -} /* eet_connection_node_send */ +} EAPI void * eet_connection_close(Eet_Connection *conn, @@ -245,5 +245,5 @@ eet_connection_close(Eet_Connection *conn, free(conn); return user_data; -} /* eet_connection_close */ +} diff --git a/legacy/eet/src/lib/eet_data.c b/legacy/eet/src/lib/eet_data.c index 23b0b97448..56b9ee0885 100644 --- a/legacy/eet/src/lib/eet_data.c +++ b/legacy/eet/src/lib/eet_data.c @@ -651,7 +651,7 @@ eet_data_get_char(const Eet_Dictionary *ed __UNUSED__, *d = *s; CONV8(*d); return sizeof(char); -} /* eet_data_get_char */ +} static void * eet_data_put_char(Eet_Dictionary *ed __UNUSED__, @@ -669,7 +669,7 @@ eet_data_put_char(Eet_Dictionary *ed __UNUSED__, CONV8(*d); *size_ret = sizeof(char); return d; -} /* eet_data_put_char */ +} /* SHORT TYPE */ static int @@ -687,7 +687,7 @@ eet_data_get_short(const Eet_Dictionary *ed __UNUSED__, d = (short *)dst; CONV16(*d); return sizeof(short); -} /* eet_data_get_short */ +} static void * eet_data_put_short(Eet_Dictionary *ed __UNUSED__, @@ -705,7 +705,7 @@ eet_data_put_short(Eet_Dictionary *ed __UNUSED__, CONV16(*d); *size_ret = sizeof(short); return d; -} /* eet_data_put_short */ +} /* INT TYPE */ static inline int @@ -723,7 +723,7 @@ eet_data_get_int(const Eet_Dictionary *ed __UNUSED__, d = (int *)dst; CONV32(*d); return sizeof(int); -} /* eet_data_get_int */ +} static void * eet_data_put_int(Eet_Dictionary *ed __UNUSED__, @@ -741,7 +741,7 @@ eet_data_put_int(Eet_Dictionary *ed __UNUSED__, CONV32(*d); *size_ret = sizeof(int); return d; -} /* eet_data_put_int */ +} /* LONG LONG TYPE */ static int @@ -759,7 +759,7 @@ eet_data_get_long_long(const Eet_Dictionary *ed __UNUSED__, d = (unsigned long long *)dst; CONV64(*d); return sizeof(unsigned long long); -} /* eet_data_get_long_long */ +} static void * eet_data_put_long_long(Eet_Dictionary *ed __UNUSED__, @@ -777,7 +777,7 @@ eet_data_put_long_long(Eet_Dictionary *ed __UNUSED__, CONV64(*d); *size_ret = sizeof(unsigned long long); return d; -} /* eet_data_put_long_long */ +} /* STRING TYPE */ static inline int @@ -796,7 +796,7 @@ eet_data_get_string_hash(const Eet_Dictionary *ed, } return -1; -} /* eet_data_get_string_hash */ +} static inline int eet_data_get_string(const Eet_Dictionary *ed, @@ -833,7 +833,7 @@ eet_data_get_string(const Eet_Dictionary *ed, *d = s; return strlen(s) + 1; -} /* eet_data_get_string */ +} static void * eet_data_put_string(Eet_Dictionary *ed, @@ -871,7 +871,7 @@ eet_data_put_string(Eet_Dictionary *ed, memcpy(d, s, len + 1); *size_ret = len + 1; return d; -} /* eet_data_put_string */ +} /* ALWAYS INLINED STRING TYPE */ static int @@ -881,7 +881,7 @@ eet_data_get_istring(const Eet_Dictionary *ed __UNUSED__, void *dst) { return eet_data_get_string(NULL, src, src_end, dst); -} /* eet_data_get_istring */ +} static void * eet_data_put_istring(Eet_Dictionary *ed __UNUSED__, @@ -889,7 +889,7 @@ eet_data_put_istring(Eet_Dictionary *ed __UNUSED__, int *size_ret) { return eet_data_put_string(NULL, src, size_ret); -} /* eet_data_put_istring */ +} /* ALWAYS NULL TYPE */ static int @@ -904,7 +904,7 @@ eet_data_get_null(const Eet_Dictionary *ed __UNUSED__, *d = NULL; return 1; -} /* eet_data_get_null */ +} static void * eet_data_put_null(Eet_Dictionary *ed __UNUSED__, @@ -913,7 +913,7 @@ eet_data_put_null(Eet_Dictionary *ed __UNUSED__, { *size_ret = 0; return NULL; -} /* eet_data_put_null */ +} /** * Fast lookups of simple doubles/floats. @@ -941,7 +941,7 @@ _eet_data_float_cache_get(const char *s, } return 0; -} /* _eet_data_float_cache_get */ +} static inline int _eet_data_double_cache_get(const char *s, @@ -963,7 +963,7 @@ _eet_data_double_cache_get(const char *s, } return 0; -} /* _eet_data_double_cache_get */ +} /* FLOAT TYPE */ static int @@ -1006,7 +1006,7 @@ eet_data_get_float(const Eet_Dictionary *ed, return -1; return 1; -} /* eet_data_get_float */ +} static void * eet_data_put_float(Eet_Dictionary *ed, @@ -1038,7 +1038,7 @@ eet_data_put_float(Eet_Dictionary *ed, return NULL; return eet_data_put_int(ed, &idx, size_ret); -} /* eet_data_put_float */ +} /* DOUBLE TYPE */ static int @@ -1082,7 +1082,7 @@ eet_data_get_double(const Eet_Dictionary *ed, return -1; return 1; -} /* eet_data_get_double */ +} static void * eet_data_put_double(Eet_Dictionary *ed, @@ -1115,7 +1115,7 @@ eet_data_put_double(Eet_Dictionary *ed, return NULL; return eet_data_put_int(ed, &idx, size_ret); -} /* eet_data_put_double */ +} static int eet_data_get_f32p32(const Eet_Dictionary *ed, @@ -1151,7 +1151,7 @@ eet_data_get_f32p32(const Eet_Dictionary *ed, return -1; return 1; -} /* eet_data_get_f32p32 */ +} static void * eet_data_put_f32p32(Eet_Dictionary *ed, @@ -1184,7 +1184,7 @@ eet_data_put_f32p32(Eet_Dictionary *ed, return NULL; return eet_data_put_int(ed, &idx, size_ret); -} /* eet_data_put_f32p32 */ +} static int eet_data_get_f16p16(const Eet_Dictionary *ed, @@ -1202,7 +1202,7 @@ eet_data_get_f16p16(const Eet_Dictionary *ed, *fp = eina_f32p32_to_f16p16(tmp); return 1; -} /* eet_data_get_f16p16 */ +} static void * eet_data_put_f16p16(Eet_Dictionary *ed, @@ -1213,7 +1213,7 @@ eet_data_put_f16p16(Eet_Dictionary *ed, tmp = eina_f16p16_to_f32p32((Eina_F16p16)(*(Eina_F16p16 *)src)); return eet_data_put_f32p32(ed, &tmp, size_ret); -} /* eet_data_put_f16p16 */ +} static int eet_data_get_f8p24(const Eet_Dictionary *ed, @@ -1231,7 +1231,7 @@ eet_data_get_f8p24(const Eet_Dictionary *ed, *fp = eina_f32p32_to_f8p24(tmp); return 1; -} /* eet_data_get_f8p24 */ +} static void * eet_data_put_f8p24(Eet_Dictionary *ed, @@ -1242,7 +1242,7 @@ eet_data_put_f8p24(Eet_Dictionary *ed, tmp = eina_f8p24_to_f32p32((Eina_F8p24)(*(Eina_F8p24 *)src)); return eet_data_put_f32p32(ed, &tmp, size_ret); -} /* eet_data_put_f8p24 */ +} static inline int eet_data_get_type(const Eet_Dictionary *ed, @@ -1255,7 +1255,7 @@ eet_data_get_type(const Eet_Dictionary *ed, ret = eet_basic_codec[type - 1].get(ed, src, src_end, dest); return ret; -} /* eet_data_get_type */ +} static inline void * eet_data_put_type(Eet_Dictionary *ed, @@ -1267,7 +1267,7 @@ eet_data_put_type(Eet_Dictionary *ed, ret = eet_basic_codec[type - 1].put(ed, src, size_ret); return ret; -} /* eet_data_put_type */ +} static inline Eina_Bool eet_data_type_match(int type1, @@ -1301,10 +1301,10 @@ eet_data_type_match(int type1, default: break; - } /* switch */ + } return EINA_FALSE; -} /* eet_data_type_match */ +} /* chunk format... * @@ -1359,7 +1359,7 @@ case EET_I_ ## Type: chnk->type = EET_T_ ## Type; break; default: return; - } /* switch */ + } } else if (chnk->type > EET_T_LAST) { @@ -1409,7 +1409,7 @@ case EET_I_ ## Type: chnk->type = EET_T_ ## Type; break; } return; -} /* eet_data_chunk_get */ +} static inline Eet_Data_Chunk * eet_data_chunk_new(void *data, @@ -1441,7 +1441,7 @@ eet_data_chunk_new(void *data, chnk->type = type; chnk->group_type = group_type; return chnk; -} /* eet_data_chunk_new */ +} static inline void eet_data_chunk_free(Eet_Data_Chunk *chnk) @@ -1450,7 +1450,7 @@ eet_data_chunk_free(Eet_Data_Chunk *chnk) free(chnk->name); free(chnk); -} /* eet_data_chunk_free */ +} static inline Eet_Data_Stream * eet_data_stream_new(void) @@ -1462,7 +1462,7 @@ eet_data_stream_new(void) return NULL; return ds; -} /* eet_data_stream_new */ +} static inline void eet_data_stream_free(Eet_Data_Stream *ds) @@ -1471,13 +1471,13 @@ eet_data_stream_free(Eet_Data_Stream *ds) free(ds->data); free(ds); -} /* eet_data_stream_free */ +} static inline void eet_data_stream_flush(Eet_Data_Stream *ds) { free(ds); -} /* eet_data_stream_flush */ +} static inline void eet_data_stream_write(Eet_Data_Stream *ds, @@ -1502,7 +1502,7 @@ eet_data_stream_write(Eet_Data_Stream *ds, p = ds->data; memcpy(p + ds->pos, data, size); ds->pos += size; -} /* eet_data_stream_write */ +} static void eet_data_chunk_put(Eet_Dictionary *ed, @@ -1541,7 +1541,7 @@ case EET_T_ ## Type: type += EET_I_ ## Type; break; default: return; - } /* switch */ + } buf[3] = type; } @@ -1578,7 +1578,7 @@ case EET_T_ ## Type: type += EET_I_ ## Type; break; free(string); on_error: free(size); -} /* eet_data_chunk_put */ +} /*---*/ @@ -1611,7 +1611,7 @@ _eet_descriptor_hash_new(Eet_Data_Descriptor *edd) edd->elements.hash.buckets[hash].next = bucket; } } -} /* _eet_descriptor_hash_new */ +} static void _eet_descriptor_hash_free(Eet_Data_Descriptor *edd) @@ -1632,7 +1632,7 @@ _eet_descriptor_hash_free(Eet_Data_Descriptor *edd) } if (edd->elements.hash.buckets) free(edd->elements.hash.buckets); -} /* _eet_descriptor_hash_free */ +} static Eet_Data_Element * _eet_descriptor_hash_find(Eet_Data_Descriptor *edd, @@ -1677,31 +1677,31 @@ _eet_descriptor_hash_find(Eet_Data_Descriptor *edd, bucket = bucket->next; } return NULL; -} /* _eet_descriptor_hash_find */ +} static void * _eet_mem_alloc(size_t size) { return calloc(1, size); -} /* _eet_mem_alloc */ +} static void _eet_mem_free(void *mem) { free(mem); -} /* _eet_mem_free */ +} static char * _eet_str_alloc(const char *str) { return strdup(str); -} /* _eet_str_alloc */ +} static void _eet_str_free(const char *str) { free((char *)str); -} /* _eet_str_free */ +} static Eina_Hash * _eet_eina_hash_add_alloc(Eina_Hash *hash, @@ -1716,7 +1716,7 @@ _eet_eina_hash_add_alloc(Eina_Hash *hash, eina_hash_add(hash, key, data); return hash; -} /* _eet_eina_hash_add_alloc */ +} static Eina_Hash * _eet_eina_hash_direct_add_alloc(Eina_Hash *hash, @@ -1731,18 +1731,18 @@ _eet_eina_hash_direct_add_alloc(Eina_Hash *hash, eina_hash_direct_add(hash, key, data); return hash; -} /* _eet_eina_hash_direct_add_alloc */ +} static char * _eet_str_direct_alloc(const char *str) { return (char *)str; -} /* _eet_str_direct_alloc */ +} static void _eet_str_direct_free(const char *str __UNUSED__) { -} /* _eet_str_direct_free */ +} static void _eet_eina_hash_foreach(void *hash, @@ -1751,14 +1751,14 @@ _eet_eina_hash_foreach(void *hash, { if (hash) eina_hash_foreach(hash, cb, fdata); -} /* _eet_eina_hash_foreach */ +} static void _eet_eina_hash_free(void *hash) { if (hash) eina_hash_free(hash); -} /* _eet_eina_hash_free */ +} /*---*/ EAPI Eina_Bool @@ -1792,7 +1792,7 @@ eet_eina_stream_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc, eddc->func.array_free = _eet_mem_free; return EINA_TRUE; -} /* eet_eina_stream_data_descriptor_class_set */ +} EAPI Eina_Bool eet_eina_file_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc, @@ -1811,7 +1811,7 @@ eet_eina_file_data_descriptor_class_set(Eet_Data_Descriptor_Class *eddc, eddc->func.str_direct_free = _eet_str_direct_free; return EINA_TRUE; -} /* eet_eina_file_data_descriptor_class_set */ +} static Eet_Data_Descriptor * _eet_data_descriptor_new(const Eet_Data_Descriptor_Class *eddc, @@ -1872,7 +1872,7 @@ _eet_data_descriptor_new(const Eet_Data_Descriptor_Class *eddc, } return edd; -} /* _eet_data_descriptor_new */ +} EAPI Eet_Data_Descriptor * eet_data_descriptor_new(const char *name, @@ -1905,31 +1905,31 @@ eet_data_descriptor_new(const char *name, eddc.func.hash_free = func_hash_free; return _eet_data_descriptor_new(&eddc, 0); -} /* eet_data_descriptor_new */ +} EAPI Eet_Data_Descriptor * eet_data_descriptor2_new(const Eet_Data_Descriptor_Class *eddc) { return _eet_data_descriptor_new(eddc, 1); -} /* eet_data_descriptor2_new */ +} EAPI Eet_Data_Descriptor * eet_data_descriptor3_new(const Eet_Data_Descriptor_Class *eddc) { return _eet_data_descriptor_new(eddc, 2); -} /* eet_data_descriptor3_new */ +} EAPI Eet_Data_Descriptor * eet_data_descriptor_stream_new(const Eet_Data_Descriptor_Class *eddc) { return _eet_data_descriptor_new(eddc, 1); -} /* eet_data_descriptor_stream_new */ +} EAPI Eet_Data_Descriptor * eet_data_descriptor_file_new(const Eet_Data_Descriptor_Class *eddc) { return _eet_data_descriptor_new(eddc, 2); -} /* eet_data_descriptor_file_new */ +} EAPI void eet_data_descriptor_free(Eet_Data_Descriptor *edd) @@ -1942,7 +1942,7 @@ eet_data_descriptor_free(Eet_Data_Descriptor *edd) free(edd->elements.set); free(edd); -} /* eet_data_descriptor_free */ +} EAPI void eet_data_descriptor_element_add(Eet_Data_Descriptor *edd, @@ -2039,7 +2039,7 @@ eet_data_descriptor_element_add(Eet_Data_Descriptor *edd, ede->counter_name = counter_name; ede->subtype = subtype; -} /* eet_data_descriptor_element_add */ +} EAPI void * eet_data_read_cipher(Eet_File *ef, @@ -2075,7 +2075,7 @@ eet_data_read_cipher(Eet_File *ef, free((void *)data); return data_dec; -} /* eet_data_read_cipher */ +} EAPI Eet_Node * eet_data_node_read_cipher(Eet_File *ef, @@ -2110,7 +2110,7 @@ eet_data_node_read_cipher(Eet_File *ef, free((void *)data); return result; -} /* eet_data_node_read_cipher */ +} EAPI void * eet_data_read(Eet_File *ef, @@ -2118,7 +2118,7 @@ eet_data_read(Eet_File *ef, const char *name) { return eet_data_read_cipher(ef, edd, name, NULL); -} /* eet_data_read */ +} EAPI int eet_data_write_cipher(Eet_File *ef, @@ -2142,7 +2142,7 @@ eet_data_write_cipher(Eet_File *ef, val = eet_write_cipher(ef, name, data_enc, size, compress, cipher_key); free(data_enc); return val; -} /* eet_data_write_cipher */ +} EAPI int eet_data_write(Eet_File *ef, @@ -2152,7 +2152,7 @@ eet_data_write(Eet_File *ef, int compress) { return eet_data_write_cipher(ef, edd, name, NULL, data, compress); -} /* eet_data_write */ +} static void eet_free_context_init(Eet_Free_Context *context) @@ -2222,7 +2222,7 @@ _eet_free_hash(void *data) #endif /* if defined (_WIN64) || ((!defined (_WIN32)) && (LONG_BIT != 32)) */ return hash & 0xFF; -} /* _eet_free_hash */ +} static void _eet_free_add(Eet_Free *ef, @@ -2240,7 +2240,7 @@ _eet_free_add(Eet_Free *ef, return; eina_array_push(&ef->list[hash], data); -} /* _eet_free_add */ +} #if 0 static void @@ -2274,19 +2274,19 @@ _eet_free_reset(Eet_Free *ef) for (i = 0; i < EET_FREE_COUNT; ++i) eina_array_clean(&ef->list[i]); -} /* _eet_free_reset */ +} static void _eet_free_ref(Eet_Free *ef) { ef->ref++; -} /* _eet_free_ref */ +} static void _eet_free_unref(Eet_Free *ef) { ef->ref--; -} /* _eet_free_unref */ +} #define _eet_freelist_add(Ctx, Data) _eet_free_add(&Ctx->freelist, Data); #define _eet_freelist_del(Ctx, Data) _eet_free_del(&Ctx->freelist, Data); @@ -2316,7 +2316,7 @@ _eet_freelist_free(Eet_Free_Context *context, free(track); } _eet_free_reset(&context->freelist); -} /* _eet_freelist_free */ +} #define _eet_freelist_array_add(Ctx, Data) _eet_free_add(&Ctx->freelist_array, Data); #define _eet_freelist_array_del(Ctx, Data) _eet_free_del(&Ctx->freelist_array, Data); @@ -2351,7 +2351,7 @@ _eet_freelist_array_free(Eet_Free_Context *context, free(track); } _eet_free_reset(&context->freelist_array); -} /* _eet_freelist_array_free */ +} #define _eet_freelist_list_add(Ctx, Data) _eet_free_add(&Ctx->freelist_list, Data); #define _eet_freelist_list_del(Ctx, Data) _eet_free_del(&Ctx->freelist_list, Data); @@ -2379,7 +2379,7 @@ _eet_freelist_list_free(Eet_Free_Context *context, edd->func.list_free(*((void **)(track))); } _eet_free_reset(&context->freelist_list); -} /* _eet_freelist_list_free */ +} #define _eet_freelist_str_add(Ctx, Data) _eet_free_add(&Ctx->freelist_str, Data); #define _eet_freelist_str_del(Ctx, Data) _eet_free_del(&Ctx->freelist_str, Data); @@ -2409,7 +2409,7 @@ _eet_freelist_str_free(Eet_Free_Context *context, free(track); } _eet_free_reset(&context->freelist_str); -} /* _eet_freelist_str_free */ +} #define _eet_freelist_direct_str_add(Ctx, Data) _eet_free_add(&Ctx->freelist_direct_str, Data); #define _eet_freelist_direct_str_del(Ctx, Data) _eet_free_del(&Ctx->freelist_direct_str, Data); @@ -2439,7 +2439,7 @@ _eet_freelist_direct_str_free(Eet_Free_Context *context, free(track); } _eet_free_reset(&context->freelist_direct_str); -} /* _eet_freelist_direct_str_free */ +} #define _eet_freelist_hash_add(Ctx, Data) _eet_free_add(&Ctx->freelist_hash, Data); #define _eet_freelist_hash_del(Ctx, Data) _eet_free_del(&Ctx->freelist_hash, Data); @@ -2469,7 +2469,7 @@ _eet_freelist_hash_free(Eet_Free_Context *context, free(track); } _eet_free_reset(&context->freelist_hash); -} /* _eet_freelist_hash_free */ +} static void _eet_freelist_all_ref(Eet_Free_Context *freelist_context) @@ -2479,7 +2479,7 @@ _eet_freelist_all_ref(Eet_Free_Context *freelist_context) _eet_freelist_list_ref(freelist_context); _eet_freelist_hash_ref(freelist_context); _eet_freelist_direct_str_ref(freelist_context); -} /* _eet_freelist_all_ref */ +} static void _eet_freelist_all_unref(Eet_Free_Context *freelist_context) @@ -2489,7 +2489,7 @@ _eet_freelist_all_unref(Eet_Free_Context *freelist_context) _eet_freelist_list_unref(freelist_context); _eet_freelist_hash_unref(freelist_context); _eet_freelist_direct_str_unref(freelist_context); -} /* _eet_freelist_all_unref */ +} static int eet_data_descriptor_encode_hash_cb(void *hash __UNUSED__, @@ -2556,7 +2556,7 @@ eet_data_descriptor_encode_hash_cb(void *hash __UNUSED__, } return 1; -} /* eet_data_descriptor_encode_hash_cb */ +} static char * _eet_data_dump_token_get(const char *src, @@ -2639,7 +2639,7 @@ _eet_data_dump_token_get(const char *src, free(tok); return NULL; -} /* _eet_data_dump_token_get */ +} static void eet_data_encode(Eet_Dictionary *ed, @@ -2663,7 +2663,7 @@ eet_data_encode(Eet_Dictionary *ed, eet_data_chunk_put(ed, echnk, ds); eet_data_chunk_free(echnk); free(data); -} /* eet_data_encode */ +} static void * _eet_data_dump_encode(int parent_type, @@ -2976,7 +2976,7 @@ case Eet_Type: \ eet_data_chunk_free(chnk); return cdata; -} /* _eet_data_dump_encode */ +} static void * _eet_data_dump_parse(Eet_Dictionary *ed, @@ -3238,7 +3238,7 @@ _eet_data_dump_parse(Eet_Dictionary *ed, } return cdata; -} /* _eet_data_dump_parse */ +} #define NEXT_CHUNK(P, Size, Echnk, Ed) \ { \ @@ -3352,7 +3352,7 @@ _eet_data_descriptor_decode(Eet_Free_Context *context, case EET_G_VARIANT: default: goto error; - } /* switch */ + } } while (size > 0) @@ -3477,7 +3477,7 @@ error: /* FIXME: Warn that something goes wrong here. */ return NULL; -} /* _eet_data_descriptor_decode */ +} static int eet_data_get_list(Eet_Free_Context *context, @@ -3544,7 +3544,7 @@ eet_data_get_list(Eet_Free_Context *context, on_error: return 0; -} /* eet_data_get_list */ +} static int eet_data_get_hash(Eet_Free_Context *context, @@ -3629,7 +3629,7 @@ eet_data_get_hash(Eet_Free_Context *context, on_error: return 0; -} /* eet_data_get_hash */ +} /* var arrays and fixed arrays have to * get all chunks at once. for fixed arrays @@ -3793,7 +3793,7 @@ on_error: eet_node_del(tmp); return 0; -} /* eet_data_get_array */ +} static void eet_data_put_union(Eet_Dictionary *ed, @@ -3849,7 +3849,7 @@ eet_data_put_union(Eet_Dictionary *ed, break; } -} /* eet_data_put_union */ +} static int eet_data_get_union(Eet_Free_Context *context, @@ -3947,7 +3947,7 @@ eet_data_get_union(Eet_Free_Context *context, on_error: return 0; -} /* eet_data_get_union */ +} static void eet_data_put_variant(Eet_Dictionary *ed, @@ -4058,7 +4058,7 @@ eet_data_put_variant(Eet_Dictionary *ed, break; } -} /* eet_data_put_variant */ +} static int eet_data_get_variant(Eet_Free_Context *context, @@ -4213,7 +4213,7 @@ eet_data_get_variant(Eet_Free_Context *context, on_error: return 0; -} /* eet_data_get_variant */ +} static Eet_Node * eet_data_node_simple_type(int type, @@ -4249,8 +4249,8 @@ case Eet_Type: \ default: ERR("Unknow type passed to eet_data_node_simple_type"); return NULL; - } /* switch */ -} /* eet_data_node_simple_type */ + } +} static int eet_data_get_unknown(Eet_Free_Context *context, @@ -4366,7 +4366,7 @@ eet_data_get_unknown(Eet_Free_Context *context, } return 1; -} /* eet_data_get_unknown */ +} static void eet_data_put_array(Eet_Dictionary *ed, @@ -4442,7 +4442,7 @@ eet_data_put_array(Eet_Dictionary *ed, offset += subsize; } -} /* eet_data_put_array */ +} static void eet_data_put_unknown(Eet_Dictionary *ed, @@ -4471,7 +4471,7 @@ eet_data_put_unknown(Eet_Dictionary *ed, size, ede->type, ede->group_type); -} /* eet_data_put_unknown */ +} static void eet_data_put_list(Eet_Dictionary *ed, @@ -4512,7 +4512,7 @@ eet_data_put_list(Eet_Dictionary *ed, ede->group_type); } } -} /* eet_data_put_list */ +} static void eet_data_put_hash(Eet_Dictionary *ed, @@ -4529,7 +4529,7 @@ eet_data_put_hash(Eet_Dictionary *ed, fdata.ede = ede; fdata.ed = ed; edd->func.hash_foreach(l, eet_data_descriptor_encode_hash_cb, &fdata); -} /* eet_data_put_hash */ +} EAPI int eet_data_dump_cipher(Eet_File *ef, @@ -4570,7 +4570,7 @@ eet_data_dump_cipher(Eet_File *ef, free((void *)data); return result ? 1 : 0; -} /* eet_data_dump_cipher */ +} EAPI int eet_data_dump(Eet_File *ef, @@ -4579,7 +4579,7 @@ eet_data_dump(Eet_File *ef, void *dumpdata) { return eet_data_dump_cipher(ef, name, NULL, dumpfunc, dumpdata); -} /* eet_data_dump */ +} EAPI int eet_data_text_dump_cipher(const void *data_in, @@ -4624,7 +4624,7 @@ eet_data_text_dump_cipher(const void *data_in, free(ret); return result ? 1 : 0; -} /* eet_data_text_dump_cipher */ +} EAPI int eet_data_text_dump(const void *data_in, @@ -4633,7 +4633,7 @@ eet_data_text_dump(const void *data_in, void *dumpdata) { return eet_data_text_dump_cipher(data_in, NULL, size_in, dumpfunc, dumpdata); -} /* eet_data_text_dump */ +} EAPI void * eet_data_text_undump_cipher(const char *text, @@ -4666,7 +4666,7 @@ eet_data_text_undump_cipher(const char *text, } return ret; -} /* eet_data_text_undump_cipher */ +} EAPI void * eet_data_text_undump(const char *text, @@ -4674,7 +4674,7 @@ eet_data_text_undump(const char *text, int *size_ret) { return eet_data_text_undump_cipher(text, NULL, textlen, size_ret); -} /* eet_data_text_undump */ +} EAPI int eet_data_undump_cipher(Eet_File *ef, @@ -4698,7 +4698,7 @@ eet_data_undump_cipher(Eet_File *ef, val = eet_write_cipher(ef, name, data_enc, size, compress, cipher_key); free(data_enc); return val; -} /* eet_data_undump_cipher */ +} EAPI int eet_data_undump(Eet_File *ef, @@ -4708,7 +4708,7 @@ eet_data_undump(Eet_File *ef, int compress) { return eet_data_undump_cipher(ef, name, NULL, text, textlen, compress); -} /* eet_data_undump */ +} EAPI void * eet_data_descriptor_decode_cipher(Eet_Data_Descriptor *edd, @@ -4744,7 +4744,7 @@ eet_data_descriptor_decode_cipher(Eet_Data_Descriptor *edd, free(deciphered); return ret; -} /* eet_data_descriptor_decode_cipher */ +} EAPI void * eet_data_descriptor_decode(Eet_Data_Descriptor *edd, @@ -4752,7 +4752,7 @@ eet_data_descriptor_decode(Eet_Data_Descriptor *edd, int size_in) { return eet_data_descriptor_decode_cipher(edd, data_in, NULL, size_in); -} /* eet_data_descriptor_decode */ +} EAPI Eet_Node * eet_data_node_decode_cipher(const void *data_in, @@ -4787,7 +4787,7 @@ eet_data_node_decode_cipher(const void *data_in, free(deciphered); return ret; -} /* eet_data_node_decode_cipher */ +} static void * _eet_data_descriptor_encode(Eet_Dictionary *ed, @@ -4849,7 +4849,7 @@ _eet_data_descriptor_encode(Eet_Dictionary *ed, eet_data_chunk_free(chnk); return cdata; -} /* _eet_data_descriptor_encode */ +} EAPI int eet_data_node_write_cipher(Eet_File *ef, @@ -4872,7 +4872,7 @@ eet_data_node_write_cipher(Eet_File *ef, val = eet_write_cipher(ef, name, data_enc, size, compress, cipher_key); free(data_enc); return val; -} /* eet_data_node_write_cipher */ +} EAPI void * eet_data_node_encode_cipher(Eet_Node *node, @@ -4909,7 +4909,7 @@ eet_data_node_encode_cipher(Eet_Node *node, *size_ret = size; return ret; -} /* eet_data_node_encode_cipher */ +} EAPI void * eet_data_descriptor_encode_cipher(Eet_Data_Descriptor *edd, @@ -4947,7 +4947,7 @@ eet_data_descriptor_encode_cipher(Eet_Data_Descriptor *edd, *size_ret = size; return ret; -} /* eet_data_descriptor_encode_cipher */ +} EAPI void * eet_data_descriptor_encode(Eet_Data_Descriptor *edd, @@ -4955,7 +4955,7 @@ eet_data_descriptor_encode(Eet_Data_Descriptor *edd, int *size_ret) { return eet_data_descriptor_encode_cipher(edd, data_in, NULL, size_ret); -} /* eet_data_descriptor_encode */ +} EAPI void * eet_data_xattr_cipher_get(const char *filename, diff --git a/legacy/eet/src/lib/eet_dictionary.c b/legacy/eet/src/lib/eet_dictionary.c index 60d0ec1808..3f35066266 100644 --- a/legacy/eet/src/lib/eet_dictionary.c +++ b/legacy/eet/src/lib/eet_dictionary.c @@ -23,7 +23,7 @@ eet_dictionary_add(void) memset(new->hash, -1, sizeof (int) * 256); return new; -} /* eet_dictionary_add */ +} void eet_dictionary_free(Eet_Dictionary *ed) @@ -43,7 +43,7 @@ eet_dictionary_free(Eet_Dictionary *ed) free(ed); } -} /* eet_dictionary_free */ +} static int _eet_dictionary_lookup(Eet_Dictionary *ed, @@ -77,7 +77,7 @@ _eet_dictionary_lookup(Eet_Dictionary *ed, return prev; return current; -} /* _eet_dictionary_lookup */ +} int eet_dictionary_string_add(Eet_Dictionary *ed, @@ -152,7 +152,7 @@ eet_dictionary_string_add(Eet_Dictionary *ed, } return ed->count++; -} /* eet_dictionary_string_add */ +} int eet_dictionary_string_get_size(const Eet_Dictionary *ed, @@ -168,7 +168,7 @@ eet_dictionary_string_get_size(const Eet_Dictionary *ed, return ed->all[idx].len; return 0; -} /* eet_dictionary_string_get_size */ +} int eet_dictionary_string_get_hash(const Eet_Dictionary *ed, @@ -184,7 +184,7 @@ eet_dictionary_string_get_hash(const Eet_Dictionary *ed, return ed->all[idx].hash; return -1; -} /* eet_dictionary_string_get_hash */ +} const char * eet_dictionary_string_get_char(const Eet_Dictionary *ed, @@ -210,7 +210,7 @@ eet_dictionary_string_get_char(const Eet_Dictionary *ed, } return NULL; -} /* eet_dictionary_string_get_char */ +} static inline Eina_Bool _eet_dictionary_string_get_me_cache(const char *s, @@ -227,7 +227,7 @@ _eet_dictionary_string_get_me_cache(const char *s, } return EINA_FALSE; -} /* _eet_dictionary_string_get_me_cache */ +} static inline Eina_Bool _eet_dictionary_string_get_float_cache(const char *s, @@ -248,7 +248,7 @@ _eet_dictionary_string_get_float_cache(const char *s, } return EINA_FALSE; -} /* _eet_dictionary_string_get_float_cache */ +} static inline Eina_Bool _eet_dictionary_string_get_double_cache(const char *s, @@ -269,7 +269,7 @@ _eet_dictionary_string_get_double_cache(const char *s, } return EINA_FALSE; -} /* _eet_dictionary_string_get_double_cache */ +} static inline Eina_Bool _eet_dictionary_test(const Eet_Dictionary *ed, @@ -289,7 +289,7 @@ _eet_dictionary_test(const Eet_Dictionary *ed, return EINA_FALSE; return EINA_TRUE; -} /* _eet_dictionary_test */ +} static Eet_Convert * eet_dictionary_convert_get(const Eet_Dictionary *ed, @@ -351,7 +351,7 @@ eet_dictionary_string_get_float(const Eet_Dictionary *ed, *result = convert->f; return EINA_TRUE; -} /* eet_dictionary_string_get_float */ +} Eina_Bool eet_dictionary_string_get_double(const Eet_Dictionary *ed, @@ -387,7 +387,7 @@ eet_dictionary_string_get_double(const Eet_Dictionary *ed, *result = convert->d; return EINA_TRUE; -} /* eet_dictionary_string_get_double */ +} Eina_Bool eet_dictionary_string_get_fp(const Eet_Dictionary *ed, @@ -416,7 +416,7 @@ eet_dictionary_string_get_fp(const Eet_Dictionary *ed, *result = convert->fp; return EINA_TRUE; -} /* eet_dictionary_string_get_fp */ +} EAPI int eet_dictionary_string_check(Eet_Dictionary *ed, @@ -435,5 +435,5 @@ eet_dictionary_string_check(Eet_Dictionary *ed, return 1; return 0; -} /* eet_dictionary_string_check */ +} diff --git a/legacy/eet/src/lib/eet_image.c b/legacy/eet/src/lib/eet_image.c index 79f6f906d4..8c6c03ce4a 100644 --- a/legacy/eet/src/lib/eet_image.c +++ b/legacy/eet/src/lib/eet_image.c @@ -66,7 +66,7 @@ _eet_jpeg_membuf_src_init(j_decompress_ptr cinfo) { /* FIXME: Use attribute unused */ (void)cinfo; -} /* _eet_jpeg_membuf_src_init */ +} static boolean _eet_jpeg_membuf_src_fill(j_decompress_ptr cinfo) @@ -78,7 +78,7 @@ _eet_jpeg_membuf_src_fill(j_decompress_ptr cinfo) src->pub.next_input_byte = jpeg_eoi; return TRUE; -} /* _eet_jpeg_membuf_src_fill */ +} static void _eet_jpeg_membuf_src_skip(j_decompress_ptr cinfo, @@ -88,7 +88,7 @@ _eet_jpeg_membuf_src_skip(j_decompress_ptr cinfo, src->pub.bytes_in_buffer -= num_bytes; src->pub.next_input_byte += num_bytes; -} /* _eet_jpeg_membuf_src_skip */ +} static void _eet_jpeg_membuf_src_term(j_decompress_ptr cinfo) @@ -97,7 +97,7 @@ _eet_jpeg_membuf_src_term(j_decompress_ptr cinfo) free(src); cinfo->src = NULL; -} /* _eet_jpeg_membuf_src_term */ +} static int eet_jpeg_membuf_src(j_decompress_ptr cinfo, @@ -124,7 +124,7 @@ eet_jpeg_membuf_src(j_decompress_ptr cinfo, src->pub.next_input_byte = src->buf; return 0; -} /* eet_jpeg_membuf_src */ +} struct jpeg_membuf_dst { @@ -144,7 +144,7 @@ _eet_jpeg_membuf_dst_init(j_compress_ptr cinfo) { /* FIXME: Use eina attribute */ (void)cinfo; -} /* _eet_jpeg_membuf_dst_init */ +} static boolean _eet_jpeg_membuf_dst_flush(j_compress_ptr cinfo) @@ -168,7 +168,7 @@ _eet_jpeg_membuf_dst_flush(j_compress_ptr cinfo) dst->len *= 2; return FALSE; -} /* _eet_jpeg_membuf_dst_flush */ +} static void _eet_jpeg_membuf_dst_term(j_compress_ptr cinfo) @@ -189,7 +189,7 @@ _eet_jpeg_membuf_dst_term(j_compress_ptr cinfo) free(dst); cinfo->dest = NULL; -} /* _eet_jpeg_membuf_dst_term */ +} static int eet_jpeg_membuf_dst(j_compress_ptr cinfo, @@ -223,7 +223,7 @@ eet_jpeg_membuf_dst(j_compress_ptr cinfo, dst->failed = 0; return 0; -} /* eet_jpeg_membuf_dst */ +} /*---*/ @@ -336,7 +336,7 @@ _JPEGFatalErrorHandler(j_common_ptr cinfo) /* cinfo->err->output_message(cinfo);*/ longjmp(errmgr->setjmp_buffer, 1); return; -} /* _JPEGFatalErrorHandler */ +} static void _JPEGErrorHandler(j_common_ptr cinfo __UNUSED__) @@ -347,7 +347,7 @@ _JPEGErrorHandler(j_common_ptr cinfo __UNUSED__) /* cinfo->err->output_message(cinfo);*/ /* longjmp(errmgr->setjmp_buffer, 1);*/ return; -} /* _JPEGErrorHandler */ +} static void _JPEGErrorHandler2(j_common_ptr cinfo __UNUSED__, @@ -359,7 +359,7 @@ _JPEGErrorHandler2(j_common_ptr cinfo __UNUSED__, /* cinfo->err->output_message(cinfo);*/ /* longjmp(errmgr->setjmp_buffer, 1);*/ return; -} /* _JPEGErrorHandler2 */ +} static int eet_data_image_jpeg_header_decode(const void *data, @@ -405,7 +405,7 @@ eet_data_image_jpeg_header_decode(const void *data, return 0; return 1; -} /* eet_data_image_jpeg_header_decode */ +} static int eet_data_image_jpeg_rgb_decode(const void *data, @@ -558,7 +558,7 @@ eet_data_image_jpeg_rgb_decode(const void *data, jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); return 1; -} /* eet_data_image_jpeg_rgb_decode */ +} static void * eet_data_image_jpeg_alpha_decode(const void *data, @@ -667,7 +667,7 @@ eet_data_image_jpeg_alpha_decode(const void *data, jpeg_finish_decompress(&cinfo); jpeg_destroy_decompress(&cinfo); return d; -} /* eet_data_image_jpeg_alpha_decode */ +} static void * eet_data_image_lossless_convert(int *size, @@ -715,7 +715,7 @@ eet_data_image_lossless_convert(int *size, *size = ((w * h * 4) + (8 * 4)); return d; } -} /* eet_data_image_lossless_convert */ +} static void * eet_data_image_lossless_compressed_convert(int *size, @@ -789,7 +789,7 @@ eet_data_image_lossless_compressed_convert(int *size, free(comp); return d; } -} /* eet_data_image_lossless_compressed_convert */ +} static void * eet_data_image_jpeg_convert(int *size, @@ -872,7 +872,7 @@ eet_data_image_jpeg_convert(int *size, *size = sz; return d; -} /* eet_data_image_jpeg_convert */ +} static void * eet_data_image_jpeg_alpha_convert(int *size, @@ -1063,7 +1063,7 @@ eet_data_image_jpeg_alpha_convert(int *size, free(d2); *size = 12 + sz1 + sz2; return d; -} /* eet_data_image_jpeg_alpha_convert */ +} EAPI int eet_data_image_write_cipher(Eet_File *ef, @@ -1091,7 +1091,7 @@ eet_data_image_write_cipher(Eet_File *ef, } return 0; -} /* eet_data_image_write_cipher */ +} EAPI int eet_data_image_write(Eet_File *ef, @@ -1114,7 +1114,7 @@ eet_data_image_write(Eet_File *ef, comp, quality, lossy); -} /* eet_data_image_write */ +} EAPI void * eet_data_image_read_cipher(Eet_File *ef, @@ -1149,7 +1149,7 @@ eet_data_image_read_cipher(Eet_File *ef, free(data); return d; -} /* eet_data_image_read_cipher */ +} EAPI void * eet_data_image_read(Eet_File *ef, @@ -1163,7 +1163,7 @@ eet_data_image_read(Eet_File *ef, { return eet_data_image_read_cipher(ef, name, NULL, w, h, alpha, comp, quality, lossy); -} /* eet_data_image_read */ +} EAPI int eet_data_image_read_to_surface_cipher(Eet_File *ef, @@ -1204,7 +1204,7 @@ eet_data_image_read_to_surface_cipher(Eet_File *ef, free(data); return res; -} /* eet_data_image_read_to_surface_cipher */ +} EAPI int eet_data_image_read_to_surface(Eet_File *ef, @@ -1225,7 +1225,7 @@ eet_data_image_read_to_surface(Eet_File *ef, w, h, row_stride, alpha, comp, quality, lossy); -} /* eet_data_image_read_to_surface */ +} EAPI int eet_data_image_header_read_cipher(Eet_File *ef, @@ -1260,7 +1260,7 @@ eet_data_image_header_read_cipher(Eet_File *ef, free(data); return d; -} /* eet_data_image_header_read_cipher */ +} EAPI int eet_data_image_header_read(Eet_File *ef, @@ -1275,7 +1275,7 @@ eet_data_image_header_read(Eet_File *ef, return eet_data_image_header_read_cipher(ef, name, NULL, w, h, alpha, comp, quality, lossy); -} /* eet_data_image_header_read */ +} EAPI void * eet_data_image_encode_cipher(const void *data, @@ -1333,7 +1333,7 @@ eet_data_image_encode_cipher(const void *data, *size_ret = size; return d; -} /* eet_data_image_encode_cipher */ +} EAPI void * eet_data_image_encode(const void *data, @@ -1347,7 +1347,7 @@ eet_data_image_encode(const void *data, { return eet_data_image_encode_cipher(data, NULL, w, h, alpha, comp, quality, lossy, size_ret); -} /* eet_data_image_encode */ +} EAPI int eet_data_image_header_decode_cipher(const void *data, @@ -1499,7 +1499,7 @@ eet_data_image_header_decode_cipher(const void *data, } return 0; -} /* eet_data_image_header_decode_cipher */ +} EAPI int eet_data_image_header_decode(const void *data, @@ -1520,7 +1520,7 @@ eet_data_image_header_decode(const void *data, comp, quality, lossy); -} /* eet_data_image_header_decode */ +} static void _eet_data_image_copy_buffer(const unsigned int *src, @@ -1544,7 +1544,7 @@ _eet_data_image_copy_buffer(const unsigned int *src, for (y = 0; y < h; ++y, src += src_w, over += row_stride) memcpy(over, src, w * 4); } -} /* _eet_data_image_copy_buffer */ +} static int _eet_data_image_decode_inside(const void *data, @@ -1647,7 +1647,7 @@ _eet_data_image_decode_inside(const void *data, abort(); return 1; -} /* _eet_data_image_decode_inside */ +} EAPI void * eet_data_image_decode_cipher(const void *data, @@ -1714,7 +1714,7 @@ eet_data_image_decode_cipher(const void *data, *lossy = ilossy; return d; -} /* eet_data_image_decode_cipher */ +} EAPI void * eet_data_image_decode(const void *data, @@ -1728,7 +1728,7 @@ eet_data_image_decode(const void *data, { return eet_data_image_decode_cipher(data, NULL, size, w, h, alpha, comp, quality, lossy); -} /* eet_data_image_decode */ +} EAPI int eet_data_image_decode_to_surface_cipher(const void *data, @@ -1795,7 +1795,7 @@ eet_data_image_decode_to_surface_cipher(const void *data, *lossy = ilossy; return 1; -} /* eet_data_image_decode_to_surface_cipher */ +} EAPI int eet_data_image_decode_to_surface(const void *data, @@ -1816,5 +1816,5 @@ eet_data_image_decode_to_surface(const void *data, w, h, row_stride, alpha, comp, quality, lossy); -} /* eet_data_image_decode_to_surface */ +} diff --git a/legacy/eet/src/lib/eet_lib.c b/legacy/eet/src/lib/eet_lib.c index 81c2f3659b..089f9d3ccc 100644 --- a/legacy/eet/src/lib/eet_lib.c +++ b/legacy/eet/src/lib/eet_lib.c @@ -280,7 +280,7 @@ eet_check_pointer(const Eet_File *ef) return 1; return 0; -} /* eet_check_pointer */ +} static inline int eet_check_header(const Eet_File *ef) @@ -292,7 +292,7 @@ eet_check_header(const Eet_File *ef) return 1; return 0; -} /* eet_check_header */ +} static inline int eet_test_close(int test, @@ -305,7 +305,7 @@ eet_test_close(int test, } return test; -} /* eet_test_close */ +} /* find an eet file in the currently in use cache */ static Eet_File * @@ -326,7 +326,7 @@ eet_cache_find(const char *path, /* not found */ return NULL; -} /* eet_cache_find */ +} /* add to end of cache */ /* this should only be called when the cache lock is already held */ @@ -382,7 +382,7 @@ eet_cache_add(Eet_File *ef, *cache = new_cache; *cache_num = new_cache_num; *cache_alloc = new_cache_alloc; -} /* eet_cache_add */ +} /* delete from cache */ /* this should only be called when the cache lock is already held */ @@ -437,7 +437,7 @@ eet_cache_del(Eet_File *ef, *cache = new_cache; *cache_num = new_cache_num; *cache_alloc = new_cache_alloc; -} /* eet_cache_del */ +} /* internal string match. null friendly, catches same ptr */ static int @@ -452,7 +452,7 @@ eet_string_match(const char *s1, return 1; return !strcmp(s1, s2); -} /* eet_string_match */ +} /* flush out writes to a v2 eet file */ static Eet_Error @@ -665,13 +665,13 @@ write_error: case EPIPE: error = EET_ERROR_WRITE_ERROR_FILE_CLOSED; break; default: error = EET_ERROR_WRITE_ERROR; break; - } /* switch */ + } } sign_error: fclose(fp); return error; -} /* eet_flush2 */ +} EAPI int eet_init(void) @@ -747,7 +747,7 @@ unregister_log_domain: shutdown_eina: eina_shutdown(); return --eet_init_count; -} /* eet_init */ +} EAPI int eet_shutdown(void) @@ -772,7 +772,7 @@ eet_shutdown(void) eina_shutdown(); return eet_init_count; -} /* eet_shutdown */ +} EAPI Eet_Error eet_sync(Eet_File *ef) @@ -795,7 +795,7 @@ eet_sync(Eet_File *ef) UNLOCK_FILE(ef); return ret; -} /* eet_sync */ +} EAPI void eet_clearcache(void) @@ -853,7 +853,7 @@ eet_clearcache(void) } UNLOCK_CACHE; -} /* eet_clearcache */ +} /* FIXME: MMAP race condition in READ_WRITE_MODE */ static Eet_File * @@ -1112,7 +1112,7 @@ eet_internal_read2(Eet_File *ef) } return ef; -} /* eet_internal_read2 */ +} #if EET_OLD_EET_FILE_FORMAT static Eet_File * @@ -1294,7 +1294,7 @@ eet_internal_read1(Eet_File *ef) p += HEADER_SIZE + name_size; } return ef; -} /* eet_internal_read1 */ +} #endif /* if EET_OLD_EET_FILE_FORMAT */ @@ -1329,10 +1329,10 @@ eet_internal_read(Eet_File *ef) ef->delete_me_now = 1; eet_internal_close(ef, EINA_TRUE); break; - } /* switch */ + } return NULL; -} /* eet_internal_read */ +} static Eet_Error eet_internal_close(Eet_File *ef, @@ -1443,7 +1443,7 @@ on_error: UNLOCK_CACHE; return EET_ERROR_NONE; -} /* eet_internal_close */ +} EAPI Eet_File * eet_memopen_read(const void *data, @@ -1478,7 +1478,7 @@ eet_memopen_read(const void *data, ef = eet_internal_read(ef); UNLOCK_CACHE; return ef; -} /* eet_memopen_read */ +} EAPI const char * eet_file_get(Eet_File *ef) @@ -1648,7 +1648,7 @@ empty_file: on_error: UNLOCK_CACHE; return NULL; -} /* eet_open */ +} EAPI Eet_File_Mode eet_mode_get(Eet_File *ef) @@ -1658,7 +1658,7 @@ eet_mode_get(Eet_File *ef) return EET_FILE_MODE_INVALID; else return ef->mode; -} /* eet_mode_get */ +} EAPI const void * eet_identity_x509(Eet_File *ef, @@ -1671,7 +1671,7 @@ eet_identity_x509(Eet_File *ef, *der_length = ef->x509_length; return ef->x509_der; -} /* eet_identity_x509 */ +} EAPI const void * eet_identity_signature(Eet_File *ef, @@ -1684,7 +1684,7 @@ eet_identity_signature(Eet_File *ef, *signature_length = ef->signature_length; return ef->signature; -} /* eet_identity_signature */ +} EAPI const void * eet_identity_sha1(Eet_File *ef, @@ -1699,7 +1699,7 @@ eet_identity_sha1(Eet_File *ef, *sha1_length = ef->sha1_length; return ef->sha1; -} /* eet_identity_sha1 */ +} EAPI Eet_Error eet_identity_set(Eet_File *ef, @@ -1719,13 +1719,13 @@ eet_identity_set(Eet_File *ef, ef->writes_pending = 1; return EET_ERROR_NONE; -} /* eet_identity_set */ +} EAPI Eet_Error eet_close(Eet_File *ef) { return eet_internal_close(ef, EINA_FALSE); -} /* eet_close */ +} EAPI void * eet_read_cipher(Eet_File *ef, @@ -1896,7 +1896,7 @@ on_error: UNLOCK_FILE(ef); free(data); return NULL; -} /* eet_read_cipher */ +} EAPI void * eet_read(Eet_File *ef, @@ -1904,7 +1904,7 @@ eet_read(Eet_File *ef, int *size_ret) { return eet_read_cipher(ef, name, size_ret, NULL); -} /* eet_read */ +} EAPI const void * eet_read_direct(Eet_File *ef, @@ -2002,7 +2002,7 @@ eet_read_direct(Eet_File *ef, on_error: UNLOCK_FILE(ef); return NULL; -} /* eet_read_direct */ +} EAPI const char * eet_alias_get(Eet_File *ef, @@ -2237,7 +2237,7 @@ eet_alias(Eet_File *ef, on_error: UNLOCK_FILE(ef); return EINA_FALSE; -} /* eet_alias */ +} EAPI int eet_write_cipher(Eet_File *ef, @@ -2420,7 +2420,7 @@ eet_write_cipher(Eet_File *ef, on_error: UNLOCK_FILE(ef); return 0; -} /* eet_write_cipher */ +} EAPI int eet_write(Eet_File *ef, @@ -2430,7 +2430,7 @@ eet_write(Eet_File *ef, int comp) { return eet_write_cipher(ef, name, data, size, comp, NULL); -} /* eet_write */ +} EAPI int eet_delete(Eet_File *ef, @@ -2492,7 +2492,7 @@ eet_delete(Eet_File *ef, /* update access time */ return exists_already; -} /* eet_delete */ +} EAPI Eet_Dictionary * eet_dictionary_get(Eet_File *ef) @@ -2501,7 +2501,7 @@ eet_dictionary_get(Eet_File *ef) return NULL; return ef->ed; -} /* eet_dictionary_get */ +} EAPI char ** eet_list(Eet_File *ef, @@ -2585,7 +2585,7 @@ on_error: *count_ret = 0; return NULL; -} /* eet_list */ +} EAPI int eet_num_entries(Eet_File *ef) @@ -2612,7 +2612,7 @@ eet_num_entries(Eet_File *ef) UNLOCK_FILE(ef); return ret; -} /* eet_num_entries */ +} static Eet_File_Node * find_node_by_name(Eet_File *ef, @@ -2631,7 +2631,7 @@ find_node_by_name(Eet_File *ef, } return NULL; -} /* find_node_by_name */ +} static int read_data_from_disk(Eet_File *ef, @@ -2651,5 +2651,5 @@ read_data_from_disk(Eet_File *ef, memcpy(buf, ef->data + efn->offset, len); return len; -} /* read_data_from_disk */ +} diff --git a/legacy/eet/src/lib/eet_node.c b/legacy/eet/src/lib/eet_node.c index d90ef83bda..86899c9211 100644 --- a/legacy/eet/src/lib/eet_node.c +++ b/legacy/eet/src/lib/eet_node.c @@ -27,13 +27,13 @@ eet_node_new(void) memset(result, 0, sizeof (Eet_Node)); return result; -} /* eet_node_new */ +} void eet_node_free(Eet_Node *node) { eina_mempool_free(_eet_node_mp, node); -} /* eet_node_free */ +} static Eet_Node * _eet_node_new(const char *name, @@ -49,7 +49,7 @@ _eet_node_new(const char *name, n->name = eina_stringshare_add(name); return n; -} /* _eet_node_new */ +} static void _eet_node_append(Eet_Node *n, @@ -63,7 +63,7 @@ _eet_node_append(Eet_Node *n, value->next = n->values; n->values = value; } -} /* _eet_node_append */ +} #define EET_NODE_NEW(Eet_type, Name, Value, Type) \ EAPI Eet_Node * \ @@ -133,7 +133,7 @@ eet_node_list_new(const char *name, _eet_node_append(n, nodes); return n; -} /* eet_node_list_new */ +} Eet_Node * eet_node_array_new(const char *name, @@ -151,7 +151,7 @@ eet_node_array_new(const char *name, _eet_node_append(n, nodes); return n; -} /* eet_node_array_new */ +} Eet_Node * eet_node_var_array_new(const char *name, @@ -168,7 +168,7 @@ eet_node_var_array_new(const char *name, _eet_node_append(n, nodes); return n; -} /* eet_node_var_array_new */ +} Eet_Node * eet_node_hash_new(const char *name, @@ -191,7 +191,7 @@ eet_node_hash_new(const char *name, _eet_node_append(n, nodes); return n; -} /* eet_node_hash_new */ +} Eet_Node * eet_node_struct_new(const char *name, @@ -206,7 +206,7 @@ eet_node_struct_new(const char *name, _eet_node_append(n, nodes); return n; -} /* eet_node_struct_new */ +} Eet_Node * eet_node_struct_child_new(const char *parent, @@ -226,7 +226,7 @@ eet_node_struct_child_new(const char *parent, _eet_node_append(n, eina_list_prepend(NULL, child)); return n; -} /* eet_node_struct_child_new */ +} Eet_Node * eet_node_children_get(Eet_Node *node) @@ -289,7 +289,7 @@ eet_node_list_append(Eet_Node *parent, parent->values = nn; eina_stringshare_del(tmp); -} /* eet_node_list_append */ +} void eet_node_struct_append(Eet_Node *parent, @@ -338,7 +338,7 @@ eet_node_struct_append(Eet_Node *parent, } eina_stringshare_del(tmp); -} /* eet_node_struct_append */ +} void eet_node_hash_add(Eet_Node *parent, @@ -356,7 +356,7 @@ eet_node_hash_add(Eet_Node *parent, /* And add it to the parent. */ nn->next = parent->values; parent->values = nn; -} /* eet_node_hash_add */ +} int eet_node_type_get(Eet_Node *node) @@ -420,11 +420,11 @@ eet_node_del(Eet_Node *n) case EET_T_USHORT: case EET_T_UINT: break; - } /* switch */ + } eina_stringshare_del(n->name); eet_node_free(n); -} /* eet_node_del */ +} static const char *eet_node_dump_g_name[6] = { "struct", @@ -458,7 +458,7 @@ eet_node_dump_level(int level, int i; for (i = 0; i < level; i++) dumpfunc(dumpdata, " "); -} /* eet_node_dump_level */ +} static char * eet_node_string_escape(const char *str) @@ -499,7 +499,7 @@ eet_node_string_escape(const char *str) } *sp = 0; return s; -} /* eet_node_string_escape */ +} static void eet_node_dump_string_escape(void *dumpdata, @@ -514,7 +514,7 @@ eet_node_dump_string_escape(void *dumpdata, dumpfunc(dumpdata, s); free(s); -} /* eet_node_dump_string_escape */ +} static void eet_node_dump_simple_type(Eet_Node *n, @@ -578,10 +578,10 @@ case Eet_Type: \ default: dumpfunc(dumpdata, "???: ???"); break; - } /* switch */ + } dumpfunc(dumpdata, ";\n"); -} /* eet_node_dump_simple_type */ +} static void eet_node_dump_group_start(int level, @@ -602,7 +602,7 @@ eet_node_dump_group_start(int level, dumpfunc(dumpdata, eet_node_dump_g_name[chnk_type - EET_G_UNKNOWN]); dumpfunc(dumpdata, " {\n"); -} /* eet_node_dump_group_start */ +} static void eet_node_dump_group_end(int level, @@ -611,7 +611,7 @@ eet_node_dump_group_end(int level, { eet_node_dump_level(level, dumpfunc, dumpdata); dumpfunc(dumpdata, "}\n"); -} /* eet_node_dump_group_end */ +} void eet_node_dump(Eet_Node *n, @@ -676,8 +676,8 @@ eet_node_dump(Eet_Node *n, case EET_T_ULONG_LONG: eet_node_dump_simple_type(n, dumplevel, dumpfunc, dumpdata); break; - } /* switch */ -} /* eet_node_dump */ + } +} void * eet_node_walk(void *parent, @@ -759,13 +759,13 @@ eet_node_walk(void *parent, case EET_T_ULONG_LONG: me = cb->simple(root->type, &root->data, user_data); break; - } /* switch */ + } if (parent) cb->struct_add(parent, name, me, user_data); return me; -} /* eet_node_walk */ +} int eet_node_init(void) @@ -786,12 +786,12 @@ eet_node_init(void) eina_mempool_add(choice, "eet-node-alloc", NULL, sizeof(Eet_Node), 1024); return _eet_node_mp ? 1 : 0; -} /* eet_node_init */ +} void eet_node_shutdown(void) { eina_mempool_del(_eet_node_mp); _eet_node_mp = NULL; -} /* eet_node_shutdown */ +} diff --git a/legacy/eet/src/lib/eet_utils.c b/legacy/eet/src/lib/eet_utils.c index 8e591a2833..b04ad1b525 100644 --- a/legacy/eet/src/lib/eet_utils.c +++ b/legacy/eet/src/lib/eet_utils.c @@ -32,5 +32,5 @@ _eet_hash_gen(const char *key, hash_num &= mask; /* return it */ return hash_num; -} /* _eet_hash_gen */ +}