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
use std::collections::hash_map::HashMap; | |
struct MyStruct { | |
a: u64, | |
b: u64, | |
} | |
struct Test { | |
counter: u64, | |
map: HashMap<u64, MyStruct>, |
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
#!/usr/bin/python3.5 | |
import glob | |
import re | |
def replace_generator(fn): | |
def replace(match): | |
return '{}\n<!-- file: {} block: {} -->\n'.format(match.group(0), fn, match.group(2)) | |
return replace |