Skip to content

Commit bd615d5

Browse files
committed
Rename fs_result_to_string() to fs_result_description().
1 parent db08ab7 commit bd615d5

3 files changed

Lines changed: 11 additions & 5 deletions

File tree

camal/fs.camal

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,10 @@ construct_results_h :: function() string
1919
content["$"] = "\n\n";
2020
content["$"] = @(results_c("/\* BEG result_to_string.h \*/\R" : "\R/\* END result_to_string.h \*/"));
2121

22-
return rename_results_namespace(content);
22+
content = rename_results_namespace(content);
23+
content["fs_result_to_string"] = "fs_result_description";
24+
25+
return content;
2326
}
2427

2528
construct_results_c :: function() string
@@ -30,8 +33,11 @@ construct_results_c :: function() string
3033
content["$"] = @(results_c("/\* BEG result_from_errno.c \*/\R" : "\R/\* END result_from_errno.c \*/"));
3134
content["$"] = "\n\n";
3235
content["$"] = @(results_c("/\* BEG result_from_GetLastError.c \*/\R" : "\R/\* END result_from_GetLastError.c \*/"));
33-
34-
return rename_results_namespace(content);
36+
37+
content = rename_results_namespace(content);
38+
content["fs_result_to_string"] = "fs_result_description";
39+
40+
return content;
3541
}
3642

3743
fs_h("/\* BEG fs_result.h \*/\R" : "\R/\* END fs_result.h \*/") = construct_results_h();

fs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ FS_API int fs_strnicmp(const char* str1, const char* str2, size_t count)
370370

371371

372372
/* BEG fs_result.c */
373-
FS_API const char* fs_result_to_string(fs_result result)
373+
FS_API const char* fs_result_description(fs_result result)
374374
{
375375
switch (result)
376376
{

fs.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1125,7 +1125,7 @@ typedef enum
11251125
FS_HAS_MORE_OUTPUT = 102 /* Some stream has more output data to be read, but there's not enough room in the output buffer. */
11261126
} fs_result;
11271127

1128-
FS_API const char* fs_result_to_string(fs_result result);
1128+
FS_API const char* fs_result_description(fs_result result);
11291129
/* END fs_result.h */
11301130

11311131

0 commit comments

Comments
 (0)