Skip to content

Commit

Permalink
doc: fix out of date documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Aug 28, 2023
1 parent 23758c8 commit 5771534
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 deletions.
2 changes: 1 addition & 1 deletion yara-x/src/scanner/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pub(crate) struct ScanContext<'r> {
pub main_memory: Option<wasmtime::Memory>,
/// The host-side stack of local variables.
///
/// See [`crate::compiler::Context::new_var`] for a more detailed
/// See [`crate::compiler::context::VarStack`] for a more detailed
/// description of what is this, and what "host-side" means in this
/// case.
pub vars_stack: Vec<TypeValue>,
Expand Down
12 changes: 2 additions & 10 deletions yara-x/src/wasm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,16 +501,8 @@ impl_wasm_exported_fn!(WasmExportedFn2 A1 A2);
impl_wasm_exported_fn!(WasmExportedFn3 A1 A2 A3);
impl_wasm_exported_fn!(WasmExportedFn4 A1 A2 A3 A4);

/// Table with functions and variables used by the WASM module.
///
/// The WASM module generated for evaluating rule conditions needs to
/// call back to YARA for multiple tasks. For example, it calls YARA for
/// reporting rule matches, for asking if a pattern matches at a given offset,
/// for executing functions like `uint32()`, etc.
///
/// This table contains the [`FunctionId`] for such functions, which are
/// imported by the WASM module and implemented by YARA. It also
/// contains the definition of some variables used by the module.
/// Table with identifiers of variables and memories shared by the WASM
/// module with the host.
#[derive(Clone)]
pub(crate) struct WasmSymbols {
/// The WASM module's main memory.
Expand Down

0 comments on commit 5771534

Please sign in to comment.