Enable the portable PDF matching primitives in Windows builds
This commit is contained in:
1 parent
2b91828b45
commit
cd891494e9
9 files changed
+6
-28
No files matched your search
@@ -9,7 +9,6 @@ mod native_generated;
|
||||
mod native_host;
|
||||
mod native_job;
|
||||
mod native_preview;
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
mod native_regex;
|
||||
mod native_stream;
|
||||
pub mod rust_typeset;
|
||||
+1
-4
@@ -84,10 +84,7 @@ pub struct CompileRequest {
|
||||
/// internal worker invocation. Call before parsing application arguments, and
|
||||
/// exit with the returned status when the invocation was handled.
|
||||
pub fn dispatch_pdf_regex_worker() -> Option<i32> {
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
return crate::native_regex::dispatch();
|
||||
#[cfg(not(all(target_os = "linux", target_env = "gnu")))]
|
||||
None
|
||||
crate::native_regex::dispatch()
|
||||
}
|
||||
|
||||
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
|
||||
|
||||
@@ -331,13 +331,12 @@ macro_rules! call {
|
||||
}
|
||||
|
||||
impl SourceProvider for RecordingHost<'_> {
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
fn match_pdf_regex(
|
||||
&mut self,
|
||||
request: &texrra_tex_core::execution::RegexRequest,
|
||||
cancellation: Option<&Cancellation>,
|
||||
) -> Result<texrra_tex_core::execution::RegexOutcome, String> {
|
||||
// GNU matching consumes only kernel-supplied bytes and is pinned to
|
||||
// Matching consumes only kernel-supplied bytes and is pinned to
|
||||
// this executable on registered frontends. Its result is kernel state.
|
||||
self.files.match_pdf_regex(request, cancellation)
|
||||
}
|
||||
|
||||
@@ -223,7 +223,6 @@ struct ReplayState {
|
||||
|
||||
pub struct Files {
|
||||
world: FileWorld,
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
regex_worker: Option<crate::native_regex::Worker>,
|
||||
cwd: PathBuf,
|
||||
inputs: BTreeMap<u8, Input>,
|
||||
@@ -627,7 +626,6 @@ impl Files {
|
||||
preparation.phase = HostPreparationPhase::Ready;
|
||||
Ok(Self {
|
||||
world: stored_world.take().unwrap(),
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
regex_worker: None,
|
||||
cwd,
|
||||
inputs: BTreeMap::new(),
|
||||
@@ -1667,7 +1665,6 @@ impl Files {
|
||||
}
|
||||
|
||||
impl SourceProvider for Files {
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
fn match_pdf_regex(
|
||||
&mut self,
|
||||
request: &texrra_tex_core::execution::RegexRequest,
|
||||
|
||||
Reference in new issue
Block a user