clang-format: Apply formatting
Code submissions have continually suffered from formatting inconsistencies that constantly have to be addressed. Using clang-format simplifies this by making code formatting more consistent, and allows automation of the code formatting so that maintainers can focus more on the code itself instead of code formatting.
This commit is contained in:
@@ -21,32 +21,31 @@
|
||||
|
||||
static inline AVal *flv_str(AVal *out, const char *str)
|
||||
{
|
||||
out->av_val = (char*)str;
|
||||
out->av_val = (char *)str;
|
||||
out->av_len = (int)strlen(str);
|
||||
return out;
|
||||
}
|
||||
|
||||
static inline void enc_num_val(char **enc, char *end, const char *name,
|
||||
double val)
|
||||
double val)
|
||||
{
|
||||
AVal s;
|
||||
*enc = AMF_EncodeNamedNumber(*enc, end, flv_str(&s, name), val);
|
||||
}
|
||||
|
||||
static inline void enc_bool_val(char **enc, char *end, const char *name,
|
||||
bool val)
|
||||
bool val)
|
||||
{
|
||||
AVal s;
|
||||
*enc = AMF_EncodeNamedBoolean(*enc, end, flv_str(&s, name), val);
|
||||
}
|
||||
|
||||
static inline void enc_str_val(char **enc, char *end, const char *name,
|
||||
const char *val)
|
||||
const char *val)
|
||||
{
|
||||
AVal s1, s2;
|
||||
*enc = AMF_EncodeNamedString(*enc, end,
|
||||
flv_str(&s1, name),
|
||||
flv_str(&s2, val));
|
||||
*enc = AMF_EncodeNamedString(*enc, end, flv_str(&s1, name),
|
||||
flv_str(&s2, val));
|
||||
}
|
||||
|
||||
static inline void enc_str(char **enc, char *end, const char *str)
|
||||
|
Reference in New Issue
Block a user