-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from mahkoh/jorth/unstable
all: remove extern_types feature
- Loading branch information
Showing
26 changed files
with
215 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ tasks: | |
rustup toolchain install stable | ||
- build: | | ||
cd jay | ||
export RUSTC_BOOTSTRAP=1 | ||
cargo build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,5 +8,4 @@ tasks: | |
rustup toolchain install stable | ||
- test: | | ||
cd jay | ||
export RUSTC_BOOTSTRAP=1 | ||
cargo test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
pub fn main() -> anyhow::Result<()> { | ||
println!("cargo:rerun-if-changed=src/bridge.c"); | ||
cc::Build::new().file("src/bridge.c").compile("bridge"); | ||
Ok(()) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
#define _GNU_SOURCE | ||
|
||
#include <stdarg.h> | ||
#include <stdio.h> | ||
#include <stdlib.h> | ||
|
||
static char *fmt(const char *format, va_list args) { | ||
char *line; | ||
int ret = vasprintf(&line, format, args); | ||
if (ret < 0) { | ||
return 0; | ||
} else { | ||
return line; | ||
} | ||
} | ||
|
||
void jay_libinput_log_handler( | ||
void *libinput, | ||
int priority, | ||
const char *line | ||
); | ||
|
||
void jay_libinput_log_handler_bridge( | ||
void *libinput, | ||
int priority, | ||
const char *format, | ||
va_list args | ||
) { | ||
char *line = fmt(format, args); | ||
jay_libinput_log_handler(libinput, priority, line); | ||
free(line); | ||
} | ||
|
||
void jay_xkbcommon_log_handler( | ||
void *ctx, | ||
int xkb_log_level, | ||
const char *line | ||
); | ||
|
||
void jay_xkbcommon_log_handler_bridge( | ||
void *ctx, | ||
int xkb_log_level, | ||
const char *format, | ||
va_list args | ||
) { | ||
char *line = fmt(format, args); | ||
jay_xkbcommon_log_handler(ctx, xkb_log_level, line); | ||
free(line); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.