CPPFLAGS=-I/usr/include/postgresql $(shell freetype-config --cflags) -Itinyptc/
CXXFLAGS=-O2 -Wall
LDFLAGS=-L/usr/X11R6/lib
-LIBS=$(shell freetype-config --libs) $(shell libpq3-config) -lpqxx tinyptc/libtinyptc.a -lX11 -lXext -lXxf86vm -lXxf86dga
+LIBS=$(shell freetype-config --libs) -lpqxx tinyptc/libtinyptc.a -lX11 -lXext -lXxf86vm -lXxf86dga
CCBS_BIGSCREEN_SQL_OBJS=fetch_current_tournament.o fetch_list_of_active_groups.o \
fetch_list_of_finished_groups.o \
curr_group.players[curr_group.players.size() - 1].scores.push_back(sc);
}
-}
-
-void FetchGroup::OnCommit()
-{
*dest_group = curr_group;
}
public:
FetchGroup(unsigned tournament, unsigned round, unsigned parallel, Group *group);
void operator() (pqxx::transaction<> &t);
- void OnCommit();
};
#endif /* !defined(_FETCH_CURRENT_TOURNAMENT_H) */
+#include <cstdio>
#include <vector>
#include <stdexcept>
#include "fonts.h"
#include <cstdio>
#include <algorithm>
#include <map>
+#include <assert.h>
#include "resolution.h"
#include "groupscreen.h"
+#include <stdlib.h>
+#include <cstring>
#include <iconv.h>
#include <endian.h>
#include <exception>
delete[] to_buf;
}
+namespace pqxx
+{
+
template<>
-void pqxx::from_string<widestring>(const char *from, widestring &to)
+void from_string<widestring>(const char *from, widestring &to)
{
to = from;
}
+}