if (F_status_is_error(*status)) break;
} // for
- if (data.path_work.used > 0) {
+ if (data.path_work.used) {
f_array_length_t length = 0;
if (F_status_is_error_not(*status)) {
char directory_headers[directory_headers_length + 1];
- if (data_build.setting.path_headers.used > 0) {
+ if (data_build.setting.path_headers.used) {
memcpy(directory_headers, data.path_build_includes.string, data.path_build_includes.used);
memcpy(directory_headers + data.path_build_includes.used, data_build.setting.path_headers.string, data_build.setting.path_headers.used);
f_array_length_t j = 0;
// if any mode is specified, the entire defaults is replaced.
- if (data.mode.used > 0) {
+ if (data.mode.used) {
modes = &data.mode;
}
};
for (uint8_t i = 0; i < 3; i++) {
- if (destinations[i]->used > 0) continue;
+ if (destinations[i]->used) continue;
*status = f_string_append_assure(sources[i], lengths[i], destinations[i]);
char directory_headers[directory_headers_length + 1];
- if (data_build.setting.path_headers.used > 0) {
+ if (data_build.setting.path_headers.used) {
memcpy(directory_headers, data->path_build_includes.string, data->path_build_includes.used);
memcpy(directory_headers + data->path_build_includes.used, data_build.setting.path_headers.string, data_build.setting.path_headers.used);
}
// if project-specific library sources exist, then the -lproject_name needs to be added to the arguments.
- if (F_status_is_error_not(*status) && data_build.setting.build_sources_library.used > 0) {
+ if (F_status_is_error_not(*status) && data_build.setting.build_sources_library.used) {
f_array_length_t link_project_library_length = fake_build_parameter_library_link_file_length + data_build.setting.project_name.used;
char link_project_library[link_project_library_length + 1];
} // for
}
- if (data->path_work.used > 0) {
+ if (data->path_work.used) {
{
f_string_dynamic_t * const parameters_value[] = {
&data->path_work_includes,
return F_status_set_error(F_signal);
}
- if (parameters_value[i]->used > 0) {
+ if (parameters_value[i]->used) {
memset(&directory_stat, 0, sizeof(struct stat));
status = f_file_stat(parameters_value[i]->string, F_true, &directory_stat);