Lines Matching +full:out +full:- +full:functions
1 # coding=utf-8
21 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
45 """Extract kernel-doc comments from the specified file"""
50 'functions': directives.unchanged_required,
58 cmd = [env.config.kerneldoc_bin, '-rst', '-enable-lineno']
66 tab_width = self.options.get('tab-width', self.state.document.settings.tab_width)
70 cmd += ['-export']
73 cmd += ['-internal']
76 cmd += ['-function', str(self.options.get('doc'))]
77 elif 'functions' in self.options:
78 for f in str(self.options.get('functions')).split():
79 cmd += ['-function', f]
84 cmd += ['-export-file', f]
89 env.app.verbose('calling kernel-doc \'%s\'' % (" ".join(cmd)))
92 out, err = p.communicate()
94 out, err = codecs.decode(out, 'utf-8'), codecs.decode(err, 'utf-8')
99 … env.app.warn('kernel-doc \'%s\' failed with return code %d' % (" ".join(cmd), p.returncode))
100 return [nodes.error(None, nodes.paragraph(text = "kernel-doc missing"))]
104 lines = statemachine.string2lines(out, tab_width, convert_whitespace=True)
108 line_regex = re.compile("^#define LINENO ([0-9]+)$")
113 lineoffset = int(match.group(1)) - 1
131 env.app.warn('kernel-doc \'%s\' processing failed with: %s' %
133 return [nodes.error(None, nodes.paragraph(text = "kernel-doc missing"))]
140 app.add_directive('kernel-doc', KernelDocDirective)