aboutsummaryrefslogtreecommitdiff
path: root/c/defs.h
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2022-04-25 14:10:02 +0200
committerJohn Ankarström <john@ankarstrom.se>2022-04-25 14:10:02 +0200
commitc884c09ac88c0d22a21f839593d77c7173c41b60 (patch)
tree5aa03981fcc2196443993d691f792c14d0435872 /c/defs.h
parent45133f2f99dc2e6f0e786909a68f1cfd93b7f01d (diff)
downloadEpisodeBrowser-c884c09ac88c0d22a21f839593d77c7173c41b60.tar.gz
Flip title and rating columns.
Diffstat (limited to 'c/defs.h')
-rw-r--r--c/defs.h27
1 files changed, 17 insertions, 10 deletions
diff --git a/c/defs.h b/c/defs.h
index c5e80c2..afc742f 100644
--- a/c/defs.h
+++ b/c/defs.h
@@ -27,6 +27,23 @@ void ElvUpdateItem(LPLVITEM);
HWND DlvCreate();
void DlvShowEpisode(int);
+/* defs.h */
+#define DLVSIKEY 0
+#define DLVSIVALUE 1
+#define ELVSIEPISODE 0
+#define ELVSITITLE 1
+#define ELVSIRATING 2
+
+#define P(m,p,a,t) if (!PL_call_predicate(NULL, PL_Q_NORMAL, \
+ PL_predicate(p,a,m), t))
+#define Q(m,p,a,t) PL_open_query(NULL, PL_Q_NORMAL, PL_predicate(p,a,m), t)
+#define Qn(q) PL_next_solution(q)
+#define Qc(q) PL_cut_query(q)
+#define T(a) PL_new_term_refs(a)
+#define PI(t,x) if (!PL_put_integer(t,x))
+#define GI(t,x) if (!PL_get_integer(t,x))
+#define GAC(t,x) if (!PL_get_atom_chars(t,x))
+
inline int
Cmp(int a, int b)
{
@@ -44,14 +61,4 @@ Dpi(int i)
return MulDiv(i, IDPI, 96);
}
-#define P(m,p,a,t) if (!PL_call_predicate(NULL, PL_Q_NORMAL, \
- PL_predicate(p,a,m), t))
-#define Q(m,p,a,t) PL_open_query(NULL, PL_Q_NORMAL, PL_predicate(p,a,m), t)
-#define Qn(q) PL_next_solution(q)
-#define Qc(q) PL_cut_query(q)
-#define T(a) PL_new_term_refs(a)
-#define PI(t,x) if (!PL_put_integer(t,x))
-#define GI(t,x) if (!PL_get_integer(t,x))
-#define GAC(t,x) if (!PL_get_atom_chars(t,x))
-
#endif