Skip to content

Commit

Permalink
build: Fix regex patterns of the extractors to match capital letters.
Browse files Browse the repository at this point in the history
* build/generator/extractor.py,
  CMakeLists.txt
  (def file generators): Use 'A-Za-z0-9_' list of allowed symbols instead of 
   'a-z_0-9' for function names.


git-svn-id: https://svn.apache.org/repos/asf/subversion/trunk@1920793 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
rinrab committed Sep 19, 2024
1 parent c630b20 commit 4412fd5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ function(target_exports target_name)
set(def_file_path ${CMAKE_BINARY_DIR}/${target_name}.def)

# see build/generator/extractor.py
set(func_regex "(^|\n)((([A-Za-z0-9_]+|[*]) )+[*]?)?((svn|apr)_[a-z_0-9]+)[ \t\r\n]*\\(")
set(func_regex "(^|\n)((([A-Za-z0-9_]+|[*]) )+[*]?)?((svn|apr)_[A-Za-z0-9_]+)[ \t\r\n]*\\(")

set(defs)
foreach(file ${ARGN})
Expand Down
2 changes: 1 addition & 1 deletion build/generator/extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
# or
# void svn_foo_bar (args)
#
_funcs = re.compile(r'^(?:(?:(?:\w+|\*) )+\*?)?((?:svn|apr)_[a-z_0-9]+)\s*\(', re.M)
_funcs = re.compile(r'^(?:(?:(?:\w+|\*) )+\*?)?((?:svn|apr)_[A-Za-z0-9_]+)\s*\(', re.M)

def extract_funcs(fname):
funcs = [ ]
Expand Down

0 comments on commit 4412fd5

Please sign in to comment.