| 1109 | } |
| 1110 | |
| 1111 | static LIST * apply_modifiers_empty( LIST * result, string * buf, |
| 1112 | VAR_EDITS * edits, int32_t n ) |
| 1113 | { |
| 1114 | int32_t i; |
| 1115 | for ( i = 0; i < n; ++i ) |
| 1116 | { |
| 1117 | if ( edits[ i ].empty.ptr ) |
| 1118 | { |
| 1119 | /** FIXME: is empty.ptr always null-terminated? */ |
| 1120 | var_edit_file( edits[ i ].empty.ptr, buf, edits + i ); |
| 1121 | var_edit_shift( buf, 0, edits + i ); |
| 1122 | result = list_push_back( result, object_new( buf->value ) ); |
| 1123 | string_truncate( buf, 0 ); |
| 1124 | } |
| 1125 | } |
| 1126 | return result; |
| 1127 | } |
| 1128 | |
| 1129 | static LIST * apply_modifiers_non_empty( LIST * result, string * buf, |
| 1130 | VAR_EDITS * edits, int32_t n, LISTITER begin, LISTITER end ) |
no test coverage detected