smokes: add PHI/core/integration tests; parity uses Python LLVM harness; test runner noise filter\nparser: add opt-in TokenCursor bridge (NYASH_PARSER_TOKEN_CURSOR=1) for expressions\nmir: fix PHI incoming preds to use exit blocks; add debug PHI verification\nplugins(net/filebox): warning cleanup (dead_code), no behavior change\ndocs: smokes v2 README – add test accumulation policy and LLVM harness note\nCURRENT_TASK: Phase 15.5 newline refactor resume + plan
This commit is contained in:
@ -8,6 +8,5 @@ use std::collections::HashMap;
|
||||
use std::io::Write as IoWrite;
|
||||
use std::net::TcpStream;
|
||||
use std::sync::Mutex;
|
||||
use std::time::Duration;
|
||||
|
||||
include!("client_impl.rs");
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
use crate::abi::NyashTypeBoxFfi;
|
||||
use crate::consts::*;
|
||||
use crate::ffi::{self, slice};
|
||||
use crate::state::{self, RequestState, ResponseState, SockConnState};
|
||||
use crate::state::{self, RequestState, ResponseState};
|
||||
use crate::tlv;
|
||||
use std::collections::HashMap;
|
||||
use std::io::Write as IoWrite;
|
||||
|
||||
@ -2,12 +2,10 @@ use crate::abi::NyashTypeBoxFfi;
|
||||
use crate::consts::*;
|
||||
use crate::ffi::{self, slice};
|
||||
use crate::http_helpers;
|
||||
use crate::state::{self, ResponseState, SockConnState};
|
||||
use crate::state::{self, ResponseState};
|
||||
use crate::tlv;
|
||||
use std::collections::HashMap;
|
||||
use std::io::Write as IoWrite;
|
||||
use std::net::TcpStream;
|
||||
use std::sync::Mutex;
|
||||
// unused imports removed
|
||||
use std::time::Duration;
|
||||
|
||||
include!("response_impl.rs");
|
||||
|
||||
@ -2,7 +2,7 @@ use crate::abi::NyashTypeBoxFfi;
|
||||
use crate::consts::*;
|
||||
use crate::ffi::{self, slice};
|
||||
use crate::http_helpers;
|
||||
use crate::state::{self, RequestState, ResponseState, ServerState, SockConnState};
|
||||
use crate::state::{self, RequestState, ServerState, SockConnState};
|
||||
use crate::tlv;
|
||||
use std::collections::VecDeque;
|
||||
use std::net::TcpListener;
|
||||
|
||||
@ -66,12 +66,14 @@ pub(crate) static RESPONSE_ID: AtomicU32 = AtomicU32::new(1);
|
||||
pub(crate) static CLIENT_ID: AtomicU32 = AtomicU32::new(1);
|
||||
pub(crate) static SOCK_SERVER_ID: AtomicU32 = AtomicU32::new(1);
|
||||
pub(crate) static SOCK_CONN_ID: AtomicU32 = AtomicU32::new(1);
|
||||
#[allow(dead_code)]
|
||||
pub(crate) static SOCK_CLIENT_ID: AtomicU32 = AtomicU32::new(1);
|
||||
|
||||
pub(crate) static SOCK_SERVERS: Lazy<Mutex<HashMap<u32, SockServerState>>> =
|
||||
Lazy::new(|| Mutex::new(HashMap::new()));
|
||||
pub(crate) static SOCK_CONNS: Lazy<Mutex<HashMap<u32, SockConnState>>> =
|
||||
Lazy::new(|| Mutex::new(HashMap::new()));
|
||||
#[allow(dead_code)]
|
||||
pub(crate) static SOCK_CLIENTS: Lazy<Mutex<HashMap<u32, SockClientState>>> =
|
||||
Lazy::new(|| Mutex::new(HashMap::new()));
|
||||
|
||||
@ -111,6 +113,7 @@ pub(crate) fn next_sock_conn_id() -> u32 {
|
||||
}
|
||||
|
||||
#[inline]
|
||||
#[allow(dead_code)]
|
||||
pub(crate) fn next_sock_client_id() -> u32 {
|
||||
SOCK_CLIENT_ID.fetch_add(1, Ordering::Relaxed)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user