Skip to content

Review src/common/str.h#220

Merged
janrysavy merged 1 commit intocomments-translation-v2from
codex/common-str-h-review
Apr 2, 2026
Merged

Review src/common/str.h#220
janrysavy merged 1 commit intocomments-translation-v2from
codex/common-str-h-review

Conversation

@janrysavy
Copy link
Copy Markdown
Owner

Review-generated comment translation updates for src/common/str.h.

Artifact:

  • artifacts/src-common-str-h-review-20260401/triple-diff-report.html

Inline review comments include the Czech source and a one-line rationale for each changed block.

// int StrLen(const char *str); // only 2× faster, unnecessary risk of accessing unaligned memory

// copies the text into newly allocated memory, NULL = low memory
// copies the text into newly allocated memory, NULL = out of memory
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// nakopiruje text do nove naalokovaneho prostoru, NULL = malo pameti

Rationale: "low memory" is not idiomatic here; the comment describes an out-of-memory failure signaled by NULL.

// copies the text into newly allocated memory, NULL = low memory,
// additionally sets 'err' to TRUE when memory is insufficient
// copies the text into newly allocated memory, NULL = out of memory,
// also sets 'err' to TRUE on out-of-memory
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// nakopiruje text do nove naalokovaneho prostoru, NULL = malo pameti,
// navic pri nedostatku pameti nastavi 'err' na TRUE

Rationale: The candidate is understandable but uses non-idiomatic failure wording; "out of memory" is the correct technical term in both lines.

// terminates the string with a null character that counts toward 'dstSize'
// appends the 'src' string to the end of the 'dst' string, but does not exceed 'dstSize'
// terminates the string with a null character, which counts toward 'dstSize'
// returns 'dst'
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

// pripoji retezec 'src' za retezec 'dest', ale neprekroci delku 'dstSize'
// retezec zakoncuje nulou, ktera spada do delky 'dstSize'
// vraci 'dst'

Rationale: The candidate incorrectly says 'dest' instead of dst, and "after the string" is less idiomatic than "to the end of".

@janrysavy janrysavy merged commit ac28f39 into comments-translation-v2 Apr 2, 2026
3 checks passed
@janrysavy janrysavy deleted the codex/common-str-h-review branch April 2, 2026 08:46
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.

2 participants