Browse Source

- optimized includes

development
Andreas Romeyke 8 months ago
parent
commit
f3c728e199
17 changed files with 3 additions and 38 deletions
  1. +1
    -6
      src/checkit_tiff.c
  2. +0
    -4
      src/checkit_tiff_risk.c
  3. +0
    -3
      src/helper/check_helper.c
  4. +1
    -6
      src/helper/check_renderer.c
  5. +0
    -2
      src/ifdrules/check_all_IFDs_are_word_aligned.c
  6. +0
    -2
      src/ifdrules/check_all_geotiff_tags.c
  7. +0
    -1
      src/ifdrules/check_all_offsets_are_word_aligned.c
  8. +0
    -1
      src/ifdrules/check_all_offsets_greater_zero.c
  9. +0
    -1
      src/ifdrules/check_has_only_one_ifd.c
  10. +0
    -1
      src/ifdrules/check_tags_with_corresponding_cardinality.c
  11. +0
    -1
      src/tagrules/check_datetime.c
  12. +1
    -1
      src/tagrules/check_icc.c
  13. +0
    -1
      src/tagrules/check_tag.c
  14. +0
    -3
      src/tagrules/check_tag_has_value.c
  15. +0
    -1
      src/tagrules/check_tag_has_value_matching_regex.c
  16. +0
    -2
      src/tagrules/check_tag_has_value_quiet.c
  17. +0
    -2
      src/tagrules/check_tag_has_valuelist.c

+ 1
- 6
src/checkit_tiff.c View File

@ -8,19 +8,14 @@
#include "config_parser.h"
#include "check.h"
#include "check_helper.h"
#include "check_renderer.h"
#include <unistd.h>
#include <assert.h>
#include <dirent.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#ifdef __unix__
#include <sys/stat.h>
#include <sys/types.h>
#else
/* #include <sys\stat.h> */
#include <sys/stat.h>


+ 0
- 4
src/checkit_tiff_risk.c View File

@ -10,14 +10,10 @@
#include "check_helper.h"
#include <ctype.h>
#ifdef __unix__
#include <unistd.h>
#include <sys/stat.h>
#include <sys/types.h>
#else
/* #include <sys\stat.h> */
#include <sys/stat.h>
#endif
#include <unistd.h>
#define FLAGGED 1
#define UNFLAGGED 0


+ 0
- 3
src/helper/check_helper.c View File

@ -9,11 +9,8 @@
#define _GNU_SOURCE
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
#include <sys/stat.h>
#include <assert.h>
#include <fcntl.h>
#include <string.h>
#include <byteswap.h>
/*
#define DEBUG


+ 1
- 6
src/helper/check_renderer.c View File

@ -7,14 +7,9 @@
*/
#define _GNU_SOURCE
#include <math.h>
#include "check.h"
#include "check_helper.h"
#include "check_renderer.h"
#include <unistd.h>
#include <assert.h>
#include <fcntl.h>
#include <string.h>
render_type render_engine=render_default;
short int is_quiet = 1;


+ 0
- 2
src/ifdrules/check_all_IFDs_are_word_aligned.c View File

@ -8,8 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
#include <assert.h>
/* check if IFDs are word aligned */


+ 0
- 2
src/ifdrules/check_all_geotiff_tags.c View File

@ -8,8 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
#include <errno.h>
/* checks the geo tiff tags:
* - geokey directory tag (34735) -> geokeys


+ 0
- 1
src/ifdrules/check_all_offsets_are_word_aligned.c View File

@ -8,7 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
/* check if offsets are word aligned */


+ 0
- 1
src/ifdrules/check_all_offsets_greater_zero.c View File

@ -8,7 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
/* check if offsets are greater zero */


+ 0
- 1
src/ifdrules/check_has_only_one_ifd.c View File

@ -8,7 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
/* check if only one IFD exists */
ret_t check_has_only_one_ifd(ctiff_t * ctif) {


+ 0
- 1
src/ifdrules/check_tags_with_corresponding_cardinality.c View File

@ -8,7 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <unistd.h>
/* check if cardinality of tags are equal */


+ 0
- 1
src/tagrules/check_datetime.c View File

@ -9,7 +9,6 @@
#include "check.h"
#include "check_helper.h"
#include <assert.h>
#include <string.h>
/** check if date / time values are within correct ranges
* @param year year


+ 1
- 1
src/tagrules/check_icc.c View File

@ -9,7 +9,7 @@
#include "check.h"
#include "check_helper.h"
#include "validate_icc.h"
#include "ctype.h"
/** checks a ICC tag, see Annex B of http://www.color.org/specification/ICC1v43_2010-12.pdf
*/
ret_t check_icc(ctiff_t * ctif ) {


+ 0
- 1
src/tagrules/check_tag.c View File

@ -7,7 +7,6 @@
*/
#include "check.h"
#include "check_helper.h"
/* #define DEBUG */
/* checks if TIF has a specified tag */


+ 0
- 3
src/tagrules/check_tag_has_value.c View File

@ -7,9 +7,6 @@
*/
#include "check.h"
#include "check_helper.h"
#include <pcre.h>
#include <string.h>
/*
#define DEBUG


+ 0
- 1
src/tagrules/check_tag_has_value_matching_regex.c View File

@ -1,7 +1,6 @@
#include "check.h"
#include "check_helper.h"
#include <pcre.h>
#include <string.h>
/*
#define DEBUG


+ 0
- 2
src/tagrules/check_tag_has_value_quiet.c View File

@ -8,8 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <pcre.h>
#include <string.h>
/*
#define DEBUG


+ 0
- 2
src/tagrules/check_tag_has_valuelist.c View File

@ -8,8 +8,6 @@
#include "check.h"
#include "check_helper.h"
#include <pcre.h>
#include <string.h>
/*
#define DEBUG


Loading…
Cancel
Save