CAPS Universe documentation
1.0.4
All you need to know to be successful
Introduction
Manuals
CAPS API in Detail
Data Structures
Source file list
CAPS source files
libcapsinif
src
libcapsinif-local.h
Go to the documentation of this file.
1
#pragma once
2
3
/*
4
* SPDX-License-Identifier: LGPL-2.1-or-later
5
*
6
* (c) 2017 Juergen Borleis <projects@caps-printing.org>
7
*
8
* This library is free software; you can redistribute it and/or modify it under
9
* the terms of the GNU General Public License as published by the Free
10
* Software Foundation; either version 2 of the License, or (at your option)
11
* any later version.
12
*
13
* This program is distributed in the hope that it will be useful, but WITHOUT
14
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16
*/
17
18
#include <
libcapsbase.h
>
19
#include <
libcapstable.h
>
20
#include "
libcapsinif.h
"
21
22
#ifdef DSO_HIDDEN
23
# define DSO_VISIBLE __attribute__ ((visibility("default"
)))
24
#else
25
# define DSO_VISIBLE
26
#endif
/* DSO_HIDDEN */
27
28
#ifdef DEBUG
29
# define caps_print_debug(fmt, ...) caps_print_debug_template(fmt, ##__VA_ARGS__)
30
#else
31
# define caps_print_debug(fmt, ...)
32
#endif
37
#ifdef ENABLE_NLS
38
39
# ifndef PACKAGE
40
# error "Missing 'PACKAGE' macro: include 'config.h' first"
41
# endif
/* PACKAGE */
42
43
# define _(string) dgettext(PACKAGE, string)
44
# include <libintl.h>
45
46
#else
/* ENABLE_NLS */
47
48
# define _(string) (string)
49
50
#endif
/* ENABLE_NLS */
55
#define NLS_(string) (string)
56
libcapsbase.h
Basic API for everything else of the CAPS universe.
libcapsinif.h
Basic API for INI file management in the CAPS universe.
libcapstable.h
Manage variable arrays.
The total CAPS universe documentation - Generated by