| 1038 | } |
| 1039 | |
| 1040 | static LIST * apply_modifiers_empty( LIST * result, string * buf, |
| 1041 | VAR_EDITS * edits, int n ) |
| 1042 | { |
| 1043 | int i; |
| 1044 | for ( i = 0; i < n; ++i ) |
| 1045 | { |
| 1046 | if ( edits[ i ].empty.ptr ) |
| 1047 | { |
| 1048 | /** FIXME: is empty.ptr always null-terminated? */ |
| 1049 | var_edit_file( edits[ i ].empty.ptr, buf, edits + i ); |
| 1050 | var_edit_shift( buf, 0, edits + i ); |
| 1051 | result = list_push_back( result, object_new( buf->value ) ); |
| 1052 | string_truncate( buf, 0 ); |
| 1053 | } |
| 1054 | } |
| 1055 | return result; |
| 1056 | } |
| 1057 | |
| 1058 | static LIST * apply_modifiers_non_empty( LIST * result, string * buf, |
| 1059 | VAR_EDITS * edits, int n, LISTITER begin, LISTITER end ) |
no test coverage detected