Commit 18204a60300639cd9028560941555e6e77988b60
1 parent
05fcd37f
remove inline stuff for now ... add carefully again later perhaps
Showing
6 changed files
with
5 additions
and
10 deletions
| @@ -73,8 +73,8 @@ struct class { | @@ -73,8 +73,8 @@ struct class { | ||
| 73 | struct iface_impl impl; | 73 | struct iface_impl impl; |
| 74 | }; | 74 | }; |
| 75 | 75 | ||
| 76 | -extern inline void * class_getInterface(class_ptr *, iface_ptr); | ||
| 77 | -extern inline class_ptr class_getClass(void *); | 76 | +extern void * class_getInterface(class_ptr *, iface_ptr); |
| 77 | +extern class_ptr class_getClass(void *); | ||
| 78 | 78 | ||
| 79 | #endif // __CLASS_H__ | 79 | #endif // __CLASS_H__ |
| 80 | 80 |
| @@ -19,8 +19,8 @@ struct i_Class { | @@ -19,8 +19,8 @@ struct i_Class { | ||
| 19 | fptr_clone clone; | 19 | fptr_clone clone; |
| 20 | }; | 20 | }; |
| 21 | 21 | ||
| 22 | -extern inline void * classNew(class_ptr, ...); | ||
| 23 | -extern inline void classDelete(void **); | 22 | +extern void * classNew(class_ptr, ...); |
| 23 | +extern void classDelete(void **); | ||
| 24 | 24 | ||
| 25 | #define new(class,...) classNew(_##class, __VA_ARGS__) | 25 | #define new(class,...) classNew(_##class, __VA_ARGS__) |
| 26 | #define delete(object) classDelete((void **)(object)) | 26 | #define delete(object) classDelete((void **)(object)) |
| @@ -15,7 +15,7 @@ struct i_Logger { | @@ -15,7 +15,7 @@ struct i_Logger { | ||
| 15 | fptr_log log; | 15 | fptr_log log; |
| 16 | }; | 16 | }; |
| 17 | 17 | ||
| 18 | -extern inline void loggerLog(void *, logger_level, const char * const, ...); | 18 | +extern void loggerLog(void *, logger_level, const char * const, ...); |
| 19 | 19 | ||
| 20 | #endif // __INTERFACE_LOGGER_H__ | 20 | #endif // __INTERFACE_LOGGER_H__ |
| 21 | 21 |
| @@ -4,7 +4,6 @@ | @@ -4,7 +4,6 @@ | ||
| 4 | #include "class.h" | 4 | #include "class.h" |
| 5 | #include "interface.h" | 5 | #include "interface.h" |
| 6 | 6 | ||
| 7 | -inline | ||
| 8 | void * | 7 | void * |
| 9 | class_getInterface(class_ptr * class, iface_ptr _iface) | 8 | class_getInterface(class_ptr * class, iface_ptr _iface) |
| 10 | { | 9 | { |
| @@ -18,7 +17,6 @@ class_getInterface(class_ptr * class, iface_ptr _iface) | @@ -18,7 +17,6 @@ class_getInterface(class_ptr * class, iface_ptr _iface) | ||
| 18 | return iface; | 17 | return iface; |
| 19 | } | 18 | } |
| 20 | 19 | ||
| 21 | -inline | ||
| 22 | class_ptr | 20 | class_ptr |
| 23 | class_getClass(void * object) | 21 | class_getClass(void * object) |
| 24 | { | 22 | { |
| @@ -11,7 +11,6 @@ struct interface i_Class = { | @@ -11,7 +11,6 @@ struct interface i_Class = { | ||
| 11 | 3 | 11 | 3 |
| 12 | }; | 12 | }; |
| 13 | 13 | ||
| 14 | -inline | ||
| 15 | void * | 14 | void * |
| 16 | classNew(class_ptr class, ...) | 15 | classNew(class_ptr class, ...) |
| 17 | { | 16 | { |
| @@ -30,7 +29,6 @@ classNew(class_ptr class, ...) | @@ -30,7 +29,6 @@ classNew(class_ptr class, ...) | ||
| 30 | return object; | 29 | return object; |
| 31 | } | 30 | } |
| 32 | 31 | ||
| 33 | -inline | ||
| 34 | void | 32 | void |
| 35 | classDelete(void ** object) | 33 | classDelete(void ** object) |
| 36 | { | 34 | { |
| @@ -8,7 +8,6 @@ const struct interface i_Logger = { | @@ -8,7 +8,6 @@ const struct interface i_Logger = { | ||
| 8 | 1 | 8 | 1 |
| 9 | }; | 9 | }; |
| 10 | 10 | ||
| 11 | -inline | ||
| 12 | void | 11 | void |
| 13 | loggerLog(void * _object, logger_level level, const char * const fmt, ...) { | 12 | loggerLog(void * _object, logger_level level, const char * const fmt, ...) { |
| 14 | Logger object = _object; | 13 | Logger object = _object; |
Please
register
or
login
to post a comment