mirror of
https://github.com/denoland/deno.git
synced 2025-10-02 07:01:16 +00:00
Use 2 space indent.
Apologies for the churn, but my screen is small. rustfmt assumes big monitors.
This commit is contained in:
parent
a7bf154cb8
commit
21c4b8a42d
4 changed files with 254 additions and 248 deletions
|
@ -10,45 +10,45 @@ use libc::uint32_t;
|
|||
|
||||
#[repr(C)]
|
||||
pub struct DenoC {
|
||||
_unused: [u8; 0],
|
||||
_unused: [u8; 0],
|
||||
}
|
||||
|
||||
#[repr(C)]
|
||||
pub struct deno_buf {
|
||||
alloc_ptr: *mut u8,
|
||||
alloc_len: usize,
|
||||
data_ptr: *mut u8,
|
||||
data_len: usize,
|
||||
alloc_ptr: *mut u8,
|
||||
alloc_len: usize,
|
||||
data_ptr: *mut u8,
|
||||
data_len: usize,
|
||||
}
|
||||
|
||||
type DenoRecvCb = unsafe extern "C" fn(d: *const DenoC, buf: deno_buf);
|
||||
|
||||
extern "C" {
|
||||
pub fn deno_init();
|
||||
pub fn deno_v8_version() -> *const c_char;
|
||||
pub fn deno_set_flags(argc: *mut c_int, argv: *mut *mut c_char);
|
||||
pub fn deno_new(data: *const c_void, cb: DenoRecvCb) -> *const DenoC;
|
||||
pub fn deno_delete(d: *const DenoC);
|
||||
pub fn deno_last_exception(d: *const DenoC) -> *const c_char;
|
||||
pub fn deno_set_response(d: *const DenoC, buf: deno_buf);
|
||||
pub fn deno_execute(
|
||||
d: *const DenoC,
|
||||
js_filename: *const c_char,
|
||||
js_source: *const c_char,
|
||||
) -> c_int;
|
||||
pub fn deno_handle_msg_from_js(d: *const DenoC, buf: deno_buf);
|
||||
pub fn deno_reply_error(
|
||||
d: *const DenoC,
|
||||
cmd_id: uint32_t,
|
||||
msg: *const c_char,
|
||||
);
|
||||
pub fn deno_reply_null(d: *const DenoC, cmd_id: uint32_t);
|
||||
pub fn deno_reply_code_fetch(
|
||||
d: *const DenoC,
|
||||
cmd_id: uint32_t,
|
||||
module_name: *const c_char,
|
||||
filename: *const c_char,
|
||||
source_code: *const c_char,
|
||||
output_code: *const c_char,
|
||||
);
|
||||
pub fn deno_init();
|
||||
pub fn deno_v8_version() -> *const c_char;
|
||||
pub fn deno_set_flags(argc: *mut c_int, argv: *mut *mut c_char);
|
||||
pub fn deno_new(data: *const c_void, cb: DenoRecvCb) -> *const DenoC;
|
||||
pub fn deno_delete(d: *const DenoC);
|
||||
pub fn deno_last_exception(d: *const DenoC) -> *const c_char;
|
||||
pub fn deno_set_response(d: *const DenoC, buf: deno_buf);
|
||||
pub fn deno_execute(
|
||||
d: *const DenoC,
|
||||
js_filename: *const c_char,
|
||||
js_source: *const c_char,
|
||||
) -> c_int;
|
||||
pub fn deno_handle_msg_from_js(d: *const DenoC, buf: deno_buf);
|
||||
pub fn deno_reply_error(
|
||||
d: *const DenoC,
|
||||
cmd_id: uint32_t,
|
||||
msg: *const c_char,
|
||||
);
|
||||
pub fn deno_reply_null(d: *const DenoC, cmd_id: uint32_t);
|
||||
pub fn deno_reply_code_fetch(
|
||||
d: *const DenoC,
|
||||
cmd_id: uint32_t,
|
||||
module_name: *const c_char,
|
||||
filename: *const c_char,
|
||||
source_code: *const c_char,
|
||||
output_code: *const c_char,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue