Fun
0.41.5
The programming language that makes You have fun
Main Page
Data Structures
Files
File List
Globals
Loading...
Searching...
No Matches
src
extensions
pcre2.c
Go to the documentation of this file.
1
/*
2
* This file is part of the Fun programming language.
3
* https://fun-lang.xyz/
4
*
5
* Copyright 2025 Johannes Findeisen <you@hanez.org>
6
* Licensed under the terms of the Apache-2.0 license.
7
* https://opensource.org/license/apache-2-0
8
*/
9
17
18
/* Ensure PCRE2 is configured consistently across the whole translation unit.
19
* vm.c includes many opcode implementation .c files; some use PCRE2. For PCRE2
20
* headers to expose the correct typedefs (e.g., pcre2_code, PCRE2_SPTR), the
21
* PCRE2_CODE_UNIT_WIDTH macro must be defined before the first inclusion of
22
* <pcre2.h>. We do this once here when PCRE2 support is enabled. */
23
#ifdef FUN_WITH_PCRE2
24
#ifndef PCRE2_CODE_UNIT_WIDTH
25
#define PCRE2_CODE_UNIT_WIDTH 8
26
#endif
27
#include <pcre2.h>
28
#endif
Generated on
for Fun by
1.16.1