Commit aed53115 authored by Lubomir Bulej's avatar Lubomir Bulej
Browse files

Include component header first

This exposes buggy header files more eagerly
parent e3612088
#include "common.h"
#include "classparser.h"
#include <assert.h>
......@@ -6,15 +5,17 @@
#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
......
#include "common.h"
#include "debug.h"
#include "connection.h"
#include <assert.h>
#include <stdlib.h>
#include <unistd.h>
#include "common.h"
#include "debug.h"
//
#ifdef MINGW
......
#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
......
#include "common.h"
#include "jvmtiutil.h"
#include <assert.h>
......@@ -9,6 +8,8 @@
#include <jvmti.h>
#include "common.h"
//
#ifndef AGENT_NAME
......
#include "common.h"
#include "debug.h"
#include "msgchannel.h"
#include "connection.h"
#include <stdio.h>
#include <stdlib.h>
......@@ -12,6 +9,10 @@
#include <sys/uio.h>
#endif
#include "common.h"
#include "connection.h"
#include "debug.h"
//
#ifdef MINGW
......
#include "network.h"
#include <assert.h>
#include <sys/types.h>
#include "common.h"
#include "debug.h"
#include "threads.h"
......@@ -5,9 +10,6 @@
#include "connection.h"
#include "msgchannel.h"
#include <assert.h>
#include <sys/types.h>
//
#ifdef MINGW
......
......@@ -3,6 +3,8 @@
*
* Created by Vit Kabele on 12/10/2018.
*/
#include "sessions.h"
#include <assert.h>
#include <stdlib.h>
#include <stdio.h>
......@@ -11,12 +13,11 @@
#include <sys/stat.h>
#include <fcntl.h>
#include "sessions.h"
#include <agent/main.pb-c.h>
#include "common.h"
#include "network.h"
#include <agent/main.pb-c.h>
/**
* Send a client message over a network connection.
*/
......
......@@ -6,9 +6,14 @@
#ifndef _SESSIONS_H
#define _SESSIONS_H
#include "msgchannel.h"
// Include first for _GNU_SOURCE
#include "connection.h"
#include <stdbool.h>
#include <stdint.h>
#include "msgchannel.h"
#include <agent/main.pb-c.h>
void send_client_message (const ClientMessage * message, struct connection * conn);
......
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