1 // Format `lazy_static!`.
4 static ref CONFIG_NAME_REGEX: regex::Regex =
5 regex::Regex::new(r"^## `([^`]+)`").expect("Failed creating configuration pattern");
6 static ref CONFIG_VALUE_REGEX: regex::Regex = regex::Regex::new(r#"^#### `"?([^`"]+)"?`"#)
7 .expect("Failed creating configuration value pattern");
10 // We need to be able to format `lazy_static!` without known syntax.
11 lazy_static!(xxx, yyyy, zzzzz);
17 pub static ref Sbase64_encode_string: ::lisp::LispSubrRef = {
18 let subr = ::remacs_sys::Lisp_Subr {
19 header: ::remacs_sys::Lisp_Vectorlike_Header {
20 size: ((::remacs_sys::PseudovecType::PVEC_SUBR as ::libc::ptrdiff_t)
21 << ::remacs_sys::PSEUDOVECTOR_AREA_BITS),
23 function: self::Fbase64_encode_string as *const ::libc::c_void,
26 symbol_name: (b"base64-encode-string\x00").as_ptr() as *const ::libc::c_char,
27 intspec: ::std::ptr::null(),
28 doc: ::std::ptr::null(),
29 lang: ::remacs_sys::Lisp_Subr_Lang_Rust,
32 let ptr = ::remacs_sys::xmalloc(::std::mem::size_of::<::remacs_sys::Lisp_Subr>())
33 as *mut ::remacs_sys::Lisp_Subr;
34 ::std::ptr::copy_nonoverlapping(&subr, ptr, 1);
35 ::std::mem::forget(subr);
36 ::lisp::ExternalPtr::new(ptr)
42 static ref FOO: HashMap<
46 fn(Foo) -> Result<Box<Bar>, Either<FooError, BarError>>