various: move const ptr indicator to return value
This commit is contained in:
@@ -105,7 +105,7 @@ Instance* resource_find_instance(Resource *rr, const char *version);
|
||||
int resource_resolve_path(Resource *rr, const char *root, const char *node);
|
||||
|
||||
ResourceType resource_type_from_string(const char *s) _pure_;
|
||||
const char *resource_type_to_string(ResourceType t) _const_;
|
||||
const char* resource_type_to_string(ResourceType t) _const_;
|
||||
|
||||
PathRelativeTo path_relative_to_from_string(const char *s) _pure_;
|
||||
const char *path_relative_to_to_string(PathRelativeTo r) _const_;
|
||||
const char* path_relative_to_to_string(PathRelativeTo r) _const_;
|
||||
|
||||
@@ -28,7 +28,7 @@ int update_set_cmp(UpdateSet *const*a, UpdateSet *const*b) {
|
||||
return -strverscmp_improved((*a)->version, (*b)->version);
|
||||
}
|
||||
|
||||
const char *update_set_flags_to_color(UpdateSetFlags flags) {
|
||||
const char* update_set_flags_to_color(UpdateSetFlags flags) {
|
||||
|
||||
if (flags == 0 || (flags & UPDATE_OBSOLETE))
|
||||
return (flags & UPDATE_NEWEST) ? ansi_highlight_grey() : ansi_grey();
|
||||
@@ -45,7 +45,7 @@ const char *update_set_flags_to_color(UpdateSetFlags flags) {
|
||||
return NULL;
|
||||
}
|
||||
|
||||
const char *update_set_flags_to_glyph(UpdateSetFlags flags) {
|
||||
const char* update_set_flags_to_glyph(UpdateSetFlags flags) {
|
||||
|
||||
if (flags == 0 || (flags & UPDATE_OBSOLETE))
|
||||
return special_glyph(SPECIAL_GLYPH_MULTIPLICATION_SIGN);
|
||||
|
||||
@@ -28,5 +28,5 @@ UpdateSet *update_set_free(UpdateSet *us);
|
||||
|
||||
int update_set_cmp(UpdateSet *const*a, UpdateSet *const*b);
|
||||
|
||||
const char *update_set_flags_to_color(UpdateSetFlags flags);
|
||||
const char *update_set_flags_to_glyph(UpdateSetFlags flags);
|
||||
const char* update_set_flags_to_color(UpdateSetFlags flags);
|
||||
const char* update_set_flags_to_glyph(UpdateSetFlags flags);
|
||||
|
||||
Reference in New Issue
Block a user