1
0
Fork 0
mirror of https://github.com/tailix/libkernaux.git synced 2024-12-04 11:25:18 -05:00

Reorder "extern C" statements

This commit is contained in:
Alex Kotov 2021-12-14 01:46:58 +05:00
parent a978842093
commit 43bad38beb
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
7 changed files with 21 additions and 21 deletions

View file

@ -1,16 +1,16 @@
#ifndef KERNAUX_INCLUDED_CMDLINE
#define KERNAUX_INCLUDED_CMDLINE 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#define KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX 256
#define KERNAUX_CMDLINE_ERROR_MSG_SLEN_MAX \
(KERNAUX_CMDLINE_ERROR_MSG_SIZE_MAX - 1)
#ifdef __cplusplus
extern "C" {
#endif
bool kernaux_cmdline_parse(
const char *cmdline,
char *error_msg,

View file

@ -1,12 +1,12 @@
#ifndef KERNAUX_INCLUDED_ELF
#define KERNAUX_INCLUDED_ELF 1
#include <stdbool.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
struct KernAux_ELF_Header {
unsigned char magic_0x7F : 8;
unsigned char magic_E : 8;

View file

@ -1,14 +1,14 @@
#ifndef KERNAUX_INCLUDED_MULTIBOOT2
#define KERNAUX_INCLUDED_MULTIBOOT2 1
#include <stdbool.h>
#define KERNAUX_MULTIBOOT2_MAGIC 0x36d76289
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#define KERNAUX_MULTIBOOT2_MAGIC 0x36d76289
/****************
* Common types *
****************/

View file

@ -1,15 +1,15 @@
#ifndef KERNAUX_INCLUDED_PFA
#define KERNAUX_INCLUDED_PFA 1
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#define KERNAUX_PFA_PAGE_SIZE (4 * 1024)
#define KERNAUX_PFA_PAGES_COUNT_MAX (1024 * 1024)
#ifdef __cplusplus
extern "C" {
#endif
struct KernAux_PFA {
bool pages[KERNAUX_PFA_PAGES_COUNT_MAX];
};

View file

@ -1,12 +1,12 @@
#ifndef KERNAUX_INCLUDED_PRINTF
#define KERNAUX_INCLUDED_PRINTF 1
#include <stdarg.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <stdarg.h>
void kernaux_printf(void (*putchar)(char), const char *format, ...)
__attribute__((format(printf, 2, 3)));
void kernaux_printf_va(void (*putchar)(char), const char *format, va_list va);

View file

@ -1,12 +1,12 @@
#ifndef KERNAUX_INCLUDED_STDLIB
#define KERNAUX_INCLUDED_STDLIB 1
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <stddef.h>
void *kernaux_memset(void *buffer, int value, size_t size)
__attribute__((nonnull));

View file

@ -1,13 +1,13 @@
#ifndef KERNAUX_INCLUDED_UNITS
#define KERNAUX_INCLUDED_UNITS
#include <stdbool.h>
#include <stddef.h>
#ifdef __cplusplus
extern "C" {
#endif
#include <stdbool.h>
#include <stddef.h>
enum KernAux_Unit {
KERNAUX_UNIT_BIT,
KERNAUX_UNIT_BYTE,