Commit 4a1987da authored by gates's avatar gates

Fix inclusions of headers, placing them in sources where they are necessary.

Also explicitely require header inclusions whenever needed
parent 8d000cef
......@@ -36,20 +36,9 @@
#include "libbluray/bdnav/mpls_parse.h"
#include "libbluray/bdnav/navigation.h"
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#if HAVE_STDLIB_H
#include <stdlib.h>
#endif
#include <sys/stat.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <libgen.h>
#include <string.h>
#include <inttypes.h>
#define PKT_SIZE 192
......
......@@ -30,10 +30,7 @@
#include "libbluray/bdnav/clpi_parse.h"
#include "util.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
......
......@@ -29,9 +29,6 @@
#include "libbluray/bdnav/index_parse.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
static void _indx_print_app_info(INDX_APP_INFO *app_info)
{
......
......@@ -6,14 +6,9 @@
#include "util/logging.h"
#include <stdio.h>
#if HAVE_MALLOC_H
#include <malloc.h>
#endif
#include <stdlib.h>
#include <string.h>
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#define HEX_PRINT(X,Y) { int zz; for(zz = 0; zz < Y; zz++) fprintf(stderr, "%02X", X[zz]); fprintf(stderr, "\n"); }
......
......@@ -35,10 +35,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if HAVE_INTTYPES_H
#include <inttypes.h>
#endif
#include <unistd.h>
#define OPTS "hs:"
......
......@@ -30,10 +30,7 @@
#include "libbluray/bdnav/mobj_parse.h"
#include "libbluray/bdnav/hdmv_insn.h"
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <inttypes.h>
const char * const psr_info[128] = {
"/* PSR0: Interactive graphics stream number */",
......
......@@ -31,11 +31,9 @@
#include "libbluray/bdnav/navigation.h"
#include "util.h"
#include <sys/types.h>
#include <sys/stat.h>
#include <dirent.h>
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
......
......@@ -30,9 +30,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
void
hex_dump(uint8_t *buf, int count)
......
......@@ -36,6 +36,7 @@
#include <stdlib.h>
#include <dirent.h>
#include <string.h>
DIR_H *dir_open_posix(const char* dirname);
void dir_close_posix(DIR_H *dir);
......
......@@ -8,6 +8,7 @@
#include <stdlib.h>
#include <dlfcn.h>
#include <string.h>
// Note the dlopen takes just the name part. "aacs", internally we
// translate to "libaacs.so" "libaacs.dylib" or "aacs.dll".
......
......@@ -3,7 +3,6 @@
#define FILE_H_
#include <stdint.h>
#include <unistd.h>
//#ifdef __LINUX__
#define file_open file_open_linux
......
......@@ -29,7 +29,7 @@
#if !defined(_CLPI_PARSE_H_)
#define _CLPI_PARSE_H_
#include <inttypes.h>
#include <stdint.h>
typedef struct
{
......
......@@ -39,6 +39,7 @@
#include "navigation.h"
#include <stdlib.h>
#include <string.h>
static int _filter_dup(MPLS_PL *pl_list[], int count, MPLS_PL *pl)
{
......
......@@ -15,6 +15,8 @@
#include <libbdplus/bdplus.h>
#endif
#include <stdlib.h>
#include <inttypes.h>
#include <string.h>
static int _open_m2ts(BLURAY *bd)
{
......
......@@ -26,8 +26,7 @@
#include "file/file.h"
//#include <stdio.h>
#include <fcntl.h>
#include <unistd.h>
/**
* \file
......
#include "logging.h"
#include <stdlib.h>
#include <stdio.h>
#include <stdarg.h>
#include <string.h>
char out[512];
debug_mask_t debug_mask = 0;
......
......@@ -4,10 +4,7 @@
#include "attributes.h"
#include <stdio.h>
#include <stdarg.h>
#include <stdint.h>
#include <string.h>
#define DEBUG(X,Y,...) debug(__FILE__,__LINE__,X,Y,##__VA_ARGS__)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment