AM_CONDITIONAL(MAKE_PDF_DOC, [test "x$have_dblatex" = "xyes" -a "x$have_asciidoc" = "xyes"])
+AC_MSG_CHECKING(for sparc)
+if eval "echo $host_cpu|grep -i sparc >/dev/null"; then
+ AC_DEFINE([WORDS_MUSTALIGN],[1],[Define if words must align])
+ AC_MSG_RESULT(yes)
+
+ # gcc, sparc and optimization not so good
+ if test -n "$GCC"; then
+ NO_OPTIMIZE="yes"
+ fi
+else
+ AC_MSG_RESULT(no)
+fi
+
+
#--------------------------------------------------------------------------
# visibility foo
#--------------------------------------------------------------------------
static THREAD_LOCAL uint32_t tag_alloc_faults = 0;
static THREAD_LOCAL uint32_t tag_memory_usage = 0;
-static bool s_exclusive = false;
-static unsigned s_sessions = 0;
+static THREAD_LOCAL bool s_exclusive = false;
+static THREAD_LOCAL unsigned s_sessions = 0;
// TBD when tags leverage sessions, tag nodes can be freed at end
// of session. then we can configure this to allow multiple
{
otn = (OptTreeNode *)hashNode->data;
{
- rtn = getRtnFromOtn(otn, policyId);
+ rtn = getRtnFromOtn(otn);
if (rtn == NULL)
continue;
} DecodeType;
-typedef struct s_Base64_DecodeState
+struct Base64_DecodeState
{
uint32_t encode_bytes_read;
uint32_t decode_bytes_read;
int encode_depth;
int decode_depth;
-} Base64_DecodeState;
+};
-typedef struct s_QP_DecodeState
+struct QP_DecodeState
{
uint32_t encode_bytes_read;
uint32_t decode_bytes_read;
int encode_depth;
int decode_depth;
-} QP_DecodeState;
+};
-typedef struct s_UU_DecodeState
+struct UU_DecodeState
{
uint32_t encode_bytes_read;
uint32_t decode_bytes_read;
int decode_depth;
uint8_t begin_found;
uint8_t end_found;
-} UU_DecodeState;
+};
-typedef struct s_BitEnc_DecodeState
+struct BitEnc_DecodeState
{
uint32_t bytes_read;
int depth;
-} BitEnc_DecodeState;
+};
-typedef struct s_Email_DecodeState
+struct Email_DecodeState
{
DecodeType decode_type;
uint8_t decode_present;
UU_DecodeState uu_state;
BitEnc_DecodeState bitenc_state;
-} Email_DecodeState;
+};
+
+struct MimeStats
+{
+ uint64_t memcap_exceeded;
+ uint64_t attachments[DECODE_ALL];
+ uint64_t decoded_bytes[DECODE_ALL];
+};
typedef struct _MimeStats
{