1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

In the original ast code base, src/{cmd/nmake,lib/libast}/Makefile

(nmake makefiles) defined this macro:

	__OBSOLETE__ == $("6 months ago":@F=%(%Y0101)T)

This was used to automatically disable code after a period between
6 and 18 months, on 1st Jan of each year, in preprocessor
directives like:

	#if __OBSOLETE__ < 20080101
	// obsolete code here
	#endif

However, when compiling without nmake (as we do), this __OBSOLETE__
macro is not defined at all. And undefined macros evaluate to zero
in arithmetic comparisons, so all that obsolete code has been
getting compiled. Thankfully it doesn't seem to have done any harm,
but all that code was supposed to expire between 2008 and 2014.

src/lib/libast/disc/sfstrtmp.c:
- Removed. Was supposed to be a stub #if __OBSOLETE__ >= 20070101.

src/lib/libast/include/ast.h:
- Remove unused fmtbasell() macro (/* until 2014-01-01 */).

Other changed files:
- Remove __OBSOLETE__d code.
This commit is contained in:
Martijn Dekker 2022-01-04 08:24:40 +00:00
parent aee917f666
commit 01da863154
9 changed files with 1 additions and 151 deletions

View file

@ -1408,15 +1408,6 @@ astgetconf(const char* name, const char* path, const char* value, int flags, Err
Lookup_t look;
Sfio_t* tmp;
#if __OBSOLETE__ < 20080101
if (pointerof(flags) == (void*)errorf)
{
conferror = errorf;
flags = ASTCONF_error;
}
else if (conferror && conferror != errorf)
conferror = 0;
#endif
if (!name)
{
if (path)