Changed spandsp from using TRUE and FALSE to using C99 true and false. It seems

like the quirks we used to get using those with C++ have gone away.
This commit is contained in:
Steve Underwood
2013-08-08 21:40:28 +08:00
parent bf9809c10c
commit 365fc08719
212 changed files with 3152 additions and 2664 deletions

View File

@@ -34,16 +34,14 @@
#include <sys/types.h>
#include <inttypes.h>
#include <memory.h>
#if defined(HAVE_STDBOOL_H)
#include <stdbool.h>
#else
#include <spandsp/stdbool.h>
#endif
#include "udptl.h"
#if !defined(FALSE)
#define FALSE 0
#endif
#if !defined(TRUE)
#define TRUE (!FALSE)
#endif
static int decode_length(const uint8_t *buf, int limit, int *len, int *pvalue)
{
if (*len >= limit)
@@ -296,7 +294,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len)
s->rx[x].fec_span = span;
memset(repaired, 0, sizeof(repaired));
repaired[x] = TRUE;
repaired[x] = true;
/* The number of entries is defined as a length, but will only ever be a small
value. Treat it as such. */
@@ -355,7 +353,7 @@ int udptl_rx_packet(udptl_state_t *s, const uint8_t buf[], int len)
}
}
s->rx[which].buf_len = s->rx[l].fec_len[m];
repaired[which] = TRUE;
repaired[which] = true;
}
}
}