fn write_fns<W>(registry: &Registry, dest: &mut W) -> io::Result<()>
where
    W: io::Write,
{
    writeln!(
        dest,
        "
        #[allow(non_snake_case, unused_variables, dead_code)]
        extern \"system\" {{"
    )?;

    for cmd in &registry.cmds {
        writeln!(
            dest,
            "#[link_name=\"{symbol}\"]
            pub fn {name}({params}) -> {return_suffix};",
            symbol = super::gen_symbol_name(registry.api, &cmd.proto.ident),
            name = cmd.proto.ident,
            params = super::gen_parameters(cmd, true, true).join(", "),
            return_suffix = cmd.proto.ty,
        )?;
    }

    writeln!(dest, "}}")
}
/// io::Writes all functions corresponding to the GL bindings.
///
/// These are foreign functions, they don't have any content.
:Writes all functions corresponding to the GL bindings.
These are foreign functions, they don't have any content.
: Writes all functions corresponding to the GL bindings . These are foreign functions they don ' t have any content .
fn write_fns<W>(registry: &Registry, dest: &mut W) -> io::Result<()>
where
    W: io::Write,
{
    writeln!(
        dest,
        "
        #[allow(non_snake_case, unused_variables, dead_code)]
        extern \"system\" {{"
    )?;
    for cmd in &registry.cmds {
        writeln!(
            dest,
            "#[link_name=\"{symbol}\"]
            pub fn {name}({params}) -> {return_suffix};",
            symbol = super::gen_symbol_name(registry.api, &cmd.proto.ident),
            name = cmd.proto.ident,
            params = super::gen_parameters(cmd, true, true).join(", "),
            return_suffix = cmd.proto.ty,
        )?;
    }
    writeln!(dest, "}}")
}
fn write_fns < W > ( registry : & Registry , dest : & mut W ) -> io :: Result < ( ) > where W : io :: Write , { writeln ! ( dest " \" \" " ) ? ; for cmd in & registry . cmds { writeln ! ( dest " \" \" " symbol super gen_symbol_name ( registry api cmd proto ident ) name cmd proto ident params super gen_parameters ( cmd true true ) join ( " " ) return_suffix cmd proto ty ) ? ; } writeln ! ( dest " " ) }
io::Writes all functions corresponding to the GL bindings.
io :: Writes all functions corresponding to the GL bindings .
registry
&Registry
dest
&mut W