| 997 | } |
| 998 | |
| 999 | static LIST * apply_modifiers_empty( LIST * result, string * buf, |
| 1000 | VAR_EDITS * edits, int n ) |
| 1001 | { |
| 1002 | int i; |
| 1003 | for ( i = 0; i < n; ++i ) |
| 1004 | { |
| 1005 | if ( edits[ i ].empty.ptr ) |
| 1006 | { |
| 1007 | /** FIXME: is empty.ptr always null-terminated? */ |
| 1008 | var_edit_file( edits[ i ].empty.ptr, buf, edits + i ); |
| 1009 | var_edit_shift( buf, 0, edits + i ); |
| 1010 | result = list_push_back( result, object_new( buf->value ) ); |
| 1011 | string_truncate( buf, 0 ); |
| 1012 | } |
| 1013 | } |
| 1014 | return result; |
| 1015 | } |
| 1016 | |
| 1017 | static LIST * apply_modifiers_non_empty( LIST * result, string * buf, |
| 1018 | VAR_EDITS * edits, int n, LISTITER begin, LISTITER end ) |
no test coverage detected