/***************************************************\ * * * Main tester entry. * * * \***************************************************/ int main(int argc, char* argv[]) { test_types(); test_endian(); test_read_line(); test_read_first_next(); test_strrm(); test_conatiners(); test_expressions(); test_time(); test_loader(); return 0; }
int main(int argc, char** argv) { int sizes[] = {qbytes_iobuf_size, 1, 2, 0}; setlocale(LC_CTYPE,""); printf("Sizeof of qio_style_t is %i\n", (int) sizeof(qio_style_t)); printf("Sizeof of qio_channel_t is %i\n", (int) sizeof(qio_channel_t)); for( int i = 0; sizes[i] != 0; i++ ) { char* codeset = nl_langinfo(CODESET); qbytes_iobuf_size = sizes[i]; if( 0 == strcmp(codeset, "UTF-8") ) { qio_glocale_utf8 = -1; test_utf8(); qio_glocale_utf8 = 1; test_utf8(); } } for( int i = 0; sizes[i] != 0; i++ ) { qbytes_iobuf_size = sizes[i]; printf("Testing formatted I/O qbytes_iobuf_size=%i\n", (int) qbytes_iobuf_size); basicstring_test(); test_verybasic(); test_readwriteint(); test_endian(); test_printscan_int(); test_printscan_float(); test_readwritestring(); test_scanmatch(); test_quoted_string_maxlength(); } return 0; }