Lines Matching full:for

7 #    - option documentation for Duktape 1.x feature options (DUK_OPT_xxx)
8 # - option documentation for Duktape 1.x/2.x config options (DUK_USE_xxx)
16 # a reasonable starting point for manual duk_config.h tweaking.
18 # For Duktape 1.3 release the main goal was to autogenerate a Duktape 1.2
20 # being experimental. For Duktape 1.4 duk_config.h is always created from
95 # Preferred tag order for option documentation.
107 # Preferred tag order for generated C header files.
160 # but these are not a concrete issue for scanning preprocessor
180 re_line_requires = re.compile(r'(DUK_[A-Z0-9_]+)') # uppercase only, don't match DUK_USE_xxx for e…
183 provides = None # map from define to 'True' for now
184 requires = None # map from define to 'True' for now
190 for line in lines:
199 for k in provides.keys():
203 for k in requires.keys():
207 # for line in stripped_lines: print(line)
209 for line in stripped_lines:
229 for m in matches:
249 for line in f:
254 # XXX: better plumbing for lookup path
266 for s in snippets:
268 for k in s.provides.keys():
270 for k in s.requires.keys():
275 # Helper for building a text file from individual lines, injected files, etc.
351 for line in self.vals:
354 for x in line.lines: # x is a Snippet
373 resolved = [] # for printing only
382 for k in sn.requires.keys():
387 for sn2 in snlist:
403 for sn2 in helper_snippets:
418 for sn in to_add:
423 for sn in snippets:
426 # Figure out fill-ins by looking for snippets not in original
429 for sn in snippets:
434 for sn in snlist:
439 for dep in graph.get(sn, []):
452 for sn in snlist:
469 for k in assumed_provides.keys():
472 for sn in snippets:
474 for k in sn.provides.keys():
476 for k in sn.requires.keys():
487 for line in x.split('\n'):
504 for fn in os.listdir(dirname):
516 for k in dockeys:
519 for k in required_use_meta_keys:
527 for k in keys:
535 for fn in os.listdir(dirname):
547 for k in dockeys:
550 for k in required_opt_meta_keys:
558 for k in keys:
565 for doc in use_defs_list:
566 for tag in doc.get('tags', []):
582 for fn in os.listdir(dirname):
590 for doc in opt_defs_list:
603 for doc in use_defs_list:
617 for req in platform_required_provides:
627 for req in architecture_required_provides:
632 # a fill-in will handle them. This is necessary because for
643 for req in compiler_required_provides:
665 for tag in preferred:
670 for tag in use_tags_list:
678 # XXX: placeholder, need to decide on markup conventions for YAML files
680 for para in text.split('\n'):
707 for c in x:
742 for tag in tags:
745 for doc in opt_list:
776 for doc in opt_list:
793 # Helpers for duk_config.h generation
800 for val in opts.force_options_yaml:
802 for k in doc.keys():
814 # Emit a default #define / #undef for an option based on
838 # verbatim text for the entire line
844 raise Exception('unsupported value for option %s: %r' % (defname, defval))
846 raise Exception('unsupported value for option %s: %r' % (defname, defval))
848 # Add a header snippet for detecting presence of DUK_OPT_xxx feature
851 ret.chdr_block_heading('Checks for legacy feature options (DUK_OPT_xxx)')
855 for doc in get_opt_defs():
858 for doc in get_opt_defs():
859 for dname in doc.get('related_feature_defines', []):
864 for optname in defs:
866 for doc in get_use_defs():
878 # Add a header snippet for checking consistency of DUK_USE_xxx config
881 ret.chdr_block_heading('Checks for config option consistency (DUK_USE_xxx)')
885 for doc in get_use_defs():
890 for optname in defs:
905 for req in doc.get('requires', []):
910 for req in doc.get('conflicts', []):
919 # Add a header snippet for providing a __OVERRIDE_DEFINES__ section.
923 ret.line(' * You may add overriding #define/#undef directives below for')
931 # Add automatic DUK_OPT_XXX and DUK_OPT_NO_XXX handling for backwards
936 for doc in get_use_defs(removed=False, deprecated=False, unused=False):
969 # For some options like DUK_OPT_PACKED_TVAL the default comes
972 print('Skip default for option %s' % config_define)
976 …print('Skip default for option %s (already provided but not flagged in metadata!)' % config_define)
993 # run time options of two headers. This is intended just for genconfig
999 for doc in get_use_defs():
1011 for i in xrange(idx):
1024 # architectures, and compilers. For example, platforms.yaml defines the
1025 # supported platforms and provides a helper define (DUK_F_xxx) to use for
1030 # Automatic "fill ins" are used for mandatory platform, architecture, and
1064 for platf in platforms['autodetect']:
1071 for arch in architectures['autodetect']:
1078 for comp in compilers['autodetect']:
1092 # ways for that to be set:
1103 ret.line('/* configured for DLL build */')
1106 ret.line('/* not configured for DLL build */')
1133 for idx, platf in enumerate(platforms['autodetect']):
1178 for idx, arch in enumerate(architectures['autodetect']):
1217 for idx, comp in enumerate(compilers['autodetect']):
1239 # for this to be automatic (e.g. DUK_F_UCLIBC.h.in could indicate the
1276 ret.chdr_block_heading('Fill-ins for platform, architecture, and compiler')
1315 for doc in get_use_defs(removed=not opts.omit_removed_config_options,
1341 # fill-in for new config options not covered by manual snippets
1346 for doc in get_use_defs(removed=False):
1348 for k in tmp.provides.keys():
1356 for k in need_keys:
1367 for line in opts.fixup_header_lines:
1395 ret.empty() # for trailing newline
1435 for line in f:
1452 …parser.add_option('--output', dest='output', default=None, help='output filename for C header or R…
1453 …parser.add_option('--platform', dest='platform', default=None, help='platform (for "barebones-head…
1454 …parser.add_option('--compiler', dest='compiler', default=None, help='compiler (for "barebones-head…
1455 …parser.add_option('--architecture', dest='architecture', default=None, help='architecture (for "ba…
1460 …check', action='store_true', default=False, help='emit preprocessor checks for config option consi…
1464 …ro', action='store_true', default=False, help='add DUK_ACTIVE_DEFINES macro, for development only')
1466 …allback=add_force_option_define, default=force_options_yaml, help='synonym for --define, e.g. "-DD…
1468 …lback=add_force_option_undefine, default=force_options_yaml, help='synonym for --undefine, e.g. "-…
1471 … help='C header snippet file(s) to be appended to generated header, useful for manual option fixup…
1473 …action='store_false', default=True, help='emit a warning instead of #error for option sanity check…
1520 # user. Support for autogenerated DUK_OPT_xxx flags is also