summaryrefslogtreecommitdiffstats
Unidiff
-rw-r--r--r/connect.R2
-rw-r--r--src/Makefile.am3
-rw-r--r--src/controller/exp004reshape.c11
-rw-r--r--src/model/density_legend_geometry.c81
-rw-r--r--src/model/density_legend_geometry.h9
-rw-r--r--src/model/display_list_index.h6
-rw-r--r--src/model/exp004state.h14
-rw-r--r--src/util/check_error.c6
-rw-r--r--src/view/exp004geometry.c7
-rw-r--r--src/view/exp004init.c8
-rw-r--r--src/view/exp004view.c4
11 files changed, 124 insertions, 27 deletions
diff --git a/src/util/check_error.c b/src/util/check_error.c
index cd00439..c47ca43 100644
--- a/src/util/check_error.c
+++ b/src/util/check_error.c
@@ -1,6 +1,7 @@
1#include <GL/glut.h>1#include <GL/glut.h>
2#include <error.h>2#include <error.h>
3#include <errno.h>3#include <errno.h>
4#include <stdlib.h>
4#include "sqlinfoprint.h"5#include "sqlinfoprint.h"
5extern struct sqlca sqlca;6extern struct sqlca sqlca;
67
@@ -15,14 +16,15 @@ check_error (const char *filename, const unsigned int linenum)
15 if (errCode != GL_NO_ERROR)16 if (errCode != GL_NO_ERROR)
16 {17 {
17 const GLubyte *errString = gluErrorString (errCode);18 const GLubyte *errString = gluErrorString (errCode);
18 error_at_line (-1, errno, filename, linenum,19 error_at_line (EXIT_FAILURE, errno, filename, linenum,
19 "OpenGL Error %s", errString);20 "OpenGL Error %s", errString);
20 }21 }
2122
22 /*23 /*
23 * Check for an error from the Database API.24 * Check for an error from the Database API.
24 */25 */
25 sqlinfoprint ("DB Error", &sqlca, filename, linenum);26 if (sqlinfoprint ("DB Error", &sqlca, filename, linenum) == 1)
27 exit (EXIT_FAILURE);
2628
27 return;29 return;
28}30}

Valid XHTML 1.0 Strict

Copyright © 2009 Don Pellegrino All Rights Reserved.