block-coroutine-wrapper.py (e6d3f7a6) block-coroutine-wrapper.py (e2c1c34f)
1#! /usr/bin/env python3
2"""Generate coroutine wrappers for block subsystem.
3
4The program parses one or several concatenated c files from stdin,
5searches for functions with the 'co_wrapper' specifier
6and generates corresponding wrappers on stdout.
7
8Usage: block-coroutine-wrapper.py generated-file.c FILE.[ch]...

--- 28 unchanged lines hidden (view full) ---

37 * File is generated by scripts/block-coroutine-wrapper.py
38 *
39{copyright}
40 */
41
42#include "qemu/osdep.h"
43#include "block/coroutines.h"
44#include "block/block-gen.h"
1#! /usr/bin/env python3
2"""Generate coroutine wrappers for block subsystem.
3
4The program parses one or several concatenated c files from stdin,
5searches for functions with the 'co_wrapper' specifier
6and generates corresponding wrappers on stdout.
7
8Usage: block-coroutine-wrapper.py generated-file.c FILE.[ch]...

--- 28 unchanged lines hidden (view full) ---

37 * File is generated by scripts/block-coroutine-wrapper.py
38 *
39{copyright}
40 */
41
42#include "qemu/osdep.h"
43#include "block/coroutines.h"
44#include "block/block-gen.h"
45#include "block/block_int.h"\
45#include "block/block_int.h"
46#include "block/dirty-bitmap.h"
46"""
47
48
49class ParamDecl:
50 param_re = re.compile(r'(?P<decl>'
51 r'(?P<type>.*[ *])'
52 r'(?P<name>[a-z][a-z0-9_]*)'
53 r')')

--- 182 unchanged lines hidden ---
47"""
48
49
50class ParamDecl:
51 param_re = re.compile(r'(?P<decl>'
52 r'(?P<type>.*[ *])'
53 r'(?P<name>[a-z][a-z0-9_]*)'
54 r')')

--- 182 unchanged lines hidden ---