what you give them. Help stamp out software-hoarding!
-------------------------------------------------------------------------*/
+#include <math.h>
+
#ifdef _WIN32
#include <ctype.h>
#include <windows.h>
#include "findme.h"
#endif
+#include "version.h"
+
/** Given an array of name, value string pairs creates a new hash
containing all of the pairs.
*/
return path;
}
/* not enough info in prel; do it with module name */
- else if (0 != GetModuleFileName(NULL, path, sizeof path) != 0 &&
+ else if (0 != GetModuleFileName(NULL, path, sizeof path) &&
NULL != (p = strrchr(path, DIR_SEPARATOR_CHAR))) {
*p = '\0';
return path;
}
+/*-----------------------------------------------------------------*/
+/* getBuildNumber - return build number */
+/*-----------------------------------------------------------------*/
+const char *getBuildNumber(void)
+{
+ return (SDCC_BUILD_NUMBER);
+}
+
#if defined(HAVE_VSNPRINTF) || defined(HAVE_VSPRINTF)
size_t SDCCsnprintf(char *dst, size_t n, const char *fmt, ...)
{