Skip to content

Commit 1467fde

Browse files
committed
docs: fix include paths in examples
--- 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 ---
1 parent faa4da3 commit 1467fde

File tree

2 files changed

+11
-11
lines changed
  • lib/node_modules/@stdlib/random/base/minstd-shuffle

2 files changed

+11
-11
lines changed

lib/node_modules/@stdlib/random/base/minstd-shuffle/examples/c/example.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*/
1818

1919
#include "stdlib/random/base/minstd_shuffle.h"
20-
#include "stdlib/random/base.h"
20+
#include "stdlib/random/base/shared.h"
2121
#include <stdlib.h>
2222
#include <stdio.h>
2323
#include <inttypes.h>

lib/node_modules/@stdlib/random/base/minstd-shuffle/src/main.c

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -182,11 +182,11 @@ static inline int8_t create_table( struct BasePRNGObject *obj, uint32_t *table )
182182
* @return pointer to a dynamically allocated PRNG or, if unable to allocate memory, a null pointer
183183
*
184184
* @example
185+
* #include "stdlib/random/base/minstd_shuffle.h"
186+
* #include "stdlib/random/base/shared.h"
185187
* #include <stdlib.h>
186188
* #include <stdio.h>
187189
* #include <stdint.h>
188-
* #include "stdlib/random/base.h"
189-
* #include "stdlib/random/base/minstd_shuffle.h"
190190
*
191191
* // Create a PRNG:
192192
* struct BasePRNGObject *obj = stdlib_base_random_minstd_shuffle_allocate( 12345 );
@@ -273,11 +273,11 @@ struct BasePRNGObject * stdlib_base_random_minstd_shuffle_allocate( const int32_
273273
* @param obj PRNG object
274274
*
275275
* @example
276+
* #include "stdlib/random/base/minstd_shuffle.h"
277+
* #include "stdlib/random/base/shared.h"
276278
* #include <stdlib.h>
277279
* #include <stdio.h>
278280
* #include <stdint.h>
279-
* #include "stdlib/random/base.h"
280-
* #include "stdlib/random/base/minstd_shuffle.h"
281281
*
282282
* // Create a PRNG:
283283
* struct BasePRNGObject *obj = stdlib_base_random_minstd_shuffle_allocate( 12345 );
@@ -325,11 +325,11 @@ void stdlib_base_random_minstd_shuffle_free( struct BasePRNGObject *obj ) {
325325
* @return status code
326326
*
327327
* @example
328+
* #include "stdlib/random/base/minstd_shuffle.h"
329+
* #include "stdlib/random/base/shared.h"
328330
* #include <stdlib.h>
329331
* #include <stdio.h>
330332
* #include <stdint.h>
331-
* #include "stdlib/random/base.h"
332-
* #include "stdlib/random/base/minstd_shuffle.h"
333333
*
334334
* // Create a PRNG:
335335
* struct BasePRNGObject *obj = stdlib_base_random_minstd_shuffle_allocate( 12345 );
@@ -374,11 +374,11 @@ int8_t stdlib_base_random_minstd_shuffle_seed( const struct BasePRNGObject *obj,
374374
* @return pointer to a copy of the PRNG's internal state or, if unable to allocate memory, a null pointer
375375
*
376376
* @example
377+
* #include "stdlib/random/base/minstd_shuffle.h"
378+
* #include "stdlib/random/base/shared.h"
377379
* #include <stdlib.h>
378380
* #include <stdio.h>
379381
* #include <stdint.h>
380-
* #include "stdlib/random/base.h"
381-
* #include "stdlib/random/base/minstd_shuffle.h"
382382
*
383383
* // Create a PRNG:
384384
* struct BasePRNGObject *obj = stdlib_base_random_minstd_shuffle_allocate( 12345 );
@@ -423,11 +423,11 @@ void * stdlib_base_random_minstd_shuffle_state( const struct BasePRNGObject *obj
423423
* @return status code
424424
*
425425
* @example
426+
* #include "stdlib/random/base/minstd_shuffle.h"
427+
* #include "stdlib/random/base/shared.h"
426428
* #include <stdlib.h>
427429
* #include <stdio.h>
428430
* #include <stdint.h>
429-
* #include "stdlib/random/base.h"
430-
* #include "stdlib/random/base/minstd_shuffle.h"
431431
*
432432
* // Create a PRNG:
433433
* struct BasePRNGObject *obj = stdlib_base_random_minstd_shuffle_allocate( 12345 );

0 commit comments

Comments
 (0)