No results
1
headers macros
forgejo docs edited this page 2026-11-17 18:02:00 +00:00
Table of contents
- Headers macros
- Defined in this file
- macro PAIRS_H
- macro STRING_CL_H
- macro CONFIG_H
- macro MACROS_H
- macro MAIN_H
- macro ARGS_H
- macro TOOLS_H
- macro COMMANDS_H
- macro SYNC_H
- macro CORE_H
- macro CONFIG_MAX_STR_SIZE
- macro DEFAULT_MIRROR_URL
- macro MAX
- macro MIN
- macro PTREDIT
- macro PROG_VERSION
- macro STRCP
- macro SET_PTR_VAL
- Indexed files
Headers macros
This file contains the macros that are written in the headers files
Defined in this file
The following 18 macros are referenced in this file
- PAIRS_H
- STRING_CL_H
- CONFIG_H
- MACROS_H
- MAIN_H
- ARGS_H
- TOOLS_H
- COMMANDS_H
- SYNC_H
- CORE_H
- CONFIG_MAX_STR_SIZE
- DEFAULT_MIRROR_URL
- MAX
- MIN
- PTREDIT
- PROG_VERSION
- STRCP
- SET_PTR_VAL
macro PAIRS_H
#define __PAIRS_H__ 1
Defined in src/cl/pairs.h:2
macro STRING_CL_H
#define __STRING_CL_H__ 1
Defined in src/cl/string_cl.h:2
macro CONFIG_H
#define __CONFIG_H__ 1
Defined in src/core/config.h:2
macro MACROS_H
#define __MACROS_H__
Defined in src/macros.h:2
macro MAIN_H
#define __MAIN_H__ 1
Defined in src/main.h:2
macro ARGS_H
#define __ARGS_H__ 1
Defined in src/aux/args.h:2
macro TOOLS_H
#define __TOOLS_H__ 1
Defined in src/aux/tools.h:2
macro COMMANDS_H
#define __COMMANDS_H__ 1
Defined in src/commands/commands.h:3
macro SYNC_H
#define __SYNC_H__ 1
Defined in src/commands/sync.h:2
macro CORE_H
#define __CORE_H__ 1
Defined in src/commands/core.h:2
macro CONFIG_MAX_STR_SIZE
#define CONFIG_MAX_STR_SIZE 512
Defined in src/commands/sync.h:4
macro DEFAULT_MIRROR_URL
#define DEFAULT_MIRROR_URL "https:
Defined in src/main.h:9
macro MAX
#define MAX(a, b) (((a) > (b)) ? (a) : (b))
Defined in src/macros.h:4
macro MIN
#define MIN(a, b) (((a) < (b)) ? (a) : (b))
Defined in src/macros.h:5
macro PTREDIT
#define PTREDIT(ptr, val) if (ptr != NULL) (*(ptr)) = val;
Defined in src/macros.h:22
macro PROG_VERSION
#define PROG_VERSION "1.0.1"
Defined in src/main.h:5
macro STRCP
#define STRCP(src, dest, max, with_zero) {
char * s = src;
char * d = dest;
unsigned long i = max;
while (*s != 0 && i > 0) {
i--;
*d = *s;
s++;
d++;
}
if (with_zero) *d = 0;
}
Defined in src/macros.h:7
macro SET_PTR_VAL
#define SET_PTR_VAL(ptr, val) if (ptr != NULL) *ptr = val;
Defined in src/commands/core.h:4