feat: Mark C functions as deprecated#435
Conversation
c1f6b62 to
3320a6c
Compare
|
Interesting chicken-and-egg prroblem |
8475f5a to
05d490b
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #435 +/- ##
========================================
Coverage 83.59% 83.59%
========================================
Files 24 24
Lines 8118 8118
Branches 1689 1693 +4
========================================
Hits 6786 6786
Misses 1332 1332
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
b10b673 to
3a5d4ef
Compare
59f2ef9 to
ef2096b
Compare
|
@LecrisUT, I didn't know about those features in C23. They are simply ignored in older C standard? |
Actually they have been available for quite sometime in the major compilers, check the fallthrough, it covers gnu, clang, and microsoft. Incidentally we can check that they are functioning by looking at the build log of each compiler since we are using those deprecated functions to cover in the test-suite (I should patch it to disable the warnings at some point). Edit: actually microsoft deprecation is not triggered 🤷 |
|
Btw, the macros are quite hard to read, wdyt of imposing an indentation to it: I like the |
I didn't know that we can indent the macro line. I have no objections and any convention is fine to me. |
@lan496 Preference? |
|
Let's use |
|
Note that I only marked random functions. Please go through the others as well to decide if it should be depricated or not |
ef2096b to
f38119d
Compare
|
I think I've marked all of the interfaces that can be easily deprecated. In general many of the interfaces should be reworked to reuse the dataset and have more nested interface.
|
f38119d to
6b0d929
Compare
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
I could use some help marking which functions are to be deprecated.
spg_get_datasetand just extract the values from there, any other ones?Fortran interface.Nothing we can do there 🤷One annoying aspect, when we compile ourselves, we always get deprecation warnings, I'll think of a clever way to get around that.I am wrong, the compiler is actually clever enough to not trigger when compiling self. The warning occur because these are used in test and python interfaceCloses #409