@@ -572,8 +572,7 @@ module.
572
572
C extensions related * primitives* are located in
573
573
`org/ truffleruby/ cext/ CExtNodes . java` file.
574
574
575
- More details about writing a C extensions are provided in the C Extensions Guide
576
- ([https: // github.com/oracle/truffleruby/blob/master/doc/contributor/cexts.md](https://github.com/oracle/truffleruby/blob/master/doc/contributor/cexts.md){.external-link rel="nofollow"}).
575
+ More details about writing a C extensions are provided in the [C Extensions Guide ](cexts. md).
577
576
578
577
## How to define and expose a POSIX system call to Ruby code
579
578
@@ -613,7 +612,7 @@ e.g. this function returns current time in nanoseconds:
613
612
// src/main/c/truffleposix/truffleposix.c
614
613
int64_t truffleposix_clock_gettime(int clock) {
615
614
struct timespec timespec;
616
- int ret = clock_gettime((clockid_t) clock, ×pec );
615
+ int ret = clock_gettime((clockid_t) clock, & timespec );
617
616
if (ret != 0 ) {
618
617
return 0 ;
619
618
}
@@ -832,8 +831,7 @@ Library files):
832
831
# truffleruby_primitives: true
833
832
```
834
833
835
- Naming conventions are described in the Primitives Guide
836
- <https://github.com/oracle/truffleruby/blob/master/doc/contributor/primitives.md>.
834
+ Naming conventions are described in the [Primitives Guide](primitives.md).
837
835
838
836
## How to call Ruby method in Java
839
837
@@ -1196,14 +1194,13 @@ jt -q ruby -e 'puts Truffle::Debug.ast_size([].method(:to_ary))'
1196
1194
1197
1195
## How to update supported Unicode version
1198
1196
1199
- We rely on [JCodings](https://github.com/jruby/jcodings){.external-link rel= " nofollow " } for Unicode/Encoding stuff.
1197
+ We rely on [JCodings](https://github.com/jruby/jcodings) for Unicode/Encoding stuff.
1200
1198
So basically updating Unicode version is just as upgrade of this library
1201
1199
1202
1200
Steps to do:
1203
1201
1204
1202
- choose a proper jcodings version (probably the latest one)
1205
- - Unicode version is hardcoded here
1206
- <https://github.com/jruby/jcodings/blob/jcodings-1.0.58/src/org/jcodings/Config.java>
1203
+ - Unicode version is hardcoded [here](https://github.com/jruby/jcodings/blob/jcodings-1.0.58/src/org/jcodings/Config.java)
1207
1204
- ask for approval to upgrade the third-party component (example Jira ticket: GR-43593)
1208
1205
- upgrade the library ([example PR](https://github.com/oracle/truffleruby/pull/2930))
1209
1206
- Ruby constants `UNICODE_VERSION` and `UNICODE_EMOJI_VERSION` should have a proper value now
@@ -1531,8 +1528,7 @@ jt retag <path-to-MRI-test-file>
1531
1528
If you need to skip the whole file with MRI tests - it should be added
1532
1529
to `test/mri/failing.exclude` file.
1533
1530
1534
- More details are explained in the MRI Tests Guide
1535
- (<https://github.com/oracle/truffleruby/blob/master/doc/contributor/mri-tests.md>).
1531
+ More details are explained in the [MRI Tests Guide](mri-tests.md).
1536
1532
1537
1533
## How to tag slow ruby/spec tests
1538
1534
0 commit comments