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:
Kevin P. Fleming
2005-06-24 22:45:15 +00:00
parent 3ddc33f674
commit 3e44b65090
6 changed files with 62 additions and 288 deletions

View File

@@ -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. */