diff options
author | Maria Matejka <mq@ucw.cz> | 2019-07-15 13:19:01 +0200 |
---|---|---|
committer | Maria Matejka <mq@ucw.cz> | 2019-07-15 13:19:01 +0200 |
commit | 0da06b7103a5601fb7c224ab82a6d3799cb55308 (patch) | |
tree | 63cd435ac99bebf05e3a309fa29ce4e9e476e8ac /filter/filter.c | |
parent | 1b9db6d4a7d8ab9f3ada5d21f8f05c3c8bf3c2e2 (diff) |
Filter: lots of documentation
Diffstat (limited to 'filter/filter.c')
-rw-r--r-- | filter/filter.c | 17 |
1 files changed, 5 insertions, 12 deletions
diff --git a/filter/filter.c b/filter/filter.c index 089618f4..0d727449 100644 --- a/filter/filter.c +++ b/filter/filter.c @@ -15,20 +15,13 @@ * the source from user into a tree of &f_inst structures. These trees are * later interpreted using code in |filter/filter.c|. * - * A filter is represented by a tree of &f_inst structures, one structure per - * "instruction". Each &f_inst contains @code, @aux value which is - * usually the data type this instruction operates on and two generic - * arguments (@a[0], @a[1]). Some instructions contain pointer(s) to other - * instructions in their (@a[0], @a[1]) fields. + * A filter is represented by a tree of &f_inst structures, later translated + * into lists called &f_line. All the instructions are defined and documented + * in |filter/f-inst.c| definition file. * * Filters use a &f_val structure for their data. Each &f_val - * contains type and value (types are constants prefixed with %T_). Few - * of the types are special; %T_RETURN can be or-ed with a type to indicate - * that return from a function or from the whole filter should be - * forced. Important thing about &f_val's is that they may be copied - * with a simple |=|. That's fine for all currently defined types: strings - * are read-only (and therefore okay), paths are copied for each - * operation (okay too). + * contains type and value (types are constants prefixed with %T_). + * Look into |filter/data.h| for more information and appropriate calls. */ #undef LOCAL_DEBUG |