Skip to content

Commit 1493593

Browse files
committed
Rerun cbindgen as needed, and add reminders for next time!
1 parent 9fe378c commit 1493593

8 files changed

Lines changed: 13 additions & 3 deletions

File tree

crates/bridge_core/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@
1414
//!
1515
//! [cbindgen]: https://github.com/eqrion/cbindgen
1616
//!
17+
//! If you change the interfaces here, rerun cbindgen as described in the README!
18+
//!
1719
//! In order to provide access to a C/C++ engine in Rust, you should create some
1820
//! kind of interface that expects to be given a reference to a
1921
//! [`CoreBridgeLauncher`] struct. You should use that struct's

crates/bridge_core/support/tectonic_bridge_core_generated.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ size_t ttbc_input_get_size(ttbc_state_t *es, ttbc_input_handle_t *handle);
262262
/**
263263
* Get the modification time of a Tectonic input file.
264264
*/
265-
time_t ttbc_input_get_mtime(ttbc_state_t *es, ttbc_input_handle_t *handle);
265+
int64_t ttbc_input_get_mtime(ttbc_state_t *es, ttbc_input_handle_t *handle);
266266

267267
/**
268268
* Seek in a Tectonic input stream.

crates/bridge_flate/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
//! This crate provides a few extern "C" functions that expose the functionality
77
//! of the flate2 crate in a C API that can be consumed by other C/C++ code in
88
//! the Tectonic codebase.
9+
//!
10+
//! If you change the interfaces here, rerun cbindgen as described in the README!
911
1012
use flate2::{Compress, Compression, Decompress, FlushCompress, FlushDecompress, Status};
1113
use std::{

crates/engine_bibtex/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@
1616
//!
1717
//! [Tectonic]: https://tectonic-typesetting.github.io/
1818
//! [`tectonic`]: https://docs.rs/tectonic/
19+
//!
20+
//! If you change the interfaces here, rerun cbindgen as described in the README!
1921
2022
use std::ffi::CString;
2123
use tectonic_bridge_core::{CoreBridgeLauncher, EngineAbortedError};

crates/engine_xdvipdfmx/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,8 @@ impl XdvipdfmxEngine {
147147

148148
#[doc(hidden)]
149149
pub mod c_api {
150+
// If you change the interfaces here, rerun cbindgen as described in the README!
151+
150152
use tectonic_bridge_core::CoreBridgeState;
151153

152154
#[derive(Debug)]

crates/engine_xdvipdfmx/xdvipdfmx/xdvipdfmx_bindings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ typedef struct {
1010
const char *paperspec;
1111
unsigned char enable_compression;
1212
unsigned char deterministic_tags;
13-
time_t build_date;
13+
uint64_t build_date;
1414
} XdvipdfmxConfig;
1515

1616
#ifdef __cplusplus

crates/engine_xetex/src/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,8 @@ impl TexEngine {
245245

246246
#[doc(hidden)]
247247
pub mod c_api {
248+
// If you change the interfaces here, rerun cbindgen as described in the README!
249+
248250
use tectonic_bridge_core::CoreBridgeState;
249251

250252
#[allow(improper_ctypes)] // for CoreBridgeState

crates/engine_xetex/xetex/xetex_bindings.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ extern int tt_xetex_set_int_variable(const char *var_name, int value);
2727
extern int tt_engine_xetex_main(ttbc_state_t *api,
2828
const char *dump_name,
2929
const char *input_file_name,
30-
time_t build_date);
30+
uint64_t build_date);
3131

3232
#ifdef __cplusplus
3333
} // extern "C"

0 commit comments

Comments
 (0)