Expose the platform name to the public API.

This commit is contained in:
Jim Derry 2017-10-19 17:11:29 -04:00
parent c17df6aca2
commit 2340e63f8b
2 changed files with 14 additions and 0 deletions

View file

@ -395,6 +395,11 @@ TIDY_EXPORT ctmbstr TIDY_CALL tidyReleaseDate(void);
*/
TIDY_EXPORT ctmbstr TIDY_CALL tidyLibraryVersion(void);
/** Get the platform for which Tidy was built.
** @result The string representing the version number.
*/
TIDY_EXPORT ctmbstr TIDY_CALL tidyPlatform(void);
/** @}
** @name Diagnostics and Repair

View file

@ -176,6 +176,15 @@ ctmbstr TIDY_CALL tidyLibraryVersion(void)
return TY_(tidyLibraryVersion)();
}
ctmbstr TIDY_CALL tidyPlatform(void)
{
#ifdef PLATFORM_NAME
return PLATFORM_NAME;
#else
return NULL;
#endif
}
/* Get/set configuration options
*/