Commit 42eb42ea authored by Lubomir Bulej's avatar Lubomir Bulej
Browse files

Clean up header includes

parent 35ba1763
Pipeline #19315 failed with stages
in 3 minutes and 2 seconds
#include "classparser.h"
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
......
......@@ -13,6 +13,7 @@
#include <stddef.h>
#include <stdbool.h>
/****************************************************************************\
| PUBLIC DEFS |
\****************************************************************************/
......
#include "common.h"
#include <stdio.h>
#include <assert.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include <strings.h>
#include <assert.h>
//
......
......@@ -6,14 +6,12 @@
#define _POSIX_C_SOURCE 200809L
#include <stdio.h>
#include <stdarg.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdio.h>
#include <errno.h>
#define __STDC_FORMAT_MACROS
#include <inttypes.h>
#ifdef MINGW
#include <winsock2.h>
#include <windows.h>
......
#include "config.h"
#include "debug.h"
#include "jvmtiutil.h"
#include <string.h>
#include <assert.h>
#include <string.h>
#include <stdlib.h>
#include <jvmti.h>
#include "debug.h"
#include "jvmtiutil.h"
/*
......
......@@ -10,8 +10,10 @@
#include "common.h"
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <jvmti.h>
#include <sys/types.h>
// ****************************************************************************
......@@ -177,7 +179,7 @@ int32_t config_get_session_id ();
/**
* Sets the session id.
*/
void config_set_session_id(int32_t session_id);
void config_set_session_id (int32_t session_id);
#endif // _CONFIG_H
#ifndef _DEBUG_H
#define _DEBUG_H
#include "common.h"
#include "config.h"
#include <inttypes.h>
#include <stdio.h>
#include <string.h>
#include <unistd.h>
#include "common.h"
#include "config.h"
/**
* log error message
......
#include "../common.h"
#include "classparser.h"
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <string.h>
#include "../common.h"
//
#ifdef MINGW
#ifndef MINGW
#include <ws2tcpip.h>
#include <arpa/inet.h>
#else
#include <arpa/inet.h>
#include <ws2tcpip.h>
#endif
......
......@@ -4,17 +4,24 @@
* Created by Vít Kabele on 2019-03-10.
*/
// Required for off_t
#define _GNU_SOURCE
#include "disl.h"
#include <memory.h>
#include <sys/stat.h>
#include "../network/sender.h"
#include "../netref.h"
#include "disl.h"
#include "../jvmtiutil.h"
#include "../sessions.h"
#include "../debug.h"
#include "codeflags.h"
#include "bytecode.h"
#include "classparser.h"
#include "codeflags.h"
#include "../debug.h"
#include "../jvmtiutil.h"
#include "../netref.h"
#include "../sessions.h"
#include "../network/sender.h"
/*
......
......@@ -7,7 +7,7 @@
#define _DISL_H
#include <jvmti.h>
#include "../common.h"
#include "../config.h"
......
......@@ -13,6 +13,7 @@
#include <stddef.h>
#include <stdbool.h>
/****************************************************************************\
| PUBLIC DEFS |
\****************************************************************************/
......
......@@ -10,6 +10,8 @@
#include <jvmti.h>
#include <jni.h>
#include "disl/disl.h"
#include "disl/bytecode.h"
#include "shared/threadlocal.h"
......@@ -22,8 +24,6 @@
#include "tlocalbuffer.h"
#include "freehandler.h"
#include "disl/disl.h"
#include "config.h"
#include "jvmtiutil.h"
#include "debug.h"
......
#include "freehandler.h"
#include "jvmtiutil.h"
#include "pbmanager.h"
#include "shared/bytebuffer.h"
#include "shared/bufferpack.h"
#include "shared/messagetype.h"
#include "pbmanager.h"
#include "network/sender.h"
#include "jvmtiutil.h"
static jrawMonitorID obj_free_lock;
......
#include "globalbuffer.h"
#include "common.h"
#include "jvmtiutil.h"
#include "pbmanager.h"
#include "tagger.h"
#include "shared/threadlocal.h"
#include "shared/bufferpack.h"
#include "shared/messagetype.h"
#include "pbmanager.h"
#include "tagger.h"
#include "jvmtiutil.h"
// number of analysis requests in one message
#define ANALYSIS_COUNT 16384
......
#ifndef _GLOBALBUFFER_H
#define _GLOBALBUFFER_H
#include "shared/procbuffs.h"
#include <stddef.h>
#include <jvmti.h>
#include "shared/procbuffs.h"
// *** buffers for total ordering ***
typedef struct {
......
#include "common.h"
// Required for strdup
#define _POSIX_C_SOURCE 200809L
#include "jvmtiutil.h"
#include <assert.h>
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <jvmti.h>
#include "common.h"
//
......
......@@ -4,11 +4,9 @@
#ifndef _JVMTIUTIL_H
#define _JVMTIUTIL_H
#include "common.h"
#include <stdarg.h>
#include <stdbool.h>
#include <stdlib.h>
#include <stddef.h>
#include <jvmti.h>
......
#include "netref.h"
#include "shared/bufferpack.h"
#include "shared/messagetype.h"
#include <stddef.h>
#include <stdint.h>
#include "common.h"
#include "jvmtiutil.h"
#include <stdint.h>
#include <stdbool.h>
#include <string.h>
#include "shared/bufferpack.h"
#include "shared/messagetype.h"
//
......
#ifndef _NETREF_H
#define _NETREF_H
#include "shared/bytebuffer.h"
#include <stdbool.h>
#include <jvmti.h>
#include <jni.h>
#include "shared/bytebuffer.h"
#define NULL_NET_REF 0
// ******************* Net reference routines *******************
......
......@@ -6,19 +6,23 @@
#ifndef _CONNECTION_H
#define _CONNECTION_H
#include <sys/types.h>
#define _GNU_SOURCE
#include <stdint.h>
//
#ifdef MINGW
#ifndef MINGW
#include <winsock2.h>
#include <ws2tcpip.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <netdb.h>
#else
#include <sys/socket.h>
#include <netdb.h>
#include <sys/types.h>
#include <winsock2.h>
#include <ws2tcpip.h>
#endif
......
Supports Markdown
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