mirror of
https://github.com/asterisk/asterisk.git
synced 2025-10-12 07:35:18 +00:00
split up string/time functions into separate header files
make more LOW_MEMORY optimizations, and ensure that a non-inline version of each inlinable function is always available (for external modules) move compiler-specific stuff into a separate header file git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6008 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
@@ -15,7 +15,9 @@
|
||||
#define _ASTERISK_ASTOBJ_H
|
||||
|
||||
#include <string.h>
|
||||
|
||||
#include "asterisk/lock.h"
|
||||
#include "asterisk/compiler.h"
|
||||
|
||||
/*! \file
|
||||
* \brief A set of macros implementing objects and containers.
|
||||
@@ -84,10 +86,6 @@ extern "C" {
|
||||
|
||||
#define ASTOBJ_FLAG_MARKED (1 << 0) /* Object has been marked for future operation */
|
||||
|
||||
#if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 96)
|
||||
#define __builtin_expect(exp, c) (exp)
|
||||
#endif
|
||||
|
||||
/* C++ is simply a syntactic crutch for those who cannot think for themselves
|
||||
in an object oriented way. */
|
||||
|
||||
|
Reference in New Issue
Block a user