Skip to content

Commit ac3ffb0

Browse files
authored
Merge pull request #44 from tahadostifam/master
rename param arr_length->num_values in gcc_jit_context_new_struct_con…
2 parents 3f083c2 + 4ba1964 commit ac3ffb0

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ env:
1212

1313
jobs:
1414
build:
15-
runs-on: ubuntu-22.04
15+
runs-on: ubuntu-24.04
1616
steps:
1717
- uses: actions/checkout@v3
1818
- uses: actions-rs/toolchain@v1
@@ -24,8 +24,8 @@ jobs:
2424

2525
- name: Download and install GCC fork
2626
run: |
27-
curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-13.deb
28-
sudo dpkg --force-overwrite -i gcc-13.deb
27+
curl -LO https://github.com/antoyo/gcc/releases/latest/download/gcc-15.deb
28+
sudo dpkg --force-overwrite -i gcc-15.deb
2929
3030
- name: Set env
3131
run: |

gccjit_sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -588,7 +588,7 @@ extern {
588588

589589
pub fn gcc_jit_lvalue_set_register_name(lvalue: *mut gcc_jit_lvalue, reg_name: *const c_char);
590590

591-
pub fn gcc_jit_context_new_struct_constructor(ctxt: *mut gcc_jit_context, loc: *mut gcc_jit_location, typ: *mut gcc_jit_type, arr_length: c_int, fields: *mut *mut gcc_jit_field, values: *mut *mut gcc_jit_rvalue) -> *mut gcc_jit_rvalue;
591+
pub fn gcc_jit_context_new_struct_constructor(ctxt: *mut gcc_jit_context, loc: *mut gcc_jit_location, typ: *mut gcc_jit_type, num_values: c_int, fields: *mut *mut gcc_jit_field, values: *mut *mut gcc_jit_rvalue) -> *mut gcc_jit_rvalue;
592592
pub fn gcc_jit_context_new_union_constructor(ctxt: *mut gcc_jit_context, loc: *mut gcc_jit_location, typ: *mut gcc_jit_type, field: *mut gcc_jit_field, value: *mut gcc_jit_rvalue) -> *mut gcc_jit_rvalue;
593593
pub fn gcc_jit_context_new_array_constructor(ctxt: *mut gcc_jit_context, loc: *mut gcc_jit_location, typ: *mut gcc_jit_type, arr_length: c_int, values: *mut *mut gcc_jit_rvalue) -> *mut gcc_jit_rvalue;
594594
pub fn gcc_jit_global_set_initializer_rvalue(global: *mut gcc_jit_lvalue, init_value: *mut gcc_jit_rvalue) -> *mut gcc_jit_lvalue;

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ pub use target_info::TargetInfo;
6161

6262
#[cfg(feature="master")]
6363
pub fn set_global_personality_function_name(name: &'static [u8]) {
64-
debug_assert!(name.ends_with(&[b'\0']), "Expecting a NUL-terminated C string");
64+
debug_assert!(name.ends_with(b"\0"), "Expecting a NUL-terminated C string");
6565
unsafe {
6666
gccjit_sys::gcc_jit_set_global_personality_function_name(name.as_ptr() as *const _);
6767
}

0 commit comments

Comments
 (0)