1 headers macros
forgejo docs edited this page 2026-11-17 18:02:00 +00:00

Headers macros

This file contains the macros that are written in the headers files

Go back to homepage
Skip to files index

Defined in this file

The following 18 macros are referenced in this file

macro PAIRS_H

Go back to top

#define __PAIRS_H__ 1

Defined in src/cl/pairs.h:2

macro STRING_CL_H

Go back to top

#define __STRING_CL_H__ 1

Defined in src/cl/string_cl.h:2

macro CONFIG_H

Go back to top

#define __CONFIG_H__ 1

Defined in src/core/config.h:2

macro MACROS_H

Go back to top

#define __MACROS_H__ 

Defined in src/macros.h:2

macro MAIN_H

Go back to top

#define __MAIN_H__ 1

Defined in src/main.h:2

macro ARGS_H

Go back to top

#define __ARGS_H__ 1

Defined in src/aux/args.h:2

macro TOOLS_H

Go back to top

#define __TOOLS_H__ 1

Defined in src/aux/tools.h:2

macro COMMANDS_H

Go back to top

#define __COMMANDS_H__ 1

Defined in src/commands/commands.h:3

macro SYNC_H

Go back to top

#define __SYNC_H__ 1

Defined in src/commands/sync.h:2

macro CORE_H

Go back to top

#define __CORE_H__ 1

Defined in src/commands/core.h:2

macro CONFIG_MAX_STR_SIZE

Go back to top

#define CONFIG_MAX_STR_SIZE 512

Defined in src/commands/sync.h:4

macro DEFAULT_MIRROR_URL

Go back to top

#define DEFAULT_MIRROR_URL "https:

Defined in src/main.h:9

macro MAX

Go back to top

#define MAX(a, b) (((a) > (b)) ? (a) : (b))

Defined in src/macros.h:4

macro MIN

Go back to top

#define MIN(a, b) (((a) < (b)) ? (a) : (b))

Defined in src/macros.h:5

macro PTREDIT

Go back to top

#define PTREDIT(ptr, val) if (ptr != NULL) (*(ptr)) = val;

Defined in src/macros.h:22

macro PROG_VERSION

Go back to top

#define PROG_VERSION "1.0.1"

Defined in src/main.h:5

macro STRCP

Go back to top

#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

Go back to top

#define SET_PTR_VAL(ptr, val) if (ptr != NULL) *ptr = val;

Defined in src/commands/core.h:4

Indexed files