diff options
author | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-04 08:57:14 -0700 |
---|---|---|
committer | Luke T. Shumaker <lukeshu@lukeshu.com> | 2025-02-09 19:20:07 -0700 |
commit | a25ab8432dcf15d7d43adbc429a7cd9b493b3d91 (patch) | |
tree | 2a933b3e4451e3d82b8f9a779fe9bf3a9a3cf501 /build-aux | |
parent | 4efc7582a255439a574f577272d8be11f6491fe4 (diff) |
lib9p: srv: Use a separate pathmap
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/stack.c.gen | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/build-aux/stack.c.gen b/build-aux/stack.c.gen index 9f2d60f..2a23565 100755 --- a/build-aux/stack.c.gen +++ b/build-aux/stack.c.gen @@ -457,7 +457,9 @@ def main( # 3=just 1 level of subdirectories # 4=just 2 levels of subdirectories # ... - sbc_9p_max_depth = 3 + # + # TODO: Sniff this from config.h + CONFIG_9P_SRV_MAX_DEPTH = 3 def sbc_skip_call(chain: list[str], call: str) -> bool: if ( @@ -468,9 +470,12 @@ def main( ): return True if ( - len(chain) >= sbc_9p_max_depth - and "/srv.c:util_release" in call - and all(("/srv.c:util_release" in c) for c in chain[-sbc_9p_max_depth:]) + len(chain) >= CONFIG_9P_SRV_MAX_DEPTH + and "/srv.c:srv_util_pathfree" in call + and all( + ("/srv.c:srv_util_pathfree" in c) + for c in chain[-CONFIG_9P_SRV_MAX_DEPTH:] + ) ): return True return False |