summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorMathieu Malaterre <mathieu.malaterre@gmail.com>2012-09-10 12:46:42 +0000
committerMathieu Malaterre <mathieu.malaterre@gmail.com>2012-09-10 12:46:42 +0000
commit4a845f3d04ecd072177925044885f730ad4a9c31 (patch)
tree0962726fc6c2eb92b54d298a72b3657607b86edd /tests
parent0452ebdfcd6170c595ef791992bbeee2a6473352 (diff)
[trunk] Fix one remaining issue with C90 compat
Diffstat (limited to 'tests')
-rw-r--r--tests/j2k_random_tile_access.c2
-rw-r--r--tests/test_tile_decoder.c8
-rw-r--r--tests/test_tile_encoder.c8
3 files changed, 9 insertions, 9 deletions
diff --git a/tests/j2k_random_tile_access.c b/tests/j2k_random_tile_access.c
index 5a36d807..d8b70f15 100644
--- a/tests/j2k_random_tile_access.c
+++ b/tests/j2k_random_tile_access.c
@@ -295,7 +295,7 @@ int main(int argc, char **argv)
return EXIT_SUCCESS;
}
-//end main
+/*end main*/
diff --git a/tests/test_tile_decoder.c b/tests/test_tile_decoder.c
index f0f4c952..8ff7ad28 100644
--- a/tests/test_tile_decoder.c
+++ b/tests/test_tile_decoder.c
@@ -26,7 +26,7 @@
#define USE_OPJ_DEPRECATED
/* set this macro to enable profiling for the given test */
/* warning : in order to be effective, openjpeg must have been built with profiling enabled !! */
-//#define _PROFILE
+/*#define _PROFILE*/
#include <stdio.h>
#include <string.h>
@@ -249,7 +249,7 @@ int main (int argc, char *argv[])
l_param.cp_reduce = 0;
/* to decode only a part of the image data */
- //opj_restrict_decoding(&l_param,0,0,1000,1000);
+ /*opj_restrict_decoding(&l_param,0,0,1000,1000);*/
switch(l_param.decod_format) {
@@ -382,8 +382,8 @@ int main (int argc, char *argv[])
opj_destroy_codec(l_codec);
opj_image_destroy(l_image);
- // Print profiling
- //PROFPRINT();
+ /* Print profiling*/
+ /*PROFPRINT();*/
return EXIT_SUCCESS;
}
diff --git a/tests/test_tile_encoder.c b/tests/test_tile_encoder.c
index e1d93b3d..160391b0 100644
--- a/tests/test_tile_encoder.c
+++ b/tests/test_tile_encoder.c
@@ -147,7 +147,7 @@ int main (int argc, char *argv[])
fprintf(stdout, "Encoding random values -> keep in mind that this is very hard to compress\n");
for (i=0;i<l_data_size;++i) {
- l_data[i] = i; //rand();
+ l_data[i] = i; /*rand();*/
}
opj_set_default_encoder_parameters(&l_param);
@@ -240,7 +240,7 @@ int main (int argc, char *argv[])
++l_current_param_ptr;
}
- // should we do j2k or jp2 ?
+ /* should we do j2k or jp2 ?*/
len = strlen( output_file );
if( strcmp( output_file + len - 4, ".jp2" ) == 0 )
{
@@ -324,8 +324,8 @@ int main (int argc, char *argv[])
free(l_data);
- // Print profiling
- //PROFPRINT();
+ /* Print profiling*/
+ /*PROFPRINT();*/
return 0;
}