mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
Remove xcode project
This removes the Xcode project and associated headers. A better Xcode project can be generated via CMake: cmake -G Xcode /path/to/fish-shell/
This commit is contained in:
parent
ecb808fb39
commit
9396f79e3e
12 changed files with 0 additions and 4321 deletions
File diff suppressed because it is too large
Load diff
|
@ -1,7 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Workspace
|
|
||||||
version = "1.0">
|
|
||||||
<FileRef
|
|
||||||
location = "self:fish.xcodeproj">
|
|
||||||
</FileRef>
|
|
||||||
</Workspace>
|
|
|
@ -1,8 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>IDEWorkspaceSharedSettings_AutocreateContextsIfNeeded</key>
|
|
||||||
<false/>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
|
@ -1,71 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "0820"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0A084F713B3AC130099B651"
|
|
||||||
BuildableName = "Makefile"
|
|
||||||
BlueprintName = "Makefile"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0A084F713B3AC130099B651"
|
|
||||||
BuildableName = "Makefile"
|
|
||||||
BlueprintName = "Makefile"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
|
@ -1,73 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "0820"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0F019EC15A976F30034B3B1"
|
|
||||||
BuildableName = "base"
|
|
||||||
BlueprintName = "base"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
language = ""
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
language = ""
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0F019EC15A976F30034B3B1"
|
|
||||||
BuildableName = "base"
|
|
||||||
BlueprintName = "base"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
|
@ -1,91 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "0820"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0D02A9915985A75008E62BD"
|
|
||||||
BuildableName = "fish.app"
|
|
||||||
BlueprintName = "fish.app"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0D02A9915985A75008E62BD"
|
|
||||||
BuildableName = "fish.app"
|
|
||||||
BlueprintName = "fish.app"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<BuildableProductRunnable
|
|
||||||
runnableDebuggingMode = "0">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0D02A9915985A75008E62BD"
|
|
||||||
BuildableName = "fish.app"
|
|
||||||
BlueprintName = "fish.app"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildableProductRunnable>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
<BuildableProductRunnable
|
|
||||||
runnableDebuggingMode = "0">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D0D02A9915985A75008E62BD"
|
|
||||||
BuildableName = "fish.app"
|
|
||||||
BlueprintName = "fish.app"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildableProductRunnable>
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
|
@ -1,98 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "0820"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D00769101990137800CA4627"
|
|
||||||
BuildableName = "fish_tests"
|
|
||||||
BlueprintName = "fish_tests"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D00769101990137800CA4627"
|
|
||||||
BuildableName = "fish_tests"
|
|
||||||
BlueprintName = "fish_tests"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<BuildableProductRunnable
|
|
||||||
runnableDebuggingMode = "0">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D00769101990137800CA4627"
|
|
||||||
BuildableName = "fish_tests"
|
|
||||||
BlueprintName = "fish_tests"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildableProductRunnable>
|
|
||||||
<EnvironmentVariables>
|
|
||||||
<EnvironmentVariable
|
|
||||||
key = "RUNNING_IN_XCODE"
|
|
||||||
value = "1"
|
|
||||||
isEnabled = "YES">
|
|
||||||
</EnvironmentVariable>
|
|
||||||
</EnvironmentVariables>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
<BuildableProductRunnable
|
|
||||||
runnableDebuggingMode = "0">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D00769101990137800CA4627"
|
|
||||||
BuildableName = "fish_tests"
|
|
||||||
BlueprintName = "fish_tests"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildableProductRunnable>
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
|
@ -1,73 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<Scheme
|
|
||||||
LastUpgradeVersion = "0820"
|
|
||||||
version = "1.3">
|
|
||||||
<BuildAction
|
|
||||||
parallelizeBuildables = "YES"
|
|
||||||
buildImplicitDependencies = "YES">
|
|
||||||
<BuildActionEntries>
|
|
||||||
<BuildActionEntry
|
|
||||||
buildForTesting = "YES"
|
|
||||||
buildForRunning = "YES"
|
|
||||||
buildForProfiling = "YES"
|
|
||||||
buildForArchiving = "YES"
|
|
||||||
buildForAnalyzing = "YES">
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D07D265615E33B86009E43F6"
|
|
||||||
BuildableName = "install_tree"
|
|
||||||
BlueprintName = "install_tree"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</BuildActionEntry>
|
|
||||||
</BuildActionEntries>
|
|
||||||
</BuildAction>
|
|
||||||
<TestAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
language = ""
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES">
|
|
||||||
<Testables>
|
|
||||||
</Testables>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</TestAction>
|
|
||||||
<LaunchAction
|
|
||||||
buildConfiguration = "Debug"
|
|
||||||
selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
|
|
||||||
selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
|
|
||||||
language = ""
|
|
||||||
launchStyle = "0"
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
ignoresPersistentStateOnLaunch = "NO"
|
|
||||||
debugDocumentVersioning = "YES"
|
|
||||||
debugServiceExtension = "internal"
|
|
||||||
allowLocationSimulation = "YES">
|
|
||||||
<MacroExpansion>
|
|
||||||
<BuildableReference
|
|
||||||
BuildableIdentifier = "primary"
|
|
||||||
BlueprintIdentifier = "D07D265615E33B86009E43F6"
|
|
||||||
BuildableName = "install_tree"
|
|
||||||
BlueprintName = "install_tree"
|
|
||||||
ReferencedContainer = "container:fish.xcodeproj">
|
|
||||||
</BuildableReference>
|
|
||||||
</MacroExpansion>
|
|
||||||
<AdditionalOptions>
|
|
||||||
</AdditionalOptions>
|
|
||||||
</LaunchAction>
|
|
||||||
<ProfileAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
shouldUseLaunchSchemeArgsEnv = "YES"
|
|
||||||
savedToolIdentifier = ""
|
|
||||||
useCustomWorkingDirectory = "NO"
|
|
||||||
debugDocumentVersioning = "YES">
|
|
||||||
</ProfileAction>
|
|
||||||
<AnalyzeAction
|
|
||||||
buildConfiguration = "Debug">
|
|
||||||
</AnalyzeAction>
|
|
||||||
<ArchiveAction
|
|
||||||
buildConfiguration = "Release"
|
|
||||||
revealArchiveInOrganizer = "YES">
|
|
||||||
</ArchiveAction>
|
|
||||||
</Scheme>
|
|
|
@ -1,33 +0,0 @@
|
||||||
<?xml version="1.0" encoding="UTF-8"?>
|
|
||||||
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
||||||
<plist version="1.0">
|
|
||||||
<dict>
|
|
||||||
<key>CFBundleDisplayName</key>
|
|
||||||
<string>fish shell</string>
|
|
||||||
<key>CFBundleExecutable</key>
|
|
||||||
<string>${EXECUTABLE_NAME}</string>
|
|
||||||
<key>CFBundleIconFile</key>
|
|
||||||
<string>fish_term_icon</string>
|
|
||||||
<key>CFBundleIdentifier</key>
|
|
||||||
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
|
||||||
<key>CFBundleInfoDictionaryVersion</key>
|
|
||||||
<string>6.0</string>
|
|
||||||
<key>CFBundleName</key>
|
|
||||||
<string>fish shell</string>
|
|
||||||
<key>CFBundlePackageType</key>
|
|
||||||
<string>APPL</string>
|
|
||||||
<key>CFBundleShortVersionString</key>
|
|
||||||
<string>3.0.0</string>
|
|
||||||
<key>CFBundleVersion</key>
|
|
||||||
<string>0.1</string>
|
|
||||||
<key>LSApplicationCategoryType</key>
|
|
||||||
<string>public.app-category.productivity</string>
|
|
||||||
<key>LSMinimumSystemVersion</key>
|
|
||||||
<string>10.6</string>
|
|
||||||
<key>LSUIElement</key>
|
|
||||||
<true/>
|
|
||||||
<key>NSHumanReadableCopyright</key>
|
|
||||||
<string>Copyright © 2012, ridiculous_fish
|
|
||||||
All rights reserved.</string>
|
|
||||||
</dict>
|
|
||||||
</plist>
|
|
295
osx/config.h
295
osx/config.h
|
@ -1,295 +0,0 @@
|
||||||
/* config.h. Generated from config.h.in by configure. */
|
|
||||||
/* config.h.in. Generated from configure.ac by autoheader. */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `backtrace_symbols' function. */
|
|
||||||
#define HAVE_BACKTRACE_SYMBOLS 1
|
|
||||||
|
|
||||||
/* banana */
|
|
||||||
#define HAVE_BROKEN_WCWIDTH 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `clock_gettime' function. */
|
|
||||||
/* #undef HAVE_CLOCK_GETTIME */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `ctermid_r' function. */
|
|
||||||
#define HAVE_CTERMID_R 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <curses.h> header file. */
|
|
||||||
#define HAVE_CURSES_H 1
|
|
||||||
|
|
||||||
/* define if the compiler supports basic C++11 syntax */
|
|
||||||
#define HAVE_CXX11 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <dirent.h> header file, and it defines `DIR'.
|
|
||||||
*/
|
|
||||||
#define HAVE_DIRENT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `dirfd' function. */
|
|
||||||
#define HAVE_DIRFD 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <execinfo.h> header file. */
|
|
||||||
#define HAVE_EXECINFO_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `flock' function. */
|
|
||||||
#define HAVE_FLOCK 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `futimens' function. */
|
|
||||||
/* #undef HAVE_FUTIMENS */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `futimes' function. */
|
|
||||||
#define HAVE_FUTIMES 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `getifaddrs' function. */
|
|
||||||
#define HAVE_GETIFADDRS 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <getopt.h> header file. */
|
|
||||||
#define HAVE_GETOPT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `getpwent' function. */
|
|
||||||
#define HAVE_GETPWENT 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `gettext' function. */
|
|
||||||
/* #undef HAVE_GETTEXT */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
||||||
#define HAVE_INTTYPES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `killpg' function. */
|
|
||||||
#define HAVE_KILLPG 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <libintl.h> header file. */
|
|
||||||
/* #undef HAVE_LIBINTL_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `lrand48_r' function. */
|
|
||||||
/* #undef HAVE_LRAND48_R */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
|
||||||
#define HAVE_MEMORY_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `mkostemp' function. */
|
|
||||||
/* #undef HAVE_MKOSTEMP */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <ncurses/curses.h> header file. */
|
|
||||||
/* #undef HAVE_NCURSES_CURSES_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <ncurses.h> header file. */
|
|
||||||
#define HAVE_NCURSES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <ncurses/term.h> header file. */
|
|
||||||
/* #undef HAVE_NCURSES_TERM_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <ndir.h> header file, and it defines `DIR'. */
|
|
||||||
/* #undef HAVE_NDIR_H */
|
|
||||||
|
|
||||||
/* Define to 1 if the shm_open() function exists */
|
|
||||||
#define HAVE_SHM_OPEN 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <siginfo.h> header file. */
|
|
||||||
/* #undef HAVE_SIGINFO_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <spawn.h> header file. */
|
|
||||||
#define HAVE_SPAWN_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
|
||||||
#define HAVE_STDINT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
||||||
#define HAVE_STDLIB_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `std::make_unique' function. */
|
|
||||||
/* #undef HAVE_STD__MAKE_UNIQUE */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `std::wcscasecmp' function. */
|
|
||||||
/* #undef HAVE_STD__WCSCASECMP */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `std::wcsdup' function. */
|
|
||||||
/* #undef HAVE_STD__WCSDUP */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `std::wcsncasecmp' function. */
|
|
||||||
/* #undef HAVE_STD__WCSNCASECMP */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
|
||||||
#define HAVE_STRINGS_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
|
||||||
#define HAVE_STRING_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stropts.h> header file. */
|
|
||||||
/* #undef HAVE_STROPTS_H */
|
|
||||||
|
|
||||||
/* Define to 1 if `d_type' is a member of `struct dirent'. */
|
|
||||||
#define HAVE_STRUCT_DIRENT_D_TYPE 1
|
|
||||||
|
|
||||||
/* Define to 1 if `st_ctime_nsec' is a member of `struct stat'. */
|
|
||||||
/* #undef HAVE_STRUCT_STAT_ST_CTIME_NSEC */
|
|
||||||
|
|
||||||
/* Define to 1 if `st_mtimespec.tv_nsec' is a member of `struct stat'. */
|
|
||||||
#define HAVE_STRUCT_STAT_ST_MTIMESPEC_TV_NSEC 1
|
|
||||||
|
|
||||||
/* Define to 1 if `st_mtim.tv_nsec' is a member of `struct stat'. */
|
|
||||||
/* #undef HAVE_STRUCT_STAT_ST_MTIM_TV_NSEC */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/dir.h> header file, and it defines `DIR'.
|
|
||||||
*/
|
|
||||||
/* #undef HAVE_SYS_DIR_H */
|
|
||||||
|
|
||||||
/* Define to 1 if the sys_errlist array is available. */
|
|
||||||
#define HAVE_SYS_ERRLIST 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ioctl.h> header file. */
|
|
||||||
#define HAVE_SYS_IOCTL_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/ndir.h> header file, and it defines `DIR'.
|
|
||||||
*/
|
|
||||||
/* #undef HAVE_SYS_NDIR_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/resource.h> header file. */
|
|
||||||
#define HAVE_SYS_RESOURCE_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/select.h> header file. */
|
|
||||||
#define HAVE_SYS_SELECT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
||||||
#define HAVE_SYS_STAT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/sysctl.h> header file. */
|
|
||||||
#define HAVE_SYS_SYSCTL_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
||||||
#define HAVE_SYS_TYPES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <termios.h> header file. */
|
|
||||||
#define HAVE_TERMIOS_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <term.h> header file. */
|
|
||||||
#define HAVE_TERM_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
|
||||||
#define HAVE_UNISTD_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `wcscasecmp' function. */
|
|
||||||
#define HAVE_WCSCASECMP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `wcsdup' function. */
|
|
||||||
#define HAVE_WCSDUP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `wcslcpy' function. */
|
|
||||||
#define HAVE_WCSLCPY 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `wcsncasecmp' function. */
|
|
||||||
#define HAVE_WCSNCASECMP 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `wcsndup' function. */
|
|
||||||
/* #undef HAVE_WCSNDUP */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `wcstod_l' function. */
|
|
||||||
#define HAVE_WCSTOD_L 1
|
|
||||||
|
|
||||||
/* Define to 1 if the winsize struct and TIOCGWINSZ macro exist */
|
|
||||||
#define HAVE_WINSIZE 1
|
|
||||||
|
|
||||||
/* Define to 1 if the _nl_msg_cat_cntr symbol is exported. */
|
|
||||||
/* #undef HAVE__NL_MSG_CAT_CNTR */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the file `/proc/self/stat'. */
|
|
||||||
/* #undef HAVE__PROC_SELF_STAT */
|
|
||||||
|
|
||||||
/* Define to 1 if the _sys_errs array is available. */
|
|
||||||
/* #undef HAVE__SYS__ERRS */
|
|
||||||
|
|
||||||
/* Define to 1 to disable ncurses macros that conflict with the STL */
|
|
||||||
#define NCURSES_NOMACROS 1
|
|
||||||
|
|
||||||
/* Define to 1 to disable curses macros that conflict with the STL */
|
|
||||||
#define NOMACROS 1
|
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
|
||||||
#define PACKAGE_BUGREPORT "https://github.com/fish-shell/fish-shell/issues"
|
|
||||||
|
|
||||||
/* Define to the full name of this package. */
|
|
||||||
#define PACKAGE_NAME "fish"
|
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
|
||||||
#define PACKAGE_STRING "fish 3.0.0-git"
|
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
|
||||||
#define PACKAGE_TARNAME "fish"
|
|
||||||
|
|
||||||
/* Define to the home page for this package. */
|
|
||||||
#define PACKAGE_URL ""
|
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
|
||||||
#define PACKAGE_VERSION "3.0.0-git"
|
|
||||||
|
|
||||||
/* The size of `wchar_t', as computed by sizeof. */
|
|
||||||
#define SIZEOF_WCHAR_T 4
|
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
|
||||||
#define STDC_HEADERS 1
|
|
||||||
|
|
||||||
/* Define to 1 if tparm accepts a fixed amount of paramters. */
|
|
||||||
/* #undef TPARM_SOLARIS_KLUDGE */
|
|
||||||
|
|
||||||
/* Perform string translations with gettext */
|
|
||||||
/* #undef USE_GETTEXT */
|
|
||||||
|
|
||||||
/* Enable extensions on AIX 3, Interix. */
|
|
||||||
#ifndef _ALL_SOURCE
|
|
||||||
# define _ALL_SOURCE 1
|
|
||||||
#endif
|
|
||||||
/* Enable GNU extensions on systems that have them. */
|
|
||||||
#ifndef _GNU_SOURCE
|
|
||||||
# define _GNU_SOURCE 1
|
|
||||||
#endif
|
|
||||||
/* Enable threading extensions on Solaris. */
|
|
||||||
#ifndef _POSIX_PTHREAD_SEMANTICS
|
|
||||||
# define _POSIX_PTHREAD_SEMANTICS 1
|
|
||||||
#endif
|
|
||||||
/* Enable extensions on HP NonStop. */
|
|
||||||
#ifndef _TANDEM_SOURCE
|
|
||||||
# define _TANDEM_SOURCE 1
|
|
||||||
#endif
|
|
||||||
/* Enable general extensions on Solaris. */
|
|
||||||
#ifndef __EXTENSIONS__
|
|
||||||
# define __EXTENSIONS__ 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
|
|
||||||
/* The size of wchar_t in bits. */
|
|
||||||
#define WCHAR_T_BITS 32
|
|
||||||
|
|
||||||
/* Enable large inode numbers on Mac OS X 10.5. */
|
|
||||||
#ifndef _DARWIN_USE_64_BIT_INODE
|
|
||||||
# define _DARWIN_USE_64_BIT_INODE 1
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Number of bits in a file offset, on hosts where this is settable. */
|
|
||||||
/* #undef _FILE_OFFSET_BITS */
|
|
||||||
|
|
||||||
/* Define for large files, on AIX-style hosts. */
|
|
||||||
/* #undef _LARGE_FILES */
|
|
||||||
|
|
||||||
/* Define to 1 if on MINIX. */
|
|
||||||
/* #undef _MINIX */
|
|
||||||
|
|
||||||
/* Define to 2 if the system does not provide POSIX.1 features except with
|
|
||||||
this defined. */
|
|
||||||
/* #undef _POSIX_1_SOURCE */
|
|
||||||
|
|
||||||
/* Define to 1 if you need to in order for `stat' and other things to work. */
|
|
||||||
/* #undef _POSIX_SOURCE */
|
|
||||||
|
|
||||||
#if __GNUC__ >= 3
|
|
||||||
#ifndef __warn_unused
|
|
||||||
#define __warn_unused __attribute__ ((warn_unused_result))
|
|
||||||
#endif
|
|
||||||
#ifndef __sentinel
|
|
||||||
#define __sentinel __attribute__ ((sentinel))
|
|
||||||
#endif
|
|
||||||
#ifndef __packed
|
|
||||||
#define __packed __attribute__ ((packed))
|
|
||||||
#endif
|
|
||||||
#else
|
|
||||||
#define __warn_unused
|
|
||||||
#define __sentinel
|
|
||||||
#define __packed
|
|
||||||
#endif
|
|
|
@ -1,304 +0,0 @@
|
||||||
/* src/config.h. Generated from config.h.in by configure. */
|
|
||||||
/* src/config.h.in. Generated from configure.ac by autoheader. */
|
|
||||||
|
|
||||||
|
|
||||||
/* PCRE2 is written in Standard C, but there are a few non-standard things it
|
|
||||||
can cope with, allowing it to run on SunOS4 and other "close to standard"
|
|
||||||
systems.
|
|
||||||
|
|
||||||
In environments that support the GNU autotools, config.h.in is converted into
|
|
||||||
config.h by the "configure" script. In environments that use CMake,
|
|
||||||
config-cmake.in is converted into config.h. If you are going to build PCRE2 "by
|
|
||||||
hand" without using "configure" or CMake, you should copy the distributed
|
|
||||||
config.h.generic to config.h, and edit the macro definitions to be the way you
|
|
||||||
need them. You must then add -DHAVE_CONFIG_H to all of your compile commands,
|
|
||||||
so that config.h is included at the start of every source.
|
|
||||||
|
|
||||||
Alternatively, you can avoid editing by using -D on the compiler command line
|
|
||||||
to set the macro values. In this case, you do not have to set -DHAVE_CONFIG_H,
|
|
||||||
but if you do, default values will be taken from config.h for non-boolean
|
|
||||||
macros that are not defined on the command line.
|
|
||||||
|
|
||||||
Boolean macros such as HAVE_STDLIB_H and SUPPORT_PCRE2_8 should either be defined
|
|
||||||
(conventionally to 1) for TRUE, and not defined at all for FALSE. All such
|
|
||||||
macros are listed as a commented #undef in config.h.generic. Macros such as
|
|
||||||
MATCH_LIMIT, whose actual value is relevant, have defaults defined, but are
|
|
||||||
surrounded by #ifndef/#endif lines so that the value can be overridden by -D.
|
|
||||||
|
|
||||||
PCRE2 uses memmove() if HAVE_MEMMOVE is defined; otherwise it uses bcopy() if
|
|
||||||
HAVE_BCOPY is defined. If your system has neither bcopy() nor memmove(), make
|
|
||||||
sure both macros are undefined; an emulation function will then be used. */
|
|
||||||
|
|
||||||
/* By default, the \R escape sequence matches any Unicode line ending
|
|
||||||
character or sequence of characters. If BSR_ANYCRLF is defined (to any
|
|
||||||
value), this is changed so that backslash-R matches only CR, LF, or CRLF.
|
|
||||||
The build-time default can be overridden by the user of PCRE2 at runtime.
|
|
||||||
*/
|
|
||||||
/* #undef BSR_ANYCRLF */
|
|
||||||
|
|
||||||
/* If you are compiling for a system that uses EBCDIC instead of ASCII
|
|
||||||
character codes, define this macro to any value. When EBCDIC is set, PCRE2
|
|
||||||
assumes that all input strings are in EBCDIC. If you do not define this
|
|
||||||
macro, PCRE2 will assume input strings are ASCII or UTF-8/16/32 Unicode. It
|
|
||||||
is not possible to build a version of PCRE2 that supports both EBCDIC and
|
|
||||||
UTF-8/16/32. */
|
|
||||||
/* #undef EBCDIC */
|
|
||||||
|
|
||||||
/* In an EBCDIC environment, define this macro to any value to arrange for the
|
|
||||||
NL character to be 0x25 instead of the default 0x15. NL plays the role that
|
|
||||||
LF does in an ASCII/Unicode environment. */
|
|
||||||
/* #undef EBCDIC_NL25 */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `bcopy' function. */
|
|
||||||
#define HAVE_BCOPY 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <bzlib.h> header file. */
|
|
||||||
#define HAVE_BZLIB_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <dirent.h> header file. */
|
|
||||||
#define HAVE_DIRENT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <dlfcn.h> header file. */
|
|
||||||
#define HAVE_DLFCN_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <editline/readline.h> header file. */
|
|
||||||
/* #undef HAVE_EDITLINE_READLINE_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <edit/readline/readline.h> header file. */
|
|
||||||
/* #undef HAVE_EDIT_READLINE_READLINE_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <inttypes.h> header file. */
|
|
||||||
#define HAVE_INTTYPES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <limits.h> header file. */
|
|
||||||
#define HAVE_LIMITS_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `memmove' function. */
|
|
||||||
#define HAVE_MEMMOVE 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <memory.h> header file. */
|
|
||||||
#define HAVE_MEMORY_H 1
|
|
||||||
|
|
||||||
/* Define if you have POSIX threads libraries and header files. */
|
|
||||||
/* #undef HAVE_PTHREAD */
|
|
||||||
|
|
||||||
/* Have PTHREAD_PRIO_INHERIT. */
|
|
||||||
/* #undef HAVE_PTHREAD_PRIO_INHERIT */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <readline/history.h> header file. */
|
|
||||||
/* #undef HAVE_READLINE_HISTORY_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <readline/readline.h> header file. */
|
|
||||||
/* #undef HAVE_READLINE_READLINE_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdint.h> header file. */
|
|
||||||
#define HAVE_STDINT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <stdlib.h> header file. */
|
|
||||||
#define HAVE_STDLIB_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the `strerror' function. */
|
|
||||||
#define HAVE_STRERROR 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <strings.h> header file. */
|
|
||||||
#define HAVE_STRINGS_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <string.h> header file. */
|
|
||||||
#define HAVE_STRING_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/stat.h> header file. */
|
|
||||||
#define HAVE_SYS_STAT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/types.h> header file. */
|
|
||||||
#define HAVE_SYS_TYPES_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <sys/wait.h> header file. */
|
|
||||||
#define HAVE_SYS_WAIT_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <unistd.h> header file. */
|
|
||||||
#define HAVE_UNISTD_H 1
|
|
||||||
|
|
||||||
/* Define to 1 if the compiler supports simple visibility declarations. */
|
|
||||||
#define HAVE_VISIBILITY 1
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <windows.h> header file. */
|
|
||||||
/* #undef HAVE_WINDOWS_H */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the <zlib.h> header file. */
|
|
||||||
#define HAVE_ZLIB_H 1
|
|
||||||
|
|
||||||
/* PCRE2 uses recursive function calls to handle backtracking while matching.
|
|
||||||
This can sometimes be a problem on systems that have stacks of limited
|
|
||||||
size. Define HEAP_MATCH_RECURSE to any value to get a version that doesn't
|
|
||||||
use recursion in the match() function; instead it creates its own stack by
|
|
||||||
steam using memory from the heap. For more detail, see the comments and
|
|
||||||
other stuff just above the match() function. */
|
|
||||||
/* #undef HEAP_MATCH_RECURSE */
|
|
||||||
|
|
||||||
/* The value of LINK_SIZE determines the number of bytes used to store links
|
|
||||||
as offsets within the compiled regex. The default is 2, which allows for
|
|
||||||
compiled patterns up to 64K long. This covers the vast majority of cases.
|
|
||||||
However, PCRE2 can also be compiled to use 3 or 4 bytes instead. This
|
|
||||||
allows for longer patterns in extreme cases. */
|
|
||||||
#define LINK_SIZE 2
|
|
||||||
|
|
||||||
/* Define to the sub-directory where libtool stores uninstalled libraries. */
|
|
||||||
#define LT_OBJDIR ".libs/"
|
|
||||||
|
|
||||||
/* The value of MATCH_LIMIT determines the default number of times the
|
|
||||||
internal match() function can be called during a single execution of
|
|
||||||
pcre2_match(). There is a runtime interface for setting a different limit.
|
|
||||||
The limit exists in order to catch runaway regular expressions that take
|
|
||||||
for ever to determine that they do not match. The default is set very large
|
|
||||||
so that it does not accidentally catch legitimate cases. */
|
|
||||||
#define MATCH_LIMIT 10000000
|
|
||||||
|
|
||||||
/* The above limit applies to all calls of match(), whether or not they
|
|
||||||
increase the recursion depth. In some environments it is desirable to limit
|
|
||||||
the depth of recursive calls of match() more strictly, in order to restrict
|
|
||||||
the maximum amount of stack (or heap, if HEAP_MATCH_RECURSE is defined)
|
|
||||||
that is used. The value of MATCH_LIMIT_RECURSION applies only to recursive
|
|
||||||
calls of match(). To have any useful effect, it must be less than the value
|
|
||||||
of MATCH_LIMIT. The default is to use the same value as MATCH_LIMIT. There
|
|
||||||
is a runtime method for setting a different limit. */
|
|
||||||
#define MATCH_LIMIT_RECURSION MATCH_LIMIT
|
|
||||||
|
|
||||||
/* This limit is parameterized just in case anybody ever wants to change it.
|
|
||||||
Care must be taken if it is increased, because it guards against integer
|
|
||||||
overflow caused by enormously large patterns. */
|
|
||||||
#define MAX_NAME_COUNT 10000
|
|
||||||
|
|
||||||
/* This limit is parameterized just in case anybody ever wants to change it.
|
|
||||||
Care must be taken if it is increased, because it guards against integer
|
|
||||||
overflow caused by enormously large patterns. */
|
|
||||||
#define MAX_NAME_SIZE 32
|
|
||||||
|
|
||||||
/* Defining NEVER_BACKSLASH_C locks out the use of \C in all patterns. */
|
|
||||||
/* #undef NEVER_BACKSLASH_C */
|
|
||||||
|
|
||||||
/* The value of NEWLINE_DEFAULT determines the default newline character
|
|
||||||
sequence. PCRE2 client programs can override this by selecting other values
|
|
||||||
at run time. The valid values are 1 (CR), 2 (LF), 3 (CRLF), 4 (ANY), and 5
|
|
||||||
(ANYCRLF). */
|
|
||||||
#define NEWLINE_DEFAULT 2
|
|
||||||
|
|
||||||
/* Name of package */
|
|
||||||
#define PACKAGE "pcre2"
|
|
||||||
|
|
||||||
/* Define to the address where bug reports for this package should be sent. */
|
|
||||||
#define PACKAGE_BUGREPORT ""
|
|
||||||
|
|
||||||
/* Define to the full name of this package. */
|
|
||||||
#define PACKAGE_NAME "PCRE2"
|
|
||||||
|
|
||||||
/* Define to the full name and version of this package. */
|
|
||||||
#define PACKAGE_STRING "PCRE2 10.22"
|
|
||||||
|
|
||||||
/* Define to the one symbol short name of this package. */
|
|
||||||
#define PACKAGE_TARNAME "pcre2"
|
|
||||||
|
|
||||||
/* Define to the home page for this package. */
|
|
||||||
#define PACKAGE_URL ""
|
|
||||||
|
|
||||||
/* Define to the version of this package. */
|
|
||||||
#define PACKAGE_VERSION "10.22"
|
|
||||||
|
|
||||||
/* The value of PARENS_NEST_LIMIT specifies the maximum depth of nested
|
|
||||||
parentheses (of any kind) in a pattern. This limits the amount of system
|
|
||||||
stack that is used while compiling a pattern. */
|
|
||||||
#define PARENS_NEST_LIMIT 250
|
|
||||||
|
|
||||||
/* The value of PCRE2GREP_BUFSIZE determines the size of buffer used by
|
|
||||||
pcre2grep to hold parts of the file it is searching. This is also the
|
|
||||||
minimum value. The actual amount of memory used by pcre2grep is three times
|
|
||||||
this number, because it allows for the buffering of "before" and "after"
|
|
||||||
lines. */
|
|
||||||
#define PCRE2GREP_BUFSIZE 20480
|
|
||||||
|
|
||||||
/* to make a symbol visible */
|
|
||||||
#define PCRE2POSIX_EXP_DECL extern __attribute__ ((visibility ("default")))
|
|
||||||
|
|
||||||
/* to make a symbol visible */
|
|
||||||
#define PCRE2POSIX_EXP_DEFN extern __attribute__ ((visibility ("default")))
|
|
||||||
|
|
||||||
/* Define to any value to include debugging code. */
|
|
||||||
/* #undef PCRE2_DEBUG */
|
|
||||||
|
|
||||||
/* to make a symbol visible */
|
|
||||||
#define PCRE2_EXP_DECL extern __attribute__ ((visibility ("default")))
|
|
||||||
|
|
||||||
|
|
||||||
/* If you are compiling for a system other than a Unix-like system or
|
|
||||||
Win32, and it needs some magic to be inserted before the definition
|
|
||||||
of a function that is exported by the library, define this macro to
|
|
||||||
contain the relevant magic. If you do not define this macro, a suitable
|
|
||||||
__declspec value is used for Windows systems; in other environments
|
|
||||||
"extern" is used for a C compiler and "extern C" for a C++ compiler.
|
|
||||||
This macro apears at the start of every exported function that is part
|
|
||||||
of the external API. It does not appear on functions that are "external"
|
|
||||||
in the C sense, but which are internal to the library. */
|
|
||||||
#define PCRE2_EXP_DEFN __attribute__ ((visibility ("default")))
|
|
||||||
|
|
||||||
/* Define to any value if linking statically (TODO: make nice with Libtool) */
|
|
||||||
/* #undef PCRE2_STATIC */
|
|
||||||
|
|
||||||
/* Define to necessary symbol if this constant uses a non-standard name on
|
|
||||||
your system. */
|
|
||||||
/* #undef PTHREAD_CREATE_JOINABLE */
|
|
||||||
|
|
||||||
/* Define to 1 if you have the ANSI C header files. */
|
|
||||||
#define STDC_HEADERS 1
|
|
||||||
|
|
||||||
/* Define to any value to enable support for Just-In-Time compiling. */
|
|
||||||
/* #undef SUPPORT_JIT */
|
|
||||||
|
|
||||||
/* Define to any value to allow pcre2grep to be linked with libbz2, so that it
|
|
||||||
is able to handle .bz2 files. */
|
|
||||||
/* #undef SUPPORT_LIBBZ2 */
|
|
||||||
|
|
||||||
/* Define to any value to allow pcre2test to be linked with libedit. */
|
|
||||||
/* #undef SUPPORT_LIBEDIT */
|
|
||||||
|
|
||||||
/* Define to any value to allow pcre2test to be linked with libreadline. */
|
|
||||||
/* #undef SUPPORT_LIBREADLINE */
|
|
||||||
|
|
||||||
/* Define to any value to allow pcre2grep to be linked with libz, so that it
|
|
||||||
is able to handle .gz files. */
|
|
||||||
/* #undef SUPPORT_LIBZ */
|
|
||||||
|
|
||||||
/* Define to any value to enable callout script support in pcre2grep. */
|
|
||||||
#define SUPPORT_PCRE2GREP_CALLOUT /**/
|
|
||||||
|
|
||||||
/* Define to any value to enable JIT support in pcre2grep. */
|
|
||||||
/* #undef SUPPORT_PCRE2GREP_JIT */
|
|
||||||
|
|
||||||
/* Define to any value to enable the 16 bit PCRE2 library. */
|
|
||||||
/* #undef SUPPORT_PCRE2_16 */
|
|
||||||
|
|
||||||
/* Define to any value to enable the 32 bit PCRE2 library. */
|
|
||||||
/* #undef SUPPORT_PCRE2_32 */
|
|
||||||
|
|
||||||
/* Define to any value to enable the 8 bit PCRE2 library. */
|
|
||||||
#define SUPPORT_PCRE2_8 /**/
|
|
||||||
|
|
||||||
/* Define to any value to enable support for Unicode and UTF encoding. This
|
|
||||||
will work even in an EBCDIC environment, but it is incompatible with the
|
|
||||||
EBCDIC macro. That is, PCRE2 can support *either* EBCDIC code *or*
|
|
||||||
ASCII/Unicode, but not both at once. */
|
|
||||||
#define SUPPORT_UNICODE /**/
|
|
||||||
|
|
||||||
/* Define to any value for valgrind support to find invalid memory reads. */
|
|
||||||
/* #undef SUPPORT_VALGRIND */
|
|
||||||
|
|
||||||
/* Version number of package */
|
|
||||||
#define VERSION "10.22"
|
|
||||||
|
|
||||||
/* Define to empty if `const' does not conform to ANSI C. */
|
|
||||||
/* #undef const */
|
|
||||||
|
|
||||||
/* Define to the type of a signed integer type of width exactly 64 bits if
|
|
||||||
such a type exists and the standard includes do not define it. */
|
|
||||||
/* #undef int64_t */
|
|
||||||
|
|
||||||
/* Define to `unsigned int' if <sys/types.h> does not define. */
|
|
||||||
/* #undef size_t */
|
|
|
@ -1,732 +0,0 @@
|
||||||
/*************************************************
|
|
||||||
* Perl-Compatible Regular Expressions *
|
|
||||||
*************************************************/
|
|
||||||
|
|
||||||
/* This is the public header file for the PCRE library, second API, to be
|
|
||||||
#included by applications that call PCRE2 functions.
|
|
||||||
|
|
||||||
Copyright (c) 2016 University of Cambridge
|
|
||||||
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
Redistribution and use in source and binary forms, with or without
|
|
||||||
modification, are permitted provided that the following conditions are met:
|
|
||||||
|
|
||||||
* Redistributions of source code must retain the above copyright notice,
|
|
||||||
this list of conditions and the following disclaimer.
|
|
||||||
|
|
||||||
* Redistributions in binary form must reproduce the above copyright
|
|
||||||
notice, this list of conditions and the following disclaimer in the
|
|
||||||
documentation and/or other materials provided with the distribution.
|
|
||||||
|
|
||||||
* Neither the name of the University of Cambridge nor the names of its
|
|
||||||
contributors may be used to endorse or promote products derived from
|
|
||||||
this software without specific prior written permission.
|
|
||||||
|
|
||||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
||||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
||||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
||||||
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
|
|
||||||
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
|
|
||||||
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
|
|
||||||
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
|
|
||||||
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
|
|
||||||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
|
||||||
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
|
||||||
POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
-----------------------------------------------------------------------------
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifndef _PCRE2_H
|
|
||||||
#define _PCRE2_H
|
|
||||||
|
|
||||||
/* The current PCRE version information. */
|
|
||||||
|
|
||||||
#define PCRE2_MAJOR 10
|
|
||||||
#define PCRE2_MINOR 22
|
|
||||||
#define PCRE2_PRERELEASE
|
|
||||||
#define PCRE2_DATE 2016-07-29
|
|
||||||
|
|
||||||
/* When an application links to a PCRE DLL in Windows, the symbols that are
|
|
||||||
imported have to be identified as such. When building PCRE2, the appropriate
|
|
||||||
export setting is defined in pcre2_internal.h, which includes this file. So we
|
|
||||||
don't change existing definitions of PCRE2_EXP_DECL. */
|
|
||||||
|
|
||||||
#if defined(_WIN32) && !defined(PCRE2_STATIC)
|
|
||||||
# ifndef PCRE2_EXP_DECL
|
|
||||||
# define PCRE2_EXP_DECL extern __declspec(dllimport)
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* By default, we use the standard "extern" declarations. */
|
|
||||||
|
|
||||||
#ifndef PCRE2_EXP_DECL
|
|
||||||
# ifdef __cplusplus
|
|
||||||
# define PCRE2_EXP_DECL extern "C"
|
|
||||||
# else
|
|
||||||
# define PCRE2_EXP_DECL extern
|
|
||||||
# endif
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* Have to include limits.h, stdlib.h and stdint.h to ensure that size_t and
|
|
||||||
uint8_t, UCHAR_MAX, etc are defined. */
|
|
||||||
|
|
||||||
#include <limits.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdint.h>
|
|
||||||
|
|
||||||
/* Allow for C++ users compiling this directly. */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
extern "C" {
|
|
||||||
#endif
|
|
||||||
|
|
||||||
/* The following option bits can be passed to pcre2_compile(), pcre2_match(),
|
|
||||||
or pcre2_dfa_match(). PCRE2_NO_UTF_CHECK affects only the function to which it
|
|
||||||
is passed. Put these bits at the most significant end of the options word so
|
|
||||||
others can be added next to them */
|
|
||||||
|
|
||||||
#define PCRE2_ANCHORED 0x80000000u
|
|
||||||
#define PCRE2_NO_UTF_CHECK 0x40000000u
|
|
||||||
|
|
||||||
/* The following option bits can be passed only to pcre2_compile(). However,
|
|
||||||
they may affect compilation, JIT compilation, and/or interpretive execution.
|
|
||||||
The following tags indicate which:
|
|
||||||
|
|
||||||
C alters what is compiled by pcre2_compile()
|
|
||||||
J alters what is compiled by pcre2_jit_compile()
|
|
||||||
M is inspected during pcre2_match() execution
|
|
||||||
D is inspected during pcre2_dfa_match() execution
|
|
||||||
*/
|
|
||||||
|
|
||||||
#define PCRE2_ALLOW_EMPTY_CLASS 0x00000001u /* C */
|
|
||||||
#define PCRE2_ALT_BSUX 0x00000002u /* C */
|
|
||||||
#define PCRE2_AUTO_CALLOUT 0x00000004u /* C */
|
|
||||||
#define PCRE2_CASELESS 0x00000008u /* C */
|
|
||||||
#define PCRE2_DOLLAR_ENDONLY 0x00000010u /* J M D */
|
|
||||||
#define PCRE2_DOTALL 0x00000020u /* C */
|
|
||||||
#define PCRE2_DUPNAMES 0x00000040u /* C */
|
|
||||||
#define PCRE2_EXTENDED 0x00000080u /* C */
|
|
||||||
#define PCRE2_FIRSTLINE 0x00000100u /* J M D */
|
|
||||||
#define PCRE2_MATCH_UNSET_BACKREF 0x00000200u /* C J M */
|
|
||||||
#define PCRE2_MULTILINE 0x00000400u /* C */
|
|
||||||
#define PCRE2_NEVER_UCP 0x00000800u /* C */
|
|
||||||
#define PCRE2_NEVER_UTF 0x00001000u /* C */
|
|
||||||
#define PCRE2_NO_AUTO_CAPTURE 0x00002000u /* C */
|
|
||||||
#define PCRE2_NO_AUTO_POSSESS 0x00004000u /* C */
|
|
||||||
#define PCRE2_NO_DOTSTAR_ANCHOR 0x00008000u /* C */
|
|
||||||
#define PCRE2_NO_START_OPTIMIZE 0x00010000u /* J M D */
|
|
||||||
#define PCRE2_UCP 0x00020000u /* C J M D */
|
|
||||||
#define PCRE2_UNGREEDY 0x00040000u /* C */
|
|
||||||
#define PCRE2_UTF 0x00080000u /* C J M D */
|
|
||||||
#define PCRE2_NEVER_BACKSLASH_C 0x00100000u /* C */
|
|
||||||
#define PCRE2_ALT_CIRCUMFLEX 0x00200000u /* J M D */
|
|
||||||
#define PCRE2_ALT_VERBNAMES 0x00400000u /* C */
|
|
||||||
#define PCRE2_USE_OFFSET_LIMIT 0x00800000u /* J M D */
|
|
||||||
|
|
||||||
/* These are for pcre2_jit_compile(). */
|
|
||||||
|
|
||||||
#define PCRE2_JIT_COMPLETE 0x00000001u /* For full matching */
|
|
||||||
#define PCRE2_JIT_PARTIAL_SOFT 0x00000002u
|
|
||||||
#define PCRE2_JIT_PARTIAL_HARD 0x00000004u
|
|
||||||
|
|
||||||
/* These are for pcre2_match(), pcre2_dfa_match(), and pcre2_jit_match(). Note
|
|
||||||
that PCRE2_ANCHORED and PCRE2_NO_UTF_CHECK can also be passed to these
|
|
||||||
functions (though pcre2_jit_match() ignores the latter since it bypasses all
|
|
||||||
sanity checks). */
|
|
||||||
|
|
||||||
#define PCRE2_NOTBOL 0x00000001u
|
|
||||||
#define PCRE2_NOTEOL 0x00000002u
|
|
||||||
#define PCRE2_NOTEMPTY 0x00000004u /* ) These two must be kept */
|
|
||||||
#define PCRE2_NOTEMPTY_ATSTART 0x00000008u /* ) adjacent to each other. */
|
|
||||||
#define PCRE2_PARTIAL_SOFT 0x00000010u
|
|
||||||
#define PCRE2_PARTIAL_HARD 0x00000020u
|
|
||||||
|
|
||||||
/* These are additional options for pcre2_dfa_match(). */
|
|
||||||
|
|
||||||
#define PCRE2_DFA_RESTART 0x00000040u
|
|
||||||
#define PCRE2_DFA_SHORTEST 0x00000080u
|
|
||||||
|
|
||||||
/* These are additional options for pcre2_substitute(), which passes any others
|
|
||||||
through to pcre2_match(). */
|
|
||||||
|
|
||||||
#define PCRE2_SUBSTITUTE_GLOBAL 0x00000100u
|
|
||||||
#define PCRE2_SUBSTITUTE_EXTENDED 0x00000200u
|
|
||||||
#define PCRE2_SUBSTITUTE_UNSET_EMPTY 0x00000400u
|
|
||||||
#define PCRE2_SUBSTITUTE_UNKNOWN_UNSET 0x00000800u
|
|
||||||
#define PCRE2_SUBSTITUTE_OVERFLOW_LENGTH 0x00001000u
|
|
||||||
|
|
||||||
/* A further option for pcre2_match(), not allowed for pcre2_dfa_match(),
|
|
||||||
ignored for pcre2_jit_match(). */
|
|
||||||
|
|
||||||
#define PCRE2_NO_JIT 0x00002000u
|
|
||||||
|
|
||||||
/* Newline and \R settings, for use in compile contexts. The newline values
|
|
||||||
must be kept in step with values set in config.h and both sets must all be
|
|
||||||
greater than zero. */
|
|
||||||
|
|
||||||
#define PCRE2_NEWLINE_CR 1
|
|
||||||
#define PCRE2_NEWLINE_LF 2
|
|
||||||
#define PCRE2_NEWLINE_CRLF 3
|
|
||||||
#define PCRE2_NEWLINE_ANY 4
|
|
||||||
#define PCRE2_NEWLINE_ANYCRLF 5
|
|
||||||
|
|
||||||
#define PCRE2_BSR_UNICODE 1
|
|
||||||
#define PCRE2_BSR_ANYCRLF 2
|
|
||||||
|
|
||||||
/* Error codes: no match and partial match are "expected" errors. */
|
|
||||||
|
|
||||||
#define PCRE2_ERROR_NOMATCH (-1)
|
|
||||||
#define PCRE2_ERROR_PARTIAL (-2)
|
|
||||||
|
|
||||||
/* Error codes for UTF-8 validity checks */
|
|
||||||
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR1 (-3)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR2 (-4)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR3 (-5)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR4 (-6)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR5 (-7)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR6 (-8)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR7 (-9)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR8 (-10)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR9 (-11)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR10 (-12)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR11 (-13)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR12 (-14)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR13 (-15)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR14 (-16)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR15 (-17)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR16 (-18)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR17 (-19)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR18 (-20)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR19 (-21)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR20 (-22)
|
|
||||||
#define PCRE2_ERROR_UTF8_ERR21 (-23)
|
|
||||||
|
|
||||||
/* Error codes for UTF-16 validity checks */
|
|
||||||
|
|
||||||
#define PCRE2_ERROR_UTF16_ERR1 (-24)
|
|
||||||
#define PCRE2_ERROR_UTF16_ERR2 (-25)
|
|
||||||
#define PCRE2_ERROR_UTF16_ERR3 (-26)
|
|
||||||
|
|
||||||
/* Error codes for UTF-32 validity checks */
|
|
||||||
|
|
||||||
#define PCRE2_ERROR_UTF32_ERR1 (-27)
|
|
||||||
#define PCRE2_ERROR_UTF32_ERR2 (-28)
|
|
||||||
|
|
||||||
/* Error codes for pcre2[_dfa]_match(), substring extraction functions, context
|
|
||||||
functions, and serializing functions. They are in numerical order. Originally
|
|
||||||
they were in alphabetical order too, but now that PCRE2 is released, the
|
|
||||||
numbers must not be changed. */
|
|
||||||
|
|
||||||
#define PCRE2_ERROR_BADDATA (-29)
|
|
||||||
#define PCRE2_ERROR_MIXEDTABLES (-30) /* Name was changed */
|
|
||||||
#define PCRE2_ERROR_BADMAGIC (-31)
|
|
||||||
#define PCRE2_ERROR_BADMODE (-32)
|
|
||||||
#define PCRE2_ERROR_BADOFFSET (-33)
|
|
||||||
#define PCRE2_ERROR_BADOPTION (-34)
|
|
||||||
#define PCRE2_ERROR_BADREPLACEMENT (-35)
|
|
||||||
#define PCRE2_ERROR_BADUTFOFFSET (-36)
|
|
||||||
#define PCRE2_ERROR_CALLOUT (-37) /* Never used by PCRE2 itself */
|
|
||||||
#define PCRE2_ERROR_DFA_BADRESTART (-38)
|
|
||||||
#define PCRE2_ERROR_DFA_RECURSE (-39)
|
|
||||||
#define PCRE2_ERROR_DFA_UCOND (-40)
|
|
||||||
#define PCRE2_ERROR_DFA_UFUNC (-41)
|
|
||||||
#define PCRE2_ERROR_DFA_UITEM (-42)
|
|
||||||
#define PCRE2_ERROR_DFA_WSSIZE (-43)
|
|
||||||
#define PCRE2_ERROR_INTERNAL (-44)
|
|
||||||
#define PCRE2_ERROR_JIT_BADOPTION (-45)
|
|
||||||
#define PCRE2_ERROR_JIT_STACKLIMIT (-46)
|
|
||||||
#define PCRE2_ERROR_MATCHLIMIT (-47)
|
|
||||||
#define PCRE2_ERROR_NOMEMORY (-48)
|
|
||||||
#define PCRE2_ERROR_NOSUBSTRING (-49)
|
|
||||||
#define PCRE2_ERROR_NOUNIQUESUBSTRING (-50)
|
|
||||||
#define PCRE2_ERROR_NULL (-51)
|
|
||||||
#define PCRE2_ERROR_RECURSELOOP (-52)
|
|
||||||
#define PCRE2_ERROR_RECURSIONLIMIT (-53)
|
|
||||||
#define PCRE2_ERROR_UNAVAILABLE (-54)
|
|
||||||
#define PCRE2_ERROR_UNSET (-55)
|
|
||||||
#define PCRE2_ERROR_BADOFFSETLIMIT (-56)
|
|
||||||
#define PCRE2_ERROR_BADREPESCAPE (-57)
|
|
||||||
#define PCRE2_ERROR_REPMISSINGBRACE (-58)
|
|
||||||
#define PCRE2_ERROR_BADSUBSTITUTION (-59)
|
|
||||||
#define PCRE2_ERROR_BADSUBSPATTERN (-60)
|
|
||||||
#define PCRE2_ERROR_TOOMANYREPLACE (-61)
|
|
||||||
#define PCRE2_ERROR_BADSERIALIZEDDATA (-62)
|
|
||||||
|
|
||||||
/* Request types for pcre2_pattern_info() */
|
|
||||||
|
|
||||||
#define PCRE2_INFO_ALLOPTIONS 0
|
|
||||||
#define PCRE2_INFO_ARGOPTIONS 1
|
|
||||||
#define PCRE2_INFO_BACKREFMAX 2
|
|
||||||
#define PCRE2_INFO_BSR 3
|
|
||||||
#define PCRE2_INFO_CAPTURECOUNT 4
|
|
||||||
#define PCRE2_INFO_FIRSTCODEUNIT 5
|
|
||||||
#define PCRE2_INFO_FIRSTCODETYPE 6
|
|
||||||
#define PCRE2_INFO_FIRSTBITMAP 7
|
|
||||||
#define PCRE2_INFO_HASCRORLF 8
|
|
||||||
#define PCRE2_INFO_JCHANGED 9
|
|
||||||
#define PCRE2_INFO_JITSIZE 10
|
|
||||||
#define PCRE2_INFO_LASTCODEUNIT 11
|
|
||||||
#define PCRE2_INFO_LASTCODETYPE 12
|
|
||||||
#define PCRE2_INFO_MATCHEMPTY 13
|
|
||||||
#define PCRE2_INFO_MATCHLIMIT 14
|
|
||||||
#define PCRE2_INFO_MAXLOOKBEHIND 15
|
|
||||||
#define PCRE2_INFO_MINLENGTH 16
|
|
||||||
#define PCRE2_INFO_NAMECOUNT 17
|
|
||||||
#define PCRE2_INFO_NAMEENTRYSIZE 18
|
|
||||||
#define PCRE2_INFO_NAMETABLE 19
|
|
||||||
#define PCRE2_INFO_NEWLINE 20
|
|
||||||
#define PCRE2_INFO_RECURSIONLIMIT 21
|
|
||||||
#define PCRE2_INFO_SIZE 22
|
|
||||||
#define PCRE2_INFO_HASBACKSLASHC 23
|
|
||||||
|
|
||||||
/* Request types for pcre2_config(). */
|
|
||||||
|
|
||||||
#define PCRE2_CONFIG_BSR 0
|
|
||||||
#define PCRE2_CONFIG_JIT 1
|
|
||||||
#define PCRE2_CONFIG_JITTARGET 2
|
|
||||||
#define PCRE2_CONFIG_LINKSIZE 3
|
|
||||||
#define PCRE2_CONFIG_MATCHLIMIT 4
|
|
||||||
#define PCRE2_CONFIG_NEWLINE 5
|
|
||||||
#define PCRE2_CONFIG_PARENSLIMIT 6
|
|
||||||
#define PCRE2_CONFIG_RECURSIONLIMIT 7
|
|
||||||
#define PCRE2_CONFIG_STACKRECURSE 8
|
|
||||||
#define PCRE2_CONFIG_UNICODE 9
|
|
||||||
#define PCRE2_CONFIG_UNICODE_VERSION 10
|
|
||||||
#define PCRE2_CONFIG_VERSION 11
|
|
||||||
|
|
||||||
/* Types for code units in patterns and subject strings. */
|
|
||||||
|
|
||||||
typedef uint8_t PCRE2_UCHAR8;
|
|
||||||
typedef uint16_t PCRE2_UCHAR16;
|
|
||||||
typedef uint32_t PCRE2_UCHAR32;
|
|
||||||
|
|
||||||
typedef const PCRE2_UCHAR8 *PCRE2_SPTR8;
|
|
||||||
typedef const PCRE2_UCHAR16 *PCRE2_SPTR16;
|
|
||||||
typedef const PCRE2_UCHAR32 *PCRE2_SPTR32;
|
|
||||||
|
|
||||||
/* The PCRE2_SIZE type is used for all string lengths and offsets in PCRE2,
|
|
||||||
including pattern offsets for errors and subject offsets after a match. We
|
|
||||||
define special values to indicate zero-terminated strings and unset offsets in
|
|
||||||
the offset vector (ovector). */
|
|
||||||
|
|
||||||
#define PCRE2_SIZE size_t
|
|
||||||
#define PCRE2_SIZE_MAX SIZE_MAX
|
|
||||||
#define PCRE2_ZERO_TERMINATED (~(PCRE2_SIZE)0)
|
|
||||||
#define PCRE2_UNSET (~(PCRE2_SIZE)0)
|
|
||||||
|
|
||||||
/* Generic types for opaque structures and JIT callback functions. These
|
|
||||||
declarations are defined in a macro that is expanded for each width later. */
|
|
||||||
|
|
||||||
#define PCRE2_TYPES_LIST \
|
|
||||||
struct pcre2_real_general_context; \
|
|
||||||
typedef struct pcre2_real_general_context pcre2_general_context; \
|
|
||||||
\
|
|
||||||
struct pcre2_real_compile_context; \
|
|
||||||
typedef struct pcre2_real_compile_context pcre2_compile_context; \
|
|
||||||
\
|
|
||||||
struct pcre2_real_match_context; \
|
|
||||||
typedef struct pcre2_real_match_context pcre2_match_context; \
|
|
||||||
\
|
|
||||||
struct pcre2_real_code; \
|
|
||||||
typedef struct pcre2_real_code pcre2_code; \
|
|
||||||
\
|
|
||||||
struct pcre2_real_match_data; \
|
|
||||||
typedef struct pcre2_real_match_data pcre2_match_data; \
|
|
||||||
\
|
|
||||||
struct pcre2_real_jit_stack; \
|
|
||||||
typedef struct pcre2_real_jit_stack pcre2_jit_stack; \
|
|
||||||
\
|
|
||||||
typedef pcre2_jit_stack *(*pcre2_jit_callback)(void *);
|
|
||||||
|
|
||||||
|
|
||||||
/* The structure for passing out data via the pcre_callout_function. We use a
|
|
||||||
structure so that new fields can be added on the end in future versions,
|
|
||||||
without changing the API of the function, thereby allowing old clients to work
|
|
||||||
without modification. Define the generic version in a macro; the width-specific
|
|
||||||
versions are generated from this macro below. */
|
|
||||||
|
|
||||||
#define PCRE2_STRUCTURE_LIST \
|
|
||||||
typedef struct pcre2_callout_block { \
|
|
||||||
uint32_t version; /* Identifies version of block */ \
|
|
||||||
/* ------------------------ Version 0 ------------------------------- */ \
|
|
||||||
uint32_t callout_number; /* Number compiled into pattern */ \
|
|
||||||
uint32_t capture_top; /* Max current capture */ \
|
|
||||||
uint32_t capture_last; /* Most recently closed capture */ \
|
|
||||||
PCRE2_SIZE *offset_vector; /* The offset vector */ \
|
|
||||||
PCRE2_SPTR mark; /* Pointer to current mark or NULL */ \
|
|
||||||
PCRE2_SPTR subject; /* The subject being matched */ \
|
|
||||||
PCRE2_SIZE subject_length; /* The length of the subject */ \
|
|
||||||
PCRE2_SIZE start_match; /* Offset to start of this match attempt */ \
|
|
||||||
PCRE2_SIZE current_position; /* Where we currently are in the subject */ \
|
|
||||||
PCRE2_SIZE pattern_position; /* Offset to next item in the pattern */ \
|
|
||||||
PCRE2_SIZE next_item_length; /* Length of next item in the pattern */ \
|
|
||||||
/* ------------------- Added for Version 1 -------------------------- */ \
|
|
||||||
PCRE2_SIZE callout_string_offset; /* Offset to string within pattern */ \
|
|
||||||
PCRE2_SIZE callout_string_length; /* Length of string compiled into pattern */ \
|
|
||||||
PCRE2_SPTR callout_string; /* String compiled into pattern */ \
|
|
||||||
/* ------------------------------------------------------------------ */ \
|
|
||||||
} pcre2_callout_block; \
|
|
||||||
\
|
|
||||||
typedef struct pcre2_callout_enumerate_block { \
|
|
||||||
uint32_t version; /* Identifies version of block */ \
|
|
||||||
/* ------------------------ Version 0 ------------------------------- */ \
|
|
||||||
PCRE2_SIZE pattern_position; /* Offset to next item in the pattern */ \
|
|
||||||
PCRE2_SIZE next_item_length; /* Length of next item in the pattern */ \
|
|
||||||
uint32_t callout_number; /* Number compiled into pattern */ \
|
|
||||||
PCRE2_SIZE callout_string_offset; /* Offset to string within pattern */ \
|
|
||||||
PCRE2_SIZE callout_string_length; /* Length of string compiled into pattern */ \
|
|
||||||
PCRE2_SPTR callout_string; /* String compiled into pattern */ \
|
|
||||||
/* ------------------------------------------------------------------ */ \
|
|
||||||
} pcre2_callout_enumerate_block;
|
|
||||||
|
|
||||||
|
|
||||||
/* List the generic forms of all other functions in macros, which will be
|
|
||||||
expanded for each width below. Start with functions that give general
|
|
||||||
information. */
|
|
||||||
|
|
||||||
#define PCRE2_GENERAL_INFO_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL int pcre2_config(uint32_t, void *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions for manipulating contexts. */
|
|
||||||
|
|
||||||
#define PCRE2_GENERAL_CONTEXT_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_general_context *pcre2_general_context_copy(pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_general_context *pcre2_general_context_create( \
|
|
||||||
void *(*)(PCRE2_SIZE, void *), \
|
|
||||||
void (*)(void *, void *), void *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_general_context_free(pcre2_general_context *);
|
|
||||||
|
|
||||||
#define PCRE2_COMPILE_CONTEXT_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_compile_context *pcre2_compile_context_copy(pcre2_compile_context *); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_compile_context *pcre2_compile_context_create(pcre2_general_context *);\
|
|
||||||
PCRE2_EXP_DECL void pcre2_compile_context_free(pcre2_compile_context *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_bsr(pcre2_compile_context *, uint32_t); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_character_tables(pcre2_compile_context *, \
|
|
||||||
const unsigned char *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_max_pattern_length(pcre2_compile_context *, \
|
|
||||||
PCRE2_SIZE); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_newline(pcre2_compile_context *, uint32_t); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_parens_nest_limit(pcre2_compile_context *, \
|
|
||||||
uint32_t); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_compile_recursion_guard(\
|
|
||||||
pcre2_compile_context *, int (*)(uint32_t, void *), \
|
|
||||||
void *);
|
|
||||||
|
|
||||||
#define PCRE2_MATCH_CONTEXT_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_match_context *pcre2_match_context_copy(pcre2_match_context *); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_match_context *pcre2_match_context_create(pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_match_context_free(pcre2_match_context *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_callout(pcre2_match_context *, \
|
|
||||||
int (*)(pcre2_callout_block *, void *), void *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_match_limit(pcre2_match_context *, \
|
|
||||||
uint32_t); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_offset_limit(pcre2_match_context *, \
|
|
||||||
PCRE2_SIZE); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_recursion_limit(pcre2_match_context *, \
|
|
||||||
uint32_t); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_set_recursion_memory_management( \
|
|
||||||
pcre2_match_context *, void *(*)(PCRE2_SIZE, void *), \
|
|
||||||
void (*)(void *, void *), void *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions concerned with compiling a pattern to PCRE internal code. */
|
|
||||||
|
|
||||||
#define PCRE2_COMPILE_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_code *pcre2_compile(PCRE2_SPTR, PCRE2_SIZE, uint32_t, \
|
|
||||||
int *, PCRE2_SIZE *, pcre2_compile_context *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_code_free(pcre2_code *); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_code *pcre2_code_copy(const pcre2_code *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions that give information about a compiled pattern. */
|
|
||||||
|
|
||||||
#define PCRE2_PATTERN_INFO_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL int pcre2_pattern_info(const pcre2_code *, uint32_t, \
|
|
||||||
void *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_callout_enumerate(const pcre2_code *, \
|
|
||||||
int (*)(pcre2_callout_enumerate_block *, void *), \
|
|
||||||
void *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions for running a match and inspecting the result. */
|
|
||||||
|
|
||||||
#define PCRE2_MATCH_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_match_data *pcre2_match_data_create(uint32_t, \
|
|
||||||
pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_match_data *pcre2_match_data_create_from_pattern(\
|
|
||||||
const pcre2_code *, \
|
|
||||||
pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_dfa_match(const pcre2_code *, PCRE2_SPTR, \
|
|
||||||
PCRE2_SIZE, PCRE2_SIZE, uint32_t, \
|
|
||||||
pcre2_match_data *, pcre2_match_context *, int *, \
|
|
||||||
PCRE2_SIZE); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_match(const pcre2_code *, \
|
|
||||||
PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, \
|
|
||||||
pcre2_match_data *, pcre2_match_context *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_match_data_free(pcre2_match_data *); \
|
|
||||||
PCRE2_EXP_DECL PCRE2_SPTR pcre2_get_mark(pcre2_match_data *); \
|
|
||||||
PCRE2_EXP_DECL uint32_t pcre2_get_ovector_count(pcre2_match_data *); \
|
|
||||||
PCRE2_EXP_DECL PCRE2_SIZE *pcre2_get_ovector_pointer(pcre2_match_data *); \
|
|
||||||
PCRE2_EXP_DECL PCRE2_SIZE pcre2_get_startchar(pcre2_match_data *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Convenience functions for handling matched substrings. */
|
|
||||||
|
|
||||||
#define PCRE2_SUBSTRING_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_copy_byname(pcre2_match_data *, \
|
|
||||||
PCRE2_SPTR, PCRE2_UCHAR *, PCRE2_SIZE *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_copy_bynumber(pcre2_match_data *, \
|
|
||||||
uint32_t, PCRE2_UCHAR *, PCRE2_SIZE *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_substring_free(PCRE2_UCHAR *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_get_byname(pcre2_match_data *, \
|
|
||||||
PCRE2_SPTR, PCRE2_UCHAR **, PCRE2_SIZE *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_get_bynumber(pcre2_match_data *, \
|
|
||||||
uint32_t, PCRE2_UCHAR **, PCRE2_SIZE *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_length_byname(pcre2_match_data *, \
|
|
||||||
PCRE2_SPTR, PCRE2_SIZE *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_length_bynumber(pcre2_match_data *, \
|
|
||||||
uint32_t, PCRE2_SIZE *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_nametable_scan(const pcre2_code *, \
|
|
||||||
PCRE2_SPTR, PCRE2_SPTR *, PCRE2_SPTR *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_number_from_name(\
|
|
||||||
const pcre2_code *, PCRE2_SPTR); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_substring_list_free(PCRE2_SPTR *); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substring_list_get(pcre2_match_data *, \
|
|
||||||
PCRE2_UCHAR ***, PCRE2_SIZE **);
|
|
||||||
|
|
||||||
/* Functions for serializing / deserializing compiled patterns. */
|
|
||||||
|
|
||||||
#define PCRE2_SERIALIZE_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL int32_t pcre2_serialize_encode(const pcre2_code **, \
|
|
||||||
int32_t, uint8_t **, PCRE2_SIZE *, \
|
|
||||||
pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL int32_t pcre2_serialize_decode(pcre2_code **, int32_t, \
|
|
||||||
const uint8_t *, pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL int32_t pcre2_serialize_get_number_of_codes(const uint8_t *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_serialize_free(uint8_t *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Convenience function for match + substitute. */
|
|
||||||
|
|
||||||
#define PCRE2_SUBSTITUTE_FUNCTION \
|
|
||||||
PCRE2_EXP_DECL int pcre2_substitute(const pcre2_code *, \
|
|
||||||
PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, \
|
|
||||||
pcre2_match_data *, pcre2_match_context *, \
|
|
||||||
PCRE2_SPTR, PCRE2_SIZE, PCRE2_UCHAR *, \
|
|
||||||
PCRE2_SIZE *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions for JIT processing */
|
|
||||||
|
|
||||||
#define PCRE2_JIT_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL int pcre2_jit_compile(pcre2_code *, uint32_t); \
|
|
||||||
PCRE2_EXP_DECL int pcre2_jit_match(const pcre2_code *, \
|
|
||||||
PCRE2_SPTR, PCRE2_SIZE, PCRE2_SIZE, uint32_t, \
|
|
||||||
pcre2_match_data *, pcre2_match_context *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_jit_free_unused_memory(pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
pcre2_jit_stack *pcre2_jit_stack_create(PCRE2_SIZE, PCRE2_SIZE, \
|
|
||||||
pcre2_general_context *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_jit_stack_assign(pcre2_match_context *, \
|
|
||||||
pcre2_jit_callback, void *); \
|
|
||||||
PCRE2_EXP_DECL void pcre2_jit_stack_free(pcre2_jit_stack *);
|
|
||||||
|
|
||||||
|
|
||||||
/* Other miscellaneous functions. */
|
|
||||||
|
|
||||||
#define PCRE2_OTHER_FUNCTIONS \
|
|
||||||
PCRE2_EXP_DECL int pcre2_get_error_message(int, PCRE2_UCHAR *, PCRE2_SIZE); \
|
|
||||||
PCRE2_EXP_DECL \
|
|
||||||
const uint8_t *pcre2_maketables(pcre2_general_context *); \
|
|
||||||
|
|
||||||
|
|
||||||
/* Define macros that generate width-specific names from generic versions. The
|
|
||||||
three-level macro scheme is necessary to get the macros expanded when we want
|
|
||||||
them to be. First we get the width from PCRE2_LOCAL_WIDTH, which is used for
|
|
||||||
generating three versions of everything below. After that, PCRE2_SUFFIX will be
|
|
||||||
re-defined to use PCRE2_CODE_UNIT_WIDTH, for use when macros such as
|
|
||||||
pcre2_compile are called by application code. */
|
|
||||||
|
|
||||||
#define PCRE2_JOIN(a,b) a ## b
|
|
||||||
#define PCRE2_GLUE(a,b) PCRE2_JOIN(a,b)
|
|
||||||
#define PCRE2_SUFFIX(a) PCRE2_GLUE(a,PCRE2_LOCAL_WIDTH)
|
|
||||||
|
|
||||||
|
|
||||||
/* Data types */
|
|
||||||
|
|
||||||
#define PCRE2_UCHAR PCRE2_SUFFIX(PCRE2_UCHAR)
|
|
||||||
#define PCRE2_SPTR PCRE2_SUFFIX(PCRE2_SPTR)
|
|
||||||
|
|
||||||
#define pcre2_code PCRE2_SUFFIX(pcre2_code_)
|
|
||||||
#define pcre2_jit_callback PCRE2_SUFFIX(pcre2_jit_callback_)
|
|
||||||
#define pcre2_jit_stack PCRE2_SUFFIX(pcre2_jit_stack_)
|
|
||||||
|
|
||||||
#define pcre2_real_code PCRE2_SUFFIX(pcre2_real_code_)
|
|
||||||
#define pcre2_real_general_context PCRE2_SUFFIX(pcre2_real_general_context_)
|
|
||||||
#define pcre2_real_compile_context PCRE2_SUFFIX(pcre2_real_compile_context_)
|
|
||||||
#define pcre2_real_match_context PCRE2_SUFFIX(pcre2_real_match_context_)
|
|
||||||
#define pcre2_real_jit_stack PCRE2_SUFFIX(pcre2_real_jit_stack_)
|
|
||||||
#define pcre2_real_match_data PCRE2_SUFFIX(pcre2_real_match_data_)
|
|
||||||
|
|
||||||
|
|
||||||
/* Data blocks */
|
|
||||||
|
|
||||||
#define pcre2_callout_block PCRE2_SUFFIX(pcre2_callout_block_)
|
|
||||||
#define pcre2_callout_enumerate_block PCRE2_SUFFIX(pcre2_callout_enumerate_block_)
|
|
||||||
#define pcre2_general_context PCRE2_SUFFIX(pcre2_general_context_)
|
|
||||||
#define pcre2_compile_context PCRE2_SUFFIX(pcre2_compile_context_)
|
|
||||||
#define pcre2_match_context PCRE2_SUFFIX(pcre2_match_context_)
|
|
||||||
#define pcre2_match_data PCRE2_SUFFIX(pcre2_match_data_)
|
|
||||||
|
|
||||||
|
|
||||||
/* Functions: the complete list in alphabetical order */
|
|
||||||
|
|
||||||
#define pcre2_callout_enumerate PCRE2_SUFFIX(pcre2_callout_enumerate_)
|
|
||||||
#define pcre2_code_copy PCRE2_SUFFIX(pcre2_code_copy_)
|
|
||||||
#define pcre2_code_free PCRE2_SUFFIX(pcre2_code_free_)
|
|
||||||
#define pcre2_compile PCRE2_SUFFIX(pcre2_compile_)
|
|
||||||
#define pcre2_compile_context_copy PCRE2_SUFFIX(pcre2_compile_context_copy_)
|
|
||||||
#define pcre2_compile_context_create PCRE2_SUFFIX(pcre2_compile_context_create_)
|
|
||||||
#define pcre2_compile_context_free PCRE2_SUFFIX(pcre2_compile_context_free_)
|
|
||||||
#define pcre2_config PCRE2_SUFFIX(pcre2_config_)
|
|
||||||
#define pcre2_dfa_match PCRE2_SUFFIX(pcre2_dfa_match_)
|
|
||||||
#define pcre2_general_context_copy PCRE2_SUFFIX(pcre2_general_context_copy_)
|
|
||||||
#define pcre2_general_context_create PCRE2_SUFFIX(pcre2_general_context_create_)
|
|
||||||
#define pcre2_general_context_free PCRE2_SUFFIX(pcre2_general_context_free_)
|
|
||||||
#define pcre2_get_error_message PCRE2_SUFFIX(pcre2_get_error_message_)
|
|
||||||
#define pcre2_get_mark PCRE2_SUFFIX(pcre2_get_mark_)
|
|
||||||
#define pcre2_get_ovector_pointer PCRE2_SUFFIX(pcre2_get_ovector_pointer_)
|
|
||||||
#define pcre2_get_ovector_count PCRE2_SUFFIX(pcre2_get_ovector_count_)
|
|
||||||
#define pcre2_get_startchar PCRE2_SUFFIX(pcre2_get_startchar_)
|
|
||||||
#define pcre2_jit_compile PCRE2_SUFFIX(pcre2_jit_compile_)
|
|
||||||
#define pcre2_jit_match PCRE2_SUFFIX(pcre2_jit_match_)
|
|
||||||
#define pcre2_jit_free_unused_memory PCRE2_SUFFIX(pcre2_jit_free_unused_memory_)
|
|
||||||
#define pcre2_jit_stack_assign PCRE2_SUFFIX(pcre2_jit_stack_assign_)
|
|
||||||
#define pcre2_jit_stack_create PCRE2_SUFFIX(pcre2_jit_stack_create_)
|
|
||||||
#define pcre2_jit_stack_free PCRE2_SUFFIX(pcre2_jit_stack_free_)
|
|
||||||
#define pcre2_maketables PCRE2_SUFFIX(pcre2_maketables_)
|
|
||||||
#define pcre2_match PCRE2_SUFFIX(pcre2_match_)
|
|
||||||
#define pcre2_match_context_copy PCRE2_SUFFIX(pcre2_match_context_copy_)
|
|
||||||
#define pcre2_match_context_create PCRE2_SUFFIX(pcre2_match_context_create_)
|
|
||||||
#define pcre2_match_context_free PCRE2_SUFFIX(pcre2_match_context_free_)
|
|
||||||
#define pcre2_match_data_create PCRE2_SUFFIX(pcre2_match_data_create_)
|
|
||||||
#define pcre2_match_data_create_from_pattern PCRE2_SUFFIX(pcre2_match_data_create_from_pattern_)
|
|
||||||
#define pcre2_match_data_free PCRE2_SUFFIX(pcre2_match_data_free_)
|
|
||||||
#define pcre2_pattern_info PCRE2_SUFFIX(pcre2_pattern_info_)
|
|
||||||
#define pcre2_serialize_decode PCRE2_SUFFIX(pcre2_serialize_decode_)
|
|
||||||
#define pcre2_serialize_encode PCRE2_SUFFIX(pcre2_serialize_encode_)
|
|
||||||
#define pcre2_serialize_free PCRE2_SUFFIX(pcre2_serialize_free_)
|
|
||||||
#define pcre2_serialize_get_number_of_codes PCRE2_SUFFIX(pcre2_serialize_get_number_of_codes_)
|
|
||||||
#define pcre2_set_bsr PCRE2_SUFFIX(pcre2_set_bsr_)
|
|
||||||
#define pcre2_set_callout PCRE2_SUFFIX(pcre2_set_callout_)
|
|
||||||
#define pcre2_set_character_tables PCRE2_SUFFIX(pcre2_set_character_tables_)
|
|
||||||
#define pcre2_set_compile_recursion_guard PCRE2_SUFFIX(pcre2_set_compile_recursion_guard_)
|
|
||||||
#define pcre2_set_match_limit PCRE2_SUFFIX(pcre2_set_match_limit_)
|
|
||||||
#define pcre2_set_max_pattern_length PCRE2_SUFFIX(pcre2_set_max_pattern_length_)
|
|
||||||
#define pcre2_set_newline PCRE2_SUFFIX(pcre2_set_newline_)
|
|
||||||
#define pcre2_set_parens_nest_limit PCRE2_SUFFIX(pcre2_set_parens_nest_limit_)
|
|
||||||
#define pcre2_set_offset_limit PCRE2_SUFFIX(pcre2_set_offset_limit_)
|
|
||||||
#define pcre2_set_recursion_limit PCRE2_SUFFIX(pcre2_set_recursion_limit_)
|
|
||||||
#define pcre2_set_recursion_memory_management PCRE2_SUFFIX(pcre2_set_recursion_memory_management_)
|
|
||||||
#define pcre2_substitute PCRE2_SUFFIX(pcre2_substitute_)
|
|
||||||
#define pcre2_substring_copy_byname PCRE2_SUFFIX(pcre2_substring_copy_byname_)
|
|
||||||
#define pcre2_substring_copy_bynumber PCRE2_SUFFIX(pcre2_substring_copy_bynumber_)
|
|
||||||
#define pcre2_substring_free PCRE2_SUFFIX(pcre2_substring_free_)
|
|
||||||
#define pcre2_substring_get_byname PCRE2_SUFFIX(pcre2_substring_get_byname_)
|
|
||||||
#define pcre2_substring_get_bynumber PCRE2_SUFFIX(pcre2_substring_get_bynumber_)
|
|
||||||
#define pcre2_substring_length_byname PCRE2_SUFFIX(pcre2_substring_length_byname_)
|
|
||||||
#define pcre2_substring_length_bynumber PCRE2_SUFFIX(pcre2_substring_length_bynumber_)
|
|
||||||
#define pcre2_substring_list_get PCRE2_SUFFIX(pcre2_substring_list_get_)
|
|
||||||
#define pcre2_substring_list_free PCRE2_SUFFIX(pcre2_substring_list_free_)
|
|
||||||
#define pcre2_substring_nametable_scan PCRE2_SUFFIX(pcre2_substring_nametable_scan_)
|
|
||||||
#define pcre2_substring_number_from_name PCRE2_SUFFIX(pcre2_substring_number_from_name_)
|
|
||||||
|
|
||||||
|
|
||||||
/* Now generate all three sets of width-specific structures and function
|
|
||||||
prototypes. */
|
|
||||||
|
|
||||||
#define PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS \
|
|
||||||
PCRE2_TYPES_LIST \
|
|
||||||
PCRE2_STRUCTURE_LIST \
|
|
||||||
PCRE2_GENERAL_INFO_FUNCTIONS \
|
|
||||||
PCRE2_GENERAL_CONTEXT_FUNCTIONS \
|
|
||||||
PCRE2_COMPILE_CONTEXT_FUNCTIONS \
|
|
||||||
PCRE2_MATCH_CONTEXT_FUNCTIONS \
|
|
||||||
PCRE2_COMPILE_FUNCTIONS \
|
|
||||||
PCRE2_PATTERN_INFO_FUNCTIONS \
|
|
||||||
PCRE2_MATCH_FUNCTIONS \
|
|
||||||
PCRE2_SUBSTRING_FUNCTIONS \
|
|
||||||
PCRE2_SERIALIZE_FUNCTIONS \
|
|
||||||
PCRE2_SUBSTITUTE_FUNCTION \
|
|
||||||
PCRE2_JIT_FUNCTIONS \
|
|
||||||
PCRE2_OTHER_FUNCTIONS
|
|
||||||
|
|
||||||
#define PCRE2_LOCAL_WIDTH 8
|
|
||||||
PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
|
|
||||||
#undef PCRE2_LOCAL_WIDTH
|
|
||||||
|
|
||||||
#define PCRE2_LOCAL_WIDTH 16
|
|
||||||
PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
|
|
||||||
#undef PCRE2_LOCAL_WIDTH
|
|
||||||
|
|
||||||
#define PCRE2_LOCAL_WIDTH 32
|
|
||||||
PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
|
|
||||||
#undef PCRE2_LOCAL_WIDTH
|
|
||||||
|
|
||||||
/* Undefine the list macros; they are no longer needed. */
|
|
||||||
|
|
||||||
#undef PCRE2_TYPES_LIST
|
|
||||||
#undef PCRE2_STRUCTURE_LIST
|
|
||||||
#undef PCRE2_GENERAL_INFO_FUNCTIONS
|
|
||||||
#undef PCRE2_GENERAL_CONTEXT_FUNCTIONS
|
|
||||||
#undef PCRE2_COMPILE_CONTEXT_FUNCTIONS
|
|
||||||
#undef PCRE2_MATCH_CONTEXT_FUNCTIONS
|
|
||||||
#undef PCRE2_COMPILE_FUNCTIONS
|
|
||||||
#undef PCRE2_PATTERN_INFO_FUNCTIONS
|
|
||||||
#undef PCRE2_MATCH_FUNCTIONS
|
|
||||||
#undef PCRE2_SUBSTRING_FUNCTIONS
|
|
||||||
#undef PCRE2_SERIALIZE_FUNCTIONS
|
|
||||||
#undef PCRE2_SUBSTITUTE_FUNCTION
|
|
||||||
#undef PCRE2_JIT_FUNCTIONS
|
|
||||||
#undef PCRE2_OTHER_FUNCTIONS
|
|
||||||
#undef PCRE2_TYPES_STRUCTURES_AND_FUNCTIONS
|
|
||||||
|
|
||||||
/* PCRE2_CODE_UNIT_WIDTH must be defined. If it is 8, 16, or 32, redefine
|
|
||||||
PCRE2_SUFFIX to use it. If it is 0, undefine the other macros and make
|
|
||||||
PCRE2_SUFFIX a no-op. Otherwise, generate an error. */
|
|
||||||
|
|
||||||
#undef PCRE2_SUFFIX
|
|
||||||
#ifndef PCRE2_CODE_UNIT_WIDTH
|
|
||||||
#error PCRE2_CODE_UNIT_WIDTH must be defined before including pcre2.h.
|
|
||||||
#error Use 8, 16, or 32; or 0 for a multi-width application.
|
|
||||||
#else /* PCRE2_CODE_UNIT_WIDTH is defined */
|
|
||||||
#if PCRE2_CODE_UNIT_WIDTH == 8 || \
|
|
||||||
PCRE2_CODE_UNIT_WIDTH == 16 || \
|
|
||||||
PCRE2_CODE_UNIT_WIDTH == 32
|
|
||||||
#define PCRE2_SUFFIX(a) PCRE2_GLUE(a, PCRE2_CODE_UNIT_WIDTH)
|
|
||||||
#elif PCRE2_CODE_UNIT_WIDTH == 0
|
|
||||||
#undef PCRE2_JOIN
|
|
||||||
#undef PCRE2_GLUE
|
|
||||||
#define PCRE2_SUFFIX(a) a
|
|
||||||
#else
|
|
||||||
#error PCRE2_CODE_UNIT_WIDTH must be 0, 8, 16, or 32.
|
|
||||||
#endif
|
|
||||||
#endif /* PCRE2_CODE_UNIT_WIDTH is defined */
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
|
||||||
} /* extern "C" */
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#endif /* End of pcre2.h */
|
|
Loading…
Reference in a new issue