This file contains hidden or 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
use crate::Result; | |
use nom::number::streaming::le_u32; | |
use std::io::Read; | |
fn stream<Reader, Output, Parser, Error>(mut reader: Reader, parser: Parser) -> Result<<Output as std::borrow::ToOwned>::Owned> | |
where | |
Reader: Read, | |
Output: ToOwned, | |
Parser: for<'input> Fn(&'input [u8]) -> nom::IResult<&'input [u8], Output, Error>, | |
Error: for<'input> nom::error::ParseError<&'input [u8]>, |
This file contains hidden or 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
#!/bin/bash | |
packages=("clang" "lldb" "lld" "clangd") | |
for package in ${packages[@]}; do | |
versions=$(apt-cache search --names-only "^${package}-[0-9]+$" | cut -d' ' -f1 | rev | cut -d'-' -f1 | rev) | |
for version in ${versions}; do | |
if ! dpkg -l "${package}-${version}" > /dev/null 2>&1; then | |
continue | |
fi |