summaryrefslogtreecommitdiff
path: root/src/cd.c
diff options
context:
space:
mode:
authorscuri <scuri>2010-05-12 20:38:46 +0000
committerscuri <scuri>2010-05-12 20:38:46 +0000
commitb7d97c7ed82f0d0472cf0c2ae5d61e99a73b33a8 (patch)
tree0da03500210df1ac835203e2bb83748564e67423 /src/cd.c
parentafaff9e085b51c822f0ce31ac91cc8196bfa5113 (diff)
New Cairo driver
Diffstat (limited to 'src/cd.c')
-rw-r--r--src/cd.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/src/cd.c b/src/cd.c
index 6435d0a..1843a27 100644
--- a/src/cd.c
+++ b/src/cd.c
@@ -20,6 +20,7 @@
/* This appears only here to avoid changing the cd.h header fo bug fixes */
#define CD_VERSION_FIX ""
#define CD_VERSION_FIX_NUMBER 0
+/* #define CD_VERSION_FIX_DATE "" */
const char cd_ident[] =
"$CD: " CD_VERSION CD_VERSION_FIX " " CD_COPYRIGHT " $\n"
@@ -36,7 +37,11 @@ char* cdVersion(void)
char* cdVersionDate(void)
{
+#ifdef CD_VERSION_FIX_DATE
+ return CD_VERSION_FIX_DATE;
+#else
return CD_VERSION_DATE;
+#endif
}
int cdVersionNumber(void)
@@ -716,14 +721,13 @@ static cdContext* context_plus[NUM_CONTEXTPLUS] = {NULL, NULL, NULL, NULL, NULL,
int cdUseContextPlus(int use)
{
+ int old_use_context_plus = use_context_plus;
+
if (use == CD_QUERY)
return use_context_plus;
- {
- int old_use_context_plus = use_context_plus;
- use_context_plus = use;
- return old_use_context_plus;
- }
+ use_context_plus = use;
+ return old_use_context_plus;
}
void cdInitContextPlusList(cdContext* ctx_list[])