Changeset: 061d1a8034fd for MonetDB URL: https://dev.monetdb.org/hg/MonetDB/rev/061d1a8034fd Modified Files: monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h Branch: json-extend Log Message:
fix for_each_from macro diffs (12 lines): diff --git a/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h b/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h --- a/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h +++ b/monetdb5/modules/atoms/pg_jsonpath/postgres_defines_internal.h @@ -82,7 +82,7 @@ pg_strtoint32(const char *s) #define for_each_from(cell, list, N) \ cell = list->h; \ -{int i = 0; while (i < N && cell->next) {cell = cell->next;}} \ +for (int i = 0; i < N; i++) {cell = cell->next;} \ for (;cell;cell = cell->next) #define foreach(cell, list) for_each_from(cell, list, 0) _______________________________________________ checkin-list mailing list -- checkin-list@monetdb.org To unsubscribe send an email to checkin-list-le...@monetdb.org