1
0
Fork 0
forked from wry/wry

autocommit 2022-04-07 17:31:31 CEST

This commit is contained in:
Julian Orth 2022-04-07 17:31:31 +02:00
parent 1d33088dba
commit be32036824
200 changed files with 3267 additions and 2479 deletions

View file

@ -13,10 +13,12 @@
extern crate core;
use std::fs::{File, OpenOptions};
use std::io::BufWriter;
use std::path::PathBuf;
use std::{env, io};
use std::{
env,
fs::{File, OpenOptions},
io::{self, BufWriter},
path::PathBuf,
};
mod egl;
mod enums;

View file

@ -1,6 +1,7 @@
use crate::open;
use std::fmt::Write as FmtWrite;
use std::io::Write;
use {
crate::open,
std::{fmt::Write as FmtWrite, io::Write},
};
fn write_egl_procs<W: Write>(f: &mut W) -> anyhow::Result<()> {
let map = [

View file

@ -1,7 +1,8 @@
use crate::open;
use repc::layout::{Type, TypeVariant};
use std::env;
use std::io::Write;
use {
crate::open,
repc::layout::{Type, TypeVariant},
std::{env, io::Write},
};
#[allow(unused_macros)]
#[macro_use]

View file

@ -1,5 +1,7 @@
use anyhow::{bail, Context, Result};
use bstr::{BStr, BString, ByteSlice};
use {
anyhow::{bail, Context, Result},
bstr::{BStr, BString, ByteSlice},
};
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
pub enum TreeDelim {

View file

@ -1,9 +1,9 @@
use crate::open;
use anyhow::{bail, Context, Result};
use bstr::{BStr, BString, ByteSlice};
use std::fs::DirEntry;
use std::io::Write;
use std::os::unix::ffi::OsStrExt;
use {
crate::open,
anyhow::{bail, Context, Result},
bstr::{BStr, BString, ByteSlice},
std::{fs::DirEntry, io::Write, os::unix::ffi::OsStrExt},
};
#[derive(Copy, Clone, Debug, Eq, PartialEq)]
enum TreeDelim {

View file

@ -1,11 +1,16 @@
use crate::open;
use crate::tokens::{tokenize, Lined, Symbol, Token, TokenKind, TreeDelim};
use anyhow::{bail, Context, Result};
use bstr::{BStr, BString, ByteSlice};
use std::collections::hash_map::Entry;
use std::collections::HashMap;
use std::io::Write;
use std::os::unix::ffi::OsStrExt;
use {
crate::{
open,
tokens::{tokenize, Lined, Symbol, Token, TokenKind, TreeDelim},
},
anyhow::{bail, Context, Result},
bstr::{BStr, BString, ByteSlice},
std::{
collections::{hash_map::Entry, HashMap},
io::Write,
os::unix::ffi::OsStrExt,
},
};
#[derive(Debug)]
enum Type {

View file

@ -1,13 +1,12 @@
use crate::open;
use crate::tokens::{tokenize, Symbol, Token, TokenKind, TreeDelim};
use anyhow::{bail, Context, Result};
use bstr::{BStr, BString, ByteSlice};
use std::cell::Cell;
use std::collections::HashMap;
use std::io::Write;
use std::mem;
use std::os::unix::ffi::OsStrExt;
use std::rc::Rc;
use {
crate::{
open,
tokens::{tokenize, Symbol, Token, TokenKind, TreeDelim},
},
anyhow::{bail, Context, Result},
bstr::{BStr, BString, ByteSlice},
std::{cell::Cell, collections::HashMap, io::Write, mem, os::unix::ffi::OsStrExt, rc::Rc},
};
struct Parser<'a> {
pos: usize,