summaryrefslogtreecommitdiffstats
path: root/libass/ass_utils.h
diff options
context:
space:
mode:
authorgreg <greg@blackbox>2009-06-18 17:54:08 +0200
committergreg <greg@blackbox>2009-06-20 03:38:00 +0200
commit2303b5430337da60f582613f95e605f08606759f (patch)
tree7ab52c9de634da3dfe55e1f36e87030beff2a3fe /libass/ass_utils.h
parent9c7521c0224f16880870839f7492e50b1c8602f7 (diff)
downloadlibass-2303b5430337da60f582613f95e605f08606759f.tar.bz2
libass-2303b5430337da60f582613f95e605f08606759f.tar.xz
Reindent all source code.
Reindent complete source code (*.c, *.h) with indent, the exact command line being: indent -kr -i4 -bap -nut -l76 *.c *.h From now on, new code should use (more or less) K&R style, only spaces and no tabs, 4 spaces indent width. Avoid long lines. Fix function declaration pointer spacing. Remove spaces that were added to many function declarations by indent, like some_func(foo_t * bar). Fix indenting of macros in ass.c
Diffstat (limited to 'libass/ass_utils.h')
-rw-r--r--libass/ass_utils.h66
1 files changed, 37 insertions, 29 deletions
diff --git a/libass/ass_utils.h b/libass/ass_utils.h
index 8c5f3e8f..54c8fe0e 100644
--- a/libass/ass_utils.h
+++ b/libass/ass_utils.h
@@ -1,5 +1,3 @@
-// -*- c-basic-offset: 8; indent-tabs-mode: t -*-
-// vim:ts=8:sw=8:noet:ai:
/*
* Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
*
@@ -25,42 +23,52 @@
#include <stdint.h>
-int mystrtoi(char** p, int* res);
-int mystrtoll(char** p, long long* res);
-int mystrtou32(char** p, int base, uint32_t* res);
-int mystrtod(char** p, double* res);
-int strtocolor(char** q, uint32_t* res);
-char parse_bool(char* str);
+int mystrtoi(char **p, int *res);
+int mystrtoll(char **p, long long *res);
+int mystrtou32(char **p, int base, uint32_t *res);
+int mystrtod(char **p, double *res);
+int strtocolor(char **q, uint32_t *res);
+char parse_bool(char *str);
-static inline int d6_to_int(int x) {
- return (x + 32) >> 6;
+static inline int d6_to_int(int x)
+{
+ return (x + 32) >> 6;
}
-static inline int d16_to_int(int x) {
- return (x + 32768) >> 16;
+static inline int d16_to_int(int x)
+{
+ return (x + 32768) >> 16;
}
-static inline int int_to_d6(int x) {
- return x << 6;
+static inline int int_to_d6(int x)
+{
+ return x << 6;
}
-static inline int int_to_d16(int x) {
- return x << 16;
+static inline int int_to_d16(int x)
+{
+ return x << 16;
}
-static inline int d16_to_d6(int x) {
- return (x + 512) >> 10;
+static inline int d16_to_d6(int x)
+{
+ return (x + 512) >> 10;
}
-static inline int d6_to_d16(int x) {
- return x << 10;
+static inline int d6_to_d16(int x)
+{
+ return x << 10;
}
-static inline double d6_to_double(int x) {
- return x / 64.;
+static inline double d6_to_double(int x)
+{
+ return x / 64.;
}
-static inline int double_to_d6(double x) {
- return (int)(x * 64);
+static inline int double_to_d6(double x)
+{
+ return (int) (x * 64);
}
-static inline double d16_to_double(int x) {
- return ((double)x) / 0x10000;
+static inline double d16_to_double(int x)
+{
+ return ((double) x) / 0x10000;
}
-static inline int double_to_d16(double x) {
- return (int)(x * 0x10000);
+static inline int double_to_d16(double x)
+{
+ return (int) (x * 0x10000);
}
-#endif /* LIBASS_UTILS_H */
+#endif /* LIBASS_UTILS_H */