refactor: rename PIP_NO_\* to PIP_HAS_\* with inverted logic

All feature flags now use positive naming (enabled by default):
- PIP_HAS_FILESYSTEM, PIP_HAS_THREADS, PIP_HAS_SOCKET
- PIP_HAS_PROCESS, PIP_HAS_DYNLIB, PIP_HAS_FFT, PIP_HAS_SERIAL

Preprocessor guards inverted:
- #ifndef PIP_NO_X → #ifdef PIP_HAS_X
- #ifdef PIP_NO_X → #ifndef PIP_HAS_X

CMake options default ON instead of OFF.
Platform blocks set flags OFF to disable features.

85 files transformed via Python script + 2 manual fixes.
This commit is contained in:
2026-08-11 19:51:42 +03:00
parent 1db0dfea43
commit 077ac9887b
85 changed files with 344 additions and 342 deletions
+2 -2
View File
@@ -19,7 +19,7 @@
#include "pifft.h"
#ifndef PIP_NO_FFT
#ifdef PIP_HAS_FFT
PIFFT_double::PIFFT_double() {}
@@ -1961,4 +1961,4 @@ void PIFFT_float::ftbase_ffttwcalc(PIVector<float> * a, int aoffset, int n1, int
}
}
#endif // PIP_NO_FFT
#endif // PIP_HAS_FFT
+2 -2
View File
@@ -59,7 +59,7 @@
#include "pimathcomplex.h"
#ifndef PIP_NO_FFT
#ifdef PIP_HAS_FFT
# include "pip_fftw_export.h"
@@ -384,6 +384,6 @@ typedef PIFFTW<ldouble> PIFFTWld;
# endif
#endif // PIP_NO_FFT
#endif // PIP_HAS_FFT
#endif // PIFFT_H