Removing useless #include's.

Поиск
Список
Период
Сортировка
От Kyotaro HORIGUCHI
Тема Removing useless #include's.
Дата
Msg-id 20180215.200447.209320006.horiguchi.kyotaro@lab.ntt.co.jp
обсуждение исходный текст
Ответы Re: Removing useless #include's.
Список pgsql-hackers
Hello.

While looking some patch, just from curiosity, I checked for
redundant #include's in the source tree (except
contrib). "redundant" here means that a file is included in
another include file nearby.

I found 641 includes that is just removable with no side effect
with two exceptions.

- src/common/saslprep.c

  A comment that suggests linking wchar.c was placed just above
  '#include "mb/pg_wchar.h" but it is now just above "#include
  "common/unicode_norm.h" but the comment seems to be used as is.

 
- backend/storage/lmgr/spin.c

  spin.c and spin.h don't aggree on the necessity of pg_sema.h
  when HAVE_SPINLOCKS is defined. I post a mail about this issue
  separately.

regards,

-- 
Kyotaro Horiguchi
NTT Open Source Software Center

Вложения

В списке pgsql-hackers по дате отправления:

Предыдущее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: Let's remove DSM_INPL_NONE.
Следующее
От: Kyotaro HORIGUCHI
Дата:
Сообщение: HAVE_SPINLOCKS still requests exctra shared memory