Keep the data types usage in libsframe look consistent.
bfd/
* elf-sframe.c (_bfd_elf_merge_section_sframe): Use uint32_t
type alias.
* libsframe/sframe.c (sframe_decoder_get_funcdesc_at_index):
Likewise.
(sframe_decoder_get_num_fidx): Likewise.
(sframe_encoder_get_num_fidx): Likewise.
include/
* sframe-api.h (sframe_decoder_get_num_fidx): Likewise.
(sframe_encoder_get_num_fidx): Likewise.
/* Iterate over the function descriptor entries and the FREs of the
function from the decoder context. Add each of them to the encoder
context, if suitable. */
- unsigned int i = 0, j = 0, cur_fidx = 0;
+ uint32_t i = 0, j = 0, cur_fidx = 0;
- unsigned int num_fidx = sframe_decoder_get_num_fidx (sfd_ctx);
- unsigned int num_enc_fidx = sframe_encoder_get_num_fidx (sfe_ctx);
+ uint32_t num_fidx = sframe_decoder_get_num_fidx (sfd_ctx);
+ uint32_t num_enc_fidx = sframe_encoder_get_num_fidx (sfe_ctx);
for (i = 0; i < num_fidx; i++)
{
/* Return the number of function descriptor entries in the SFrame decoder
DCTX. */
-extern unsigned int
+extern uint32_t
sframe_decoder_get_num_fidx (sframe_decoder_ctx *dctx);
/* Get the fixed FP offset from the decoder context DCTX. */
/* Return the number of function descriptor entries in the SFrame encoder
ENCODER. */
-extern unsigned int
+extern uint32_t
sframe_encoder_get_num_fidx (sframe_encoder_ctx *encoder);
/* Add an FRE to function at FUNC_IDX'th function descriptor index entry in
uint32_t func_idx)
{
sframe_func_desc_entry *fdep;
- unsigned int num_fdes;
+ uint32_t num_fdes;
int err;
num_fdes = sframe_decoder_get_num_fidx (ctx);
/* Return the number of function descriptor entries in the SFrame decoder
DCTX. */
-unsigned int
+uint32_t
sframe_decoder_get_num_fidx (sframe_decoder_ctx *ctx)
{
- unsigned int num_fdes = 0;
+ uint32_t num_fdes = 0;
sframe_header *dhp = NULL;
dhp = sframe_decoder_get_header (ctx);
if (dhp)
/* Return the number of function descriptor entries in the SFrame encoder
ENCODER. */
-unsigned int
+uint32_t
sframe_encoder_get_num_fidx (sframe_encoder_ctx *encoder)
{
- unsigned int num_fdes = 0;
+ uint32_t num_fdes = 0;
sframe_header *ehp = NULL;
ehp = sframe_encoder_get_header (encoder);
if (ehp)