Skip to content

Commit

Permalink
docs: fix include paths in examples
Browse files Browse the repository at this point in the history
---
type: pre_commit_static_analysis_report
description: Results of running static analysis checks when committing changes.
report:
  - task: lint_filenames
    status: passed
  - task: lint_editorconfig
    status: passed
  - task: lint_markdown
    status: na
  - task: lint_package_json
    status: na
  - task: lint_repl_help
    status: na
  - task: lint_javascript_src
    status: na
  - task: lint_javascript_cli
    status: na
  - task: lint_javascript_examples
    status: na
  - task: lint_javascript_tests
    status: na
  - task: lint_javascript_benchmarks
    status: na
  - task: lint_python
    status: na
  - task: lint_r
    status: na
  - task: lint_c_src
    status: passed
  - task: lint_c_examples
    status: passed
  - task: lint_c_benchmarks
    status: na
  - task: lint_c_tests_fixtures
    status: na
  - task: lint_shell
    status: na
  - task: lint_typescript_declarations
    status: na
  - task: lint_typescript_tests
    status: na
  - task: lint_license_headers
    status: passed
---
  • Loading branch information
kgryte committed Jan 3, 2025
1 parent 7ef177c commit faa4da3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*/

#include "stdlib/random/base/minstd.h"
#include "stdlib/random/base.h"
#include "stdlib/random/base/shared.h"
#include <stdlib.h>
#include <stdio.h>
#include <inttypes.h>
Expand Down
20 changes: 10 additions & 10 deletions lib/node_modules/@stdlib/random/base/minstd/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,11 @@ static inline void minstd_free( struct BasePRNGObject *obj ) {
* @return pointer to a dynamically allocated PRNG or, if unable to allocate memory, a null pointer
*
* @example
* #include "stdlib/random/base/minstd.h"
* #include "stdlib/random/base/shared.h"
* #include <stdlib.h>
* #include <stdio.h>
* #include <stdint.h>
* #include "stdlib/random/base.h"
* #include "stdlib/random/base/minstd.h"
*
* // Create a PRNG:
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
Expand Down Expand Up @@ -203,11 +203,11 @@ struct BasePRNGObject * stdlib_base_random_minstd_allocate( const int32_t seed )
* @param obj PRNG object
*
* @example
* #include "stdlib/random/base/minstd.h"
* #include "stdlib/random/base/shared.h"
* #include <stdlib.h>
* #include <stdio.h>
* #include <stdint.h>
* #include "stdlib/random/base.h"
* #include "stdlib/random/base/minstd.h"
*
* // Create a PRNG:
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
Expand Down Expand Up @@ -255,11 +255,11 @@ void stdlib_base_random_minstd_free( struct BasePRNGObject *obj ) {
* @return status code
*
* @example
* #include "stdlib/random/base/minstd.h"
* #include "stdlib/random/base/shared.h"
* #include <stdlib.h>
* #include <stdio.h>
* #include <stdint.h>
* #include "stdlib/random/base.h"
* #include "stdlib/random/base/minstd.h"
*
* // Create a PRNG:
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
Expand Down Expand Up @@ -304,11 +304,11 @@ int8_t stdlib_base_random_minstd_seed( const struct BasePRNGObject *obj, int32_t
* @return pointer to a copy of the PRNG's internal state or, if unable to allocate memory, a null pointer
*
* @example
* #include "stdlib/random/base/minstd.h"
* #include "stdlib/random/base/shared.h"
* #include <stdlib.h>
* #include <stdio.h>
* #include <stdint.h>
* #include "stdlib/random/base.h"
* #include "stdlib/random/base/minstd.h"
*
* // Create a PRNG:
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
Expand Down Expand Up @@ -353,11 +353,11 @@ void * stdlib_base_random_minstd_state( const struct BasePRNGObject *obj ) {
* @return status code
*
* @example
* #include "stdlib/random/base/minstd.h"
* #include "stdlib/random/base/shared.h"
* #include <stdlib.h>
* #include <stdio.h>
* #include <stdint.h>
* #include "stdlib/random/base.h"
* #include "stdlib/random/base/minstd.h"
*
* // Create a PRNG:
* struct BasePRNGObject *obj = stdlib_base_random_minstd_allocate( 12345 );
Expand Down

0 comments on commit faa4da3

Please sign in to comment.