summaryrefslogtreecommitdiffstats
path: root/INSTALL
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2011-10-15 19:31:33 -0400
committerKaz Kylheku <kaz@kylheku.com>2011-10-15 19:31:33 -0400
commit2c6a2d6730430aefe19b8aa10ddf2fc5fb39f025 (patch)
treebff4310553e4146a03c18fad68ca1627c7de0e0f /INSTALL
parente6fc643b480c519262bb7097c8f2cb50df1a30f8 (diff)
downloadtxr-2c6a2d6730430aefe19b8aa10ddf2fc5fb39f025.tar.gz
txr-2c6a2d6730430aefe19b8aa10ddf2fc5fb39f025.tar.bz2
txr-2c6a2d6730430aefe19b8aa10ddf2fc5fb39f025.zip
Task #11425. Refactoring match_files to make it easier to
break up into subfunctions. Arguments are packaged into a structure, so that subfunctions won't have to all have big argument lists. * match.c (h_directive_table, v_directive_table): New variables. (match_files_ctx): New structure. (mf_all, mf_args, mf_data, mf_spec, mf_spec_bindings): New functions. (match_files): Takes only one argument now, the context structure. data_lineno variable is a dynamic number. Recursive calls to match_files are handled by creating contexts as appropriate with the helper functions. The old local variable data is now part of the context. (syms_init, dir_tables_init): New functions. (match_init): Just calls syms_init and dir_tables_init.
Diffstat (limited to 'INSTALL')
0 files changed, 0 insertions, 0 deletions