git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: 9cca11c) | patch
Move code shared between libpq and backend from backend/libpq/ to common/.
Fri, 2 Sep 2016 10:49:59 +0000 (13:49 +0300)
Fri, 2 Sep 2016 10:49:59 +0000 (13:49 +0300)
commit ec136d19b21791c845b1deeff43df137add0639e
Move code shared between libpq and backend from backend/libpq/ to common/.

When building libpq, ip.c and md5.c were symlinked or copied from
src/backend/libpq into src/interfaces/libpq, but now that we have a
directory specifically for routines that are shared between the server and
client binaries, src/common/, move them there.

Some routines in ip.c were only used in the backend. Keep those in
src/backend/libpq, but rename to ifaddr.c to avoid confusion with the file
that's now in common.

Fix the comment in src/common/Makefile to reflect how libpq actually links
those files.

There are two more files that libpq symlinks directly from src/backend:
encnames.c and wchar.c. I don't feel compelled to move those right now,
though.

Patch by Michael Paquier, with some changes by me.

Discussion: <69938195-9c76-8523-0af8-eb718ea5b36e@iki.fi>
25 files changed:
contrib/passwordcheck/passwordcheck.c diff | blob | blame | history
src/backend/commands/user.c diff | blob | blame | history
src/backend/libpq/Makefile diff | blob | blame | history
src/backend/libpq/auth.c diff | blob | blame | history
src/backend/libpq/crypt.c diff | blob | blame | history
src/backend/libpq/hba.c diff | blob | blame | history
src/backend/libpq/ifaddr.c [moved from src/backend/libpq/ip.c with 72% similarity] diff | blob | blame | history
src/backend/libpq/pqcomm.c diff | blob | blame | history
src/backend/postmaster/pgstat.c diff | blob | blame | history
src/backend/postmaster/postmaster.c diff | blob | blame | history
src/backend/utils/adt/network.c diff | blob | blame | history
src/backend/utils/adt/pgstatfuncs.c diff | blob | blame | history
src/backend/utils/adt/varlena.c diff | blob | blame | history
src/common/Makefile diff | blob | blame | history
src/common/ip.c [new file with mode: 0644] blob
src/common/md5.c [moved from src/backend/libpq/md5.c with 98% similarity] diff | blob | blame | history
src/include/common/ip.h [moved from src/include/libpq/ip.h with 65% similarity] diff | blob | blame | history
src/include/common/md5.h [moved from src/include/libpq/md5.h with 96% similarity] diff | blob | blame | history
src/include/libpq/ifaddr.h [new file with mode: 0644] blob
src/interfaces/libpq/Makefile diff | blob | blame | history
src/interfaces/libpq/fe-auth.c diff | blob | blame | history
src/interfaces/libpq/fe-connect.c diff | blob | blame | history
src/tools/ifaddrs/Makefile diff | blob | blame | history
src/tools/ifaddrs/test_ifaddrs.c diff | blob | blame | history
src/tools/msvc/Mkvcbuild.pm diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /