smokes: add curated LLVM runner; archive legacy smokes; PHI-off unified across Bridge/Builder; LLVM resolver tracing; minimal Throw lowering; config env getters; dev profile and root cleaner; docs updated; CI workflow runs curated LLVM (PHI-on/off)

This commit is contained in:
Selfhosting Dev
2025-09-16 23:49:36 +09:00
parent 97a76c0571
commit 5c9213cd03
104 changed files with 8094 additions and 2930 deletions

View File

@ -1,7 +1,7 @@
use chrono::{DateTime, Datelike, Timelike, Utc};
use rand::Rng;
use std::ffi::{c_char, c_void, CStr, CString};
use std::ptr;
use chrono::{DateTime, Utc, Datelike, Timelike};
use rand::Rng;
// MathBox構造体
pub struct MathBox {
@ -185,7 +185,7 @@ pub extern "C" fn nyash_time_parse(time_str: *const c_char) -> *mut c_void {
if time_str.is_null() {
return ptr::null_mut();
}
unsafe {
let c_str = CStr::from_ptr(time_str);
if let Ok(rust_str) = c_str.to_str() {
@ -196,7 +196,7 @@ pub extern "C" fn nyash_time_parse(time_str: *const c_char) -> *mut c_void {
}
}
}
ptr::null_mut()
}
@ -217,11 +217,11 @@ pub extern "C" fn nyash_datetime_to_string(ptr: *mut c_void) -> *mut c_char {
if ptr.is_null() {
return ptr::null_mut();
}
unsafe {
let datetime_box = &*(ptr as *mut DateTimeBox);
let datetime_str = datetime_box.datetime.to_rfc3339();
if let Ok(c_string) = CString::new(datetime_str) {
c_string.into_raw()
} else {
@ -325,4 +325,4 @@ pub extern "C" fn nyash_string_free(ptr: *mut c_char) {
unsafe {
let _ = CString::from_raw(ptr);
}
}
}