Hash :
df2322d7
Author :
Date :
2025-02-05T14:41:21
Replace include guards by `#pragma once` We currently have a mix of include headers, pragma once and some missing. pragma once is not standard but is widely supported, and we already use it with no issues, so I'd say it's not a problem. Let's convert all headers to pragma once to avoid the annoying include guards. The public headers are *not* converted. Signed-off-by: Ran Benita <ran@unusedvar.com>
/*
* Copyright © 2009 Dan Nicholson
* SPDX-License-Identifier: MIT
*/
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
typedef uint32_t xkb_atom_t;
#define XKB_ATOM_NONE 0
struct atom_table;
struct atom_table *
atom_table_new(void);
void
atom_table_free(struct atom_table *table);
xkb_atom_t
atom_intern(struct atom_table *table, const char *string, size_t len, bool add);
const char *
atom_text(struct atom_table *table, xkb_atom_t atom);