Commit c29fa7d7 authored by Jonathan Jenkins's avatar Jonathan Jenkins
Browse files

extern C-ify headers

parent 1803c5a3
......@@ -7,6 +7,10 @@
#ifndef SIMPLEP2P_H
#define SIMPLEP2P_H
#ifdef __cplusplus
extern "C" {
#endif
typedef struct sp_message sp_message;
enum sp_event_type
......@@ -47,6 +51,10 @@ struct sp_message
tw_stime recv_prev_idle_all_saved;
};
#ifdef __cplusplus
}
#endif
#endif /* end of include guard: SIMPLEP2P_H */
/*
......
......@@ -7,6 +7,10 @@
#ifndef TORUS_H
#define TORUS_H
#ifdef __cplusplus
extern "C" {
#endif
typedef enum nodes_event_t nodes_event_t;
typedef struct nodes_message nodes_message;
......@@ -90,6 +94,10 @@ struct nodes_message
int remote_event_size_bytes;
};
#ifdef __cplusplus
}
#endif
#endif /* end of include guard: TORUS_H */
/*
......
......@@ -14,6 +14,10 @@
#ifndef SRC_COMMON_UTIL_QUICKHASH_H
#define SRC_COMMON_UTIL_QUICKHASH_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
#include <stdint.h>
#include "codes/quicklist.h"
......@@ -336,6 +340,10 @@ static inline int quickhash_null32_hash(void *k, int table_size)
return(int)(*tmp & (table_size - 1));
}
#ifdef __cplusplus
}
#endif
#endif /* SRC_COMMON_UTIL_QUICKHASH_H */
/*
......
......@@ -25,6 +25,10 @@
#ifndef QUICKLIST_H
#define QUICKLIST_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdlib.h>
struct qlist_head {
......@@ -289,4 +293,8 @@ static inline struct qlist_head * qlist_find(
* vim: ts=8 sts=4 sw=4 expandtab
*/
#ifdef __cplusplus
}
#endif
#endif /* QUICKLIST_H */
......@@ -7,6 +7,10 @@
#ifndef RC_STACK_H
#define RC_STACK_H
#ifdef __cplusplus
extern "C" {
#endif
#include <ross.h>
/* A simple stack data structure that is GVT-aware for cleanup purposes. It's
......@@ -49,6 +53,10 @@ int rc_stack_count(struct rc_stack const *s);
* a NULL lp causes a delete-all */
void rc_stack_gc(tw_lp const *lp, struct rc_stack *s);
#ifdef __cplusplus
}
#endif
#endif /* end of include guard: RC-STACK_H */
/*
......
......@@ -11,6 +11,10 @@
#ifndef RESOURCE_LP_H
#define RESOURCE_LP_H
#ifdef __cplusplus
extern "C" {
#endif
#include <ross.h>
#include <stdint.h>
......@@ -89,6 +93,10 @@ void resource_lp_reserve_rc(tw_lp *sender);
void resource_lp_get_reserved_rc(tw_lp *sender);
void resource_lp_free_reserved_rc(tw_lp *sender);
#ifdef __cplusplus
}
#endif
#endif /* end of include guard: RESOURCE_LP_H */
/*
......
......@@ -14,6 +14,10 @@
#ifndef RESOURCE_H
#define RESOURCE_H
#ifdef __cplusplus
extern "C" {
#endif
#include <stdint.h>
......@@ -69,6 +73,9 @@ struct resource_s {
unsigned int num_tokens;
};
#ifdef __cplusplus
}
#endif
#endif /* end of include guard: RESOURCE_H */
......
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