Add support for multiple M_LET on the same line
without warning about shadow variables.
This commit is contained in:
1 parent
92d7009804
commit
e95d13adb1
2 files changed
+3
-5
No files matched your search
+1
-3
@@ -234,9 +234,7 @@ test(array_seed_t seed, array_value_t value, dict_mph_t dict)
|
||||
|
||||
int main(int argc, const char *argv[])
|
||||
{
|
||||
M_LET(arr, array_string_t)
|
||||
M_LET(dict, dict_mph_t)
|
||||
M_LET(seed, array_seed_t)
|
||||
M_LET(arr, array_string_t) M_LET(dict, dict_mph_t) M_LET(seed, array_seed_t)
|
||||
M_LET(value, array_value_t) {
|
||||
const char *filename = (argc > 1) ? argv[1] :"/usr/share/dict/words";
|
||||
dict_read_from_file(dict, arr, filename);
|
||||
|
||||
Reference in new issue
Block a user