Content-Length: 242379 | pFad | https://github.com/postgrespro/postgres_cluster/commit/4f3b38fe2bde72d59b7eab593ff72e0cebd9ecc6

24 Get rid of explicit argument-count markings in tab-complete.c. · postgrespro/postgres_cluster@4f3b38f · GitHub
Skip to content

Commit 4f3b38f

Browse files
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 are reduced to COMPLETE_WITH, and the single-item COMPLETE_WITH_CONST also gets folded into that. This eliminates a lot of minor annoyance in writing tab-completion rules. Usefully, the compiled code also gets a bit smaller (10% or so, on my machine). The implementation depends on variadic macros, so we couldn't have done 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.no
1 parent 1f7fc76 commit 4f3b38f

File tree

2 files changed

+1222
-1362
lines changed

2 files changed

+1222
-1362
lines changed

0 commit comments

Comments
 (0)








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/postgrespro/postgres_cluster/commit/4f3b38fe2bde72d59b7eab593ff72e0cebd9ecc6

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy