https://github.com/postgres/postgres
Revision 940c1c7ed3d14ae132c9b96643be6901b2d92993 authored by Andres Freund on 17 September 2022, 16:21:59 UTC, committed by Andres Freund on 17 September 2022, 16:23:49 UTC
Frontend code shouldn't include postgres.h. Some files in src/port/ need to
include postgres.h/postgres_fe.h, but these files don't.

Discussion: https://postgr.es/m/20220915022626.5xx3ccgkzpkqw5mq@awork3.anarazel.de
Backpatch: 12-, where 3fd2a7932ef introduced (some) of these files
1 parent fb50379
Raw File
Tip revision: 940c1c7ed3d14ae132c9b96643be6901b2d92993 authored by Andres Freund on 17 September 2022, 16:21:59 UTC
Include c.h instead of postgres.h in src/port/*p{read,write}*.c
Tip revision: 940c1c7
.dir-locals.el
;; see also src/tools/editors/emacs.samples for more complete settings

((c-mode . ((c-basic-offset . 4)
            (c-file-style . "bsd")
            (fill-column . 78)
            (indent-tabs-mode . t)
            (tab-width . 4)))
 (nxml-mode . ((fill-column . 78)
               (indent-tabs-mode . nil)))
 (perl-mode . ((perl-indent-level . 4)
               (perl-continued-statement-offset . 2)
               (perl-continued-brace-offset . -2)
               (perl-brace-offset . 0)
               (perl-brace-imaginary-offset . 0)
               (perl-label-offset . -2)
               (indent-tabs-mode . t)
               (tab-width . 4)))
 (sgml-mode . ((fill-column . 78)
               (indent-tabs-mode . nil))))
back to top