You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the prevailing /** */ style with @param and @return for the function declarations in the minipal headers that used // comments or left them out, keeping the existing wording. No code changes.
Use the prevailing `/** */` style with `@param` and `@return` for the function
declarations in the minipal headers that used `//` comments or left them out,
keeping the existing wording. No code changes.
Azure Pipelines:
Successfully started running 3 pipeline(s).
12 pipeline(s) were filtered out due to trigger conditions.
There may be pipelines that require an authorized user to comment /azp run to run.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Changes recommended
The logging return-value contract needs platform-specific qualification because Android failures can return zero or partial byte counts, not only negative values.
This PR standardizes documentation in the runtime’s minipal native portability headers. Function implementations remain unchanged; the diff also includes documentation clarifications and several header-guard renames.
Changes:
Convert declaration comments to /** */ blocks with @param and @return tags.
Clarify existing platform behavior and API contracts.
Normalize header guards and closing comments.
File
Description
src/native/minipal/xoshiro128pp.h
Clarify zero-seed handling and normalize the closing comment.
src/native/minipal/utf8.h
Correct UTF terminology and document supported conversion flags.
src/native/minipal/time.h
Standardize timer, sleep, and yield documentation.
src/native/minipal/thread.h
Clarify thread-name truncation and WASI process IDs.
src/native/minipal/strings.h
Normalize string documentation and the closing comment.
src/native/minipal/rwlock.h
Add parameter and return documentation for read-write locks.
src/native/minipal/random.h
Document random-buffer parameters and return values.
src/native/minipal/ospagesize.h
Convert page-size documentation to block format.
src/native/minipal/mutex.h
Standardize mutex operation documentation.
src/native/minipal/memorybarrierprocesswide.h
Document memory-barrier operations and rename the header guard.
src/native/minipal/log.h
Document logging destinations, parameters, and return contracts.
src/native/minipal/guid.h
Normalize the header-guard name.
src/native/minipal/environ.h
Standardize environment-variable parameters and return contracts.
src/native/minipal/entrypoints.h
Document entry-point lookup.
src/native/minipal/descriptorlimit.h
Document descriptor-limit behavior and platform exceptions.
src/native/minipal/debugger.h
Normalize the header-guard name.
src/native/minipal/cpuid.h
Add the closing header-guard comment.
src/native/minipal/cpufeatures.h
Document CPU feature detection and Rosetta detection.
src/native/minipal/cpucount.h
Standardize CPU-count documentation.
src/native/minipal/conditionvariable.h
Standardize condition-variable documentation and rename the guard.
src/native/minipal/cgroup.h
Standardize cgroup documentation and clarify platform scope.
The reason will be displayed to describe this comment to others. Learn more.
🔵 Needs a closer look
The Doxygen blocks in src/native/minipal/log.h incorrectly document the severity macros and parameters they do not accept, so they need to be moved immediately before the corresponding function declarations.
No open issues 🎉
1 previously missed issue
In code that hasn't changed since last review
Move Doxygen blocks to the corresponding function declarations
src/native/minipal/log.h:39
These Doxygen blocks precede the severity macros, so they document those macros rather than the functions and describe parameters the macros do not accept. Move each block below its convenience macros, immediately before the corresponding function declaration. The same issue affects minipal_log_vprint, minipal_log_flush, minipal_log_write, and minipal_log_sync at lines 42, 57, 73, and 86.
- Drop the WASI note from minipal_get_current_process_id.
- Document minipal_log_write/sync as async-signal-safe instead of saying
how they are implemented.
- Put the log.h doc comments right before the functions, after the
convenience macros.
- Separate declarations with blank lines.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Use the prevailing
/** */style with@paramand@returnfor the function declarations in the minipal headers that used//comments or left them out, keeping the existing wording. No code changes.