forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit4f3b38f
committed
Get rid of explicit argument-count markings in tab-complete.c.
This replaces the "TailMatchesN" macros with just "TailMatches",and likewise "HeadMatchesN" becomes "HeadMatches" and "MatchesN"becomes "Matches". The various COMPLETE_WITH_LISTn macros arereduced to COMPLETE_WITH, and the single-item COMPLETE_WITH_CONSTalso gets folded into that. This eliminates a lot of minorannoyance in writing tab-completion rules. Usefully, the compiledcode also gets a bit smaller (10% or so, on my machine).The implementation depends on variadic macros, so we couldn't havedone this before we required C99.Andres Freund and Thomas Munro; some cosmetic cleanup by me.Discussion:https://postgr.es/m/d8jo9djvm7h.fsf@dalvik.ping.uio.no1 parent1f7fc76 commit4f3b38f
2 files changed
+1222
-1362
lines changed0 commit comments
Comments
(0)