Skip to content

refactor: create mud_string.cpp with MUD argument parsing functions (…#3011

Merged
bylins merged 1 commit intomasterfrom
issue.3007-2
Mar 21, 2026
Merged

refactor: create mud_string.cpp with MUD argument parsing functions (…#3011
bylins merged 1 commit intomasterfrom
issue.3007-2

Conversation

@bylins
Copy link
Owner

@bylins bylins commented Mar 21, 2026

#3007)

Move MUD-specific argument parsing from interpreter.cpp to new src/utils/mud_string.cpp:

  • dir_fill/reserved arrays
  • fill_word, reserved_word
  • one_argument (2 overloads + template)
  • any_one_arg (2 overloads + template)
  • two_arguments, three_arguments (templates in .h)
  • SplitArgument (3 overloads)
  • half_chop

All declarations in mud_string.h with Russian comments. utils.h includes mud_string.h for backward compatibility.

…3007)

Move MUD-specific argument parsing from interpreter.cpp to new
src/utils/mud_string.cpp:
- dir_fill/reserved arrays
- fill_word, reserved_word
- one_argument (2 overloads + template)
- any_one_arg (2 overloads + template)
- two_arguments, three_arguments (templates in .h)
- SplitArgument (3 overloads)
- half_chop

All declarations in mud_string.h with Russian comments.
utils.h includes mud_string.h for backward compatibility.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bylins bylins merged commit 5c71363 into master Mar 21, 2026
20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant