Package libconfix :: Package plugins :: Package c :: Module helper
[show private | hide private]
[frames | no frames]

Module libconfix.plugins.c.helper

Function Summary
  extract_requires(lines)
From lines (a list of strings), extract the possible require-candidates - i.e.
  search_main(lines)

Variable Summary
SRE_Pattern _re_aftstr_main = main["`']
SRE_Pattern _re_befstr_main = ["`']main
SRE_Pattern _re_cpp = ^s*#
SRE_Pattern _re_include = ^\s*#\s*include\s*[<"]\s*(\S+)\s*[>"]
SRE_Pattern _re_main = \bmain\b
SRE_Pattern _re_main_openparen_after = main\s*\(

Function Details

extract_requires(lines)

From lines (a list of strings), extract the possible
require-candidates - i.e. the files which are #include<>d. Return
them as list of strings.

Variable Details

_re_aftstr_main

Type:
SRE_Pattern
Value:
main["`']                                                              

_re_befstr_main

Type:
SRE_Pattern
Value:
["`']main                                                              

_re_cpp

Type:
SRE_Pattern
Value:
^s*#                                                                   

_re_include

Type:
SRE_Pattern
Value:
^\s*#\s*include\s*[<"]\s*(\S+)\s*[>"]                                  

_re_main

Type:
SRE_Pattern
Value:
\bmain\b                                                               

_re_main_openparen_after

Type:
SRE_Pattern
Value:
main\s*\(                                                              

Generated by Epydoc 2.1 on Fri Nov 23 16:56:40 2007 http://epydoc.sf.net