Permalink
Browse files

Remove usage of inline so libBERT compiles with clang 1.0.

  • Loading branch information...
1 parent 56df1af commit a9769f9450f8da71ccb6892bce6751b7313af880 @postmodern committed Mar 2, 2010
Showing with 21 additions and 21 deletions.
  1. +10 −10 src/private/decode.c
  2. +11 −11 src/private/decode.h
View
@@ -70,7 +70,7 @@ int bert_decode_bytes(unsigned char *dest,bert_decoder_t *decoder,size_t length)
return BERT_SUCCESS;
}
-inline int bert_decode_nil(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_nil(bert_decoder_t *decoder,bert_data_t **data)
{
bert_data_t *new_data;
@@ -83,7 +83,7 @@ inline int bert_decode_nil(bert_decoder_t *decoder,bert_data_t **data)
return BERT_SUCCESS;
}
-inline int bert_decode_small_int(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_small_int(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
uint8_t i;
@@ -104,7 +104,7 @@ inline int bert_decode_small_int(bert_decoder_t *decoder,bert_data_t **data)
return BERT_SUCCESS;
}
-inline int bert_decode_big_int(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_big_int(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
uint32_t i;
@@ -125,7 +125,7 @@ inline int bert_decode_big_int(bert_decoder_t *decoder,bert_data_t **data)
return BERT_SUCCESS;
}
-inline int bert_decode_float(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_float(bert_decoder_t *decoder,bert_data_t **data)
{
char float_buffer[32];
int result;
@@ -203,7 +203,7 @@ int bert_decode_bignum(bert_decoder_t *decoder,bert_data_t **data,size_t size)
return BERT_SUCCESS;
}
-inline int bert_decode_small_bignum(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_small_bignum(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
uint8_t i;
@@ -216,7 +216,7 @@ inline int bert_decode_small_bignum(bert_decoder_t *decoder,bert_data_t **data)
return bert_decode_bignum(decoder,data,i);
}
-inline int bert_decode_big_bignum(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_big_bignum(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
uint32_t i;
@@ -229,7 +229,7 @@ inline int bert_decode_big_bignum(bert_decoder_t *decoder,bert_data_t **data)
return bert_decode_bignum(decoder,data,i);
}
-inline int bert_decode_string(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_string(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
bert_string_size_t size;
@@ -621,7 +621,7 @@ int bert_decode_atom(bert_decoder_t *decoder,bert_data_t **data)
return BERT_SUCCESS;
}
-inline int bert_decode_bin(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_bin(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
bert_bin_size_t size;
@@ -698,7 +698,7 @@ int bert_decode_tuple(bert_decoder_t *decoder,bert_data_t **data,size_t size)
return BERT_SUCCESS;
}
-inline int bert_decode_small_tuple(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_small_tuple(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
uint8_t size;
@@ -711,7 +711,7 @@ inline int bert_decode_small_tuple(bert_decoder_t *decoder,bert_data_t **data)
return bert_decode_tuple(decoder,data,size);
}
-inline int bert_decode_large_tuple(bert_decoder_t *decoder,bert_data_t **data)
+int bert_decode_large_tuple(bert_decoder_t *decoder,bert_data_t **data)
{
int result;
uint32_t size;
View
@@ -9,22 +9,22 @@ int bert_decode_uint32(bert_decoder_t *decoder,uint32_t *i);
int bert_decode_magic(bert_decoder_t *decoder,bert_magic_t *magic);
int bert_decode_bytes(unsigned char *dest,bert_decoder_t *decoder,size_t length);
-inline int bert_decode_nil(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_small_int(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_big_int(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_float(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_nil(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_small_int(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_big_int(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_float(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_bignum(bert_decoder_t *decoder,bert_data_t **data,size_t size);
-inline int bert_decode_small_bignum(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_big_bignum(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_string(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_small_bignum(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_big_bignum(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_string(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_time(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_dict(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_complex(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_atom(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_bin(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_tuple(bert_decoder_t *decoder,bert_data_t **data,size_t size);
-inline int bert_decode_small_tuple(bert_decoder_t *decoder,bert_data_t **data);
-inline int bert_decode_large_tuple(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_bin(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_tuple(bert_decoder_t *decoder,bert_data_t **data,size_t size);
+int bert_decode_small_tuple(bert_decoder_t *decoder,bert_data_t **data);
+int bert_decode_large_tuple(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_list(bert_decoder_t *decoder,bert_data_t **data);
int bert_decode_regex(bert_decoder_t *decoder,bert_data_t **data);

0 comments on commit a9769f9

Please sign in to comment.