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

@@ -78,7 +78,7 @@ display of modem status is maintained.
#define OUT_FILE_NAME "v29.wav"
char *decode_test_file = NULL;
int use_gui = FALSE;
bool use_gui = false;
int symbol_no = 0;
int rx_bits = 0;
@@ -315,30 +315,30 @@ int main(int argc, char *argv[])
SNDFILE *outhandle;
int outframes;
int samples;
int tep;
int test_bps;
int noise_level;
int signal_level;
int bits_per_test;
int line_model_no;
int block_no;
int log_audio;
int channel_codec;
int rbs_pattern;
int opt;
bool tep;
bool log_audio;
logging_state_t *logging;
channel_codec = MUNGE_CODEC_NONE;
rbs_pattern = 0;
test_bps = 9600;
tep = FALSE;
tep = false;
line_model_no = 0;
decode_test_file = NULL;
use_gui = FALSE;
use_gui = false;
noise_level = -70;
signal_level = -13;
bits_per_test = 50000;
log_audio = FALSE;
log_audio = false;
while ((opt = getopt(argc, argv, "b:B:c:d:glm:n:r:s:t")) != -1)
{
switch (opt)
@@ -362,14 +362,14 @@ int main(int argc, char *argv[])
break;
case 'g':
#if defined(ENABLE_GUI)
use_gui = TRUE;
use_gui = true;
#else
fprintf(stderr, "Graphical monitoring not available\n");
exit(2);
#endif
break;
case 'l':
log_audio = TRUE;
log_audio = true;
break;
case 'm':
line_model_no = atoi(optarg);
@@ -384,7 +384,7 @@ int main(int argc, char *argv[])
signal_level = atoi(optarg);
break;
case 't':
tep = TRUE;
tep = true;
break;
default:
//usage();
@@ -514,7 +514,7 @@ int main(int argc, char *argv[])
signal_level--;
v29_tx_restart(tx, test_bps, tep);
v29_tx_power(tx, signal_level);
v29_rx_restart(rx, test_bps, FALSE);
v29_rx_restart(rx, test_bps, false);
#if defined(SPANDSP_EXPOSE_INTERNAL_STRUCTURES)
rx->eq_put_step = rand()%(48*10/3);
#endif