remove extern "C" wrappers in internal headers
Internal headers, i.e. those prefixed with an underscore, aren't supposed to be included in external projects anyways and libneo itself is obviously C only.
This commit is contained in:
parent
3828cfb7c4
commit
460ff1a37b
6 changed files with 0 additions and 48 deletions
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "neo/_toolchain.h"
|
#include "neo/_toolchain.h"
|
||||||
#include "neo/_types.h"
|
#include "neo/_types.h"
|
||||||
|
|
||||||
|
@ -68,10 +64,6 @@ void errput(error *err);
|
||||||
*/
|
*/
|
||||||
#define errmsg(err) ((err) == nil ? (string *)nil : (err)->_message)
|
#define errmsg(err) ((err) == nil ? (string *)nil : (err)->_message)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}; /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of libneo.
|
* This file is part of libneo.
|
||||||
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "neo/_toolchain.h"
|
#include "neo/_toolchain.h"
|
||||||
#include "neo/_types.h"
|
#include "neo/_types.h"
|
||||||
|
|
||||||
|
@ -50,10 +46,6 @@ void *nzalloc(usize size, error *err);
|
||||||
__neo_malloc(nfree, 1)
|
__neo_malloc(nfree, 1)
|
||||||
void *nrealloc(void *ptr, usize newsize, error *err);
|
void *nrealloc(void *ptr, usize newsize, error *err);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}; /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of libneo.
|
* This file is part of libneo.
|
||||||
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "neo/_types.h"
|
#include "neo/_types.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -51,10 +47,6 @@ int _neo_nput(struct _neo_nref *ref);
|
||||||
*/
|
*/
|
||||||
#define nput(ptr) (_neo_nput( &(ptr)->__neo_nref ))
|
#define nput(ptr) (_neo_nput( &(ptr)->__neo_nref ))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}; /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of libneo.
|
* This file is part of libneo.
|
||||||
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "neo/_types.h"
|
#include "neo/_types.h"
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
@ -54,10 +50,6 @@ extern "C" {
|
||||||
*/
|
*/
|
||||||
#define nlen(thing) ((thing)->__neo_nlen)
|
#define nlen(thing) ((thing)->__neo_nlen)
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}; /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of libneo.
|
* This file is part of libneo.
|
||||||
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "neo/_types.h"
|
#include "neo/_types.h"
|
||||||
#include "neo/_toolchain.h"
|
#include "neo/_toolchain.h"
|
||||||
|
|
||||||
|
@ -178,10 +174,6 @@ string *leftpad(const string *s, usize length, nchar fill, error *err);
|
||||||
(err)->_number + 1 < 2; \
|
(err)->_number + 1 < 2; \
|
||||||
__pos += utf8_to_nchr(nchr, __pos, err))
|
__pos += utf8_to_nchr(nchr, __pos, err))
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}; /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of libneo.
|
* This file is part of libneo.
|
||||||
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
||||||
|
|
|
@ -2,10 +2,6 @@
|
||||||
|
|
||||||
#pragma once
|
#pragma once
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include "neo/_stddef.h"
|
#include "neo/_stddef.h"
|
||||||
|
|
||||||
typedef __INT8_TYPE__ i8;
|
typedef __INT8_TYPE__ i8;
|
||||||
|
@ -72,10 +68,6 @@ struct _neo_error {
|
||||||
};
|
};
|
||||||
typedef struct _neo_error error;
|
typedef struct _neo_error error;
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
}; /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of libneo.
|
* This file is part of libneo.
|
||||||
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
* Copyright (c) 2021 Fefie <owo@fef.moe>.
|
||||||
|
|
Loading…
Reference in a new issue