-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsqPluginsSCCSVersion.h
43 lines (38 loc) · 1.16 KB
/
sqPluginsSCCSVersion.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
/*
* A set of definitions for C source code control systems, to provide accurate
* and definitive version information to the VM. This file identifies the
* platform plugin code, which is shared between Cog and the trunk interpreter.
* It is included by platforms/Cross/vm/sqSCCSVersion.h.
*
* Currently instantiated only for Subversion. Please add definitions for
* other repositories as appropriate.
*/
#if SUBVERSION
static char SvnRawPluginsRevisionString[] = "$Rev$";
# define PLUGINS_REV_START (SvnRawPluginsRevisionString + 6)
static char SvnRawPluginsRepositoryURL[] = "$URL$";
# define URL_START (SvnRawPluginsRepositoryURL + 6)
static char *
pluginsRevisionAsString()
{
char *maybe_space = strchr(PLUGINS_REV_START,' ');
if (maybe_space)
*maybe_space = 0;
return PLUGINS_REV_START;
}
static char *
pluginsRepositoryURL()
{
char *maybe_sqplugins = strstr(URL_START, "/sqPlugins");
if (maybe_sqplugins)
*maybe_sqplugins = 0;
return URL_START;
}
# undef PLUGINS_REV_START
# undef URL_START
#else /* SUBVERSION */
static char *
pluginsRevisionAsString() { return "?"; }
static char *
pluginsRepositoryURL() { return "unknown"; }
#endif /* SUBVERSION */