summaryrefslogtreecommitdiffstats
path: root/ast/grf_5.6.c
diff options
context:
space:
mode:
authorWilliam Joye <wjoye@cfa.harvard.edu>2018-01-09 19:06:55 (GMT)
committerWilliam Joye <wjoye@cfa.harvard.edu>2018-01-09 19:06:55 (GMT)
commit01e0ebfe59d9028b0246ec4a549bd7528ada94eb (patch)
treea6c5b54db03177a1c8f3e7fb531990dfbc7bae39 /ast/grf_5.6.c
parentd64cf9c0bd23e752867b149be636d1bbd4501cf4 (diff)
downloadblt-01e0ebfe59d9028b0246ec4a549bd7528ada94eb.zip
blt-01e0ebfe59d9028b0246ec4a549bd7528ada94eb.tar.gz
blt-01e0ebfe59d9028b0246ec4a549bd7528ada94eb.tar.bz2
update ast 8.6.2
Diffstat (limited to 'ast/grf_5.6.c')
-rw-r--r--ast/grf_5.6.c77
1 files changed, 77 insertions, 0 deletions
diff --git a/ast/grf_5.6.c b/ast/grf_5.6.c
new file mode 100644
index 0000000..3a77f58
--- /dev/null
+++ b/ast/grf_5.6.c
@@ -0,0 +1,77 @@
+/*
+* Name:
+* grf_5.6.c
+
+* Purpose:
+* Implement the grf module required by AST V5.6 if no graphics system
+* is available.
+
+* Description:
+* This file implements the low level graphics functions required
+* by the rest of AST V5.6, except for those already defined in
+* earlier grf_xxx.c files (i.e. those needed by ealier versions
+* of AST). These implementations simply report an error when called.
+
+* Inheritance:
+* This module is not a class and does not inherit.
+
+* Copyright:
+* Copyright (C) 2011 Science & Technology Facilities Council.
+* All Rights Reserved.
+
+* Licence:
+* This program is free software: you can redistribute it and/or
+* modify it under the terms of the GNU Lesser General Public
+* License as published by the Free Software Foundation, either
+* version 3 of the License, or (at your option) any later
+* version.
+*
+* This program is distributed in the hope that it will be useful,
+* but WITHOUT ANY WARRANTY; without even the implied warranty of
+* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+* GNU Lesser General Public License for more details.
+*
+* You should have received a copy of the GNU Lesser General
+* License along with this program. If not, see
+* <http://www.gnu.org/licenses/>.
+
+* Authors:
+* DSB: David S. Berry (Starlink)
+
+* History:
+* 4-MAR-2011 (DSB):
+* Original version.
+*/
+
+/* Header files */
+/* ============ */
+#include "grf.h" /* Declare the functions in this module */
+#include "error.h" /* AST error reporting facilities */
+#include "ast_err.h" /* AST error codes */
+
+/* Function Prototypes */
+/* =================== */
+static void Report( const char * );
+
+/* Function definitions */
+/* ==================== */
+int astGBBuf( void ){
+ Report( "astGBBuf" );
+ return 0;
+}
+
+int astGEBuf( void ){
+ Report( "astGEBuf" );
+ return 0;
+}
+
+static void Report( const char *name ){
+ astError( AST__GRFER, "%s: The graphics facilities implement by %s "
+ "(introduced at AST V5.6) are needed but are unavailable.",
+ name, name );
+ astError( AST__GRFER, "Re-link using a suitable option such as '-pgplot' "
+ "with the ast_link script, or add an implementation of this "
+ "function to your 'grf' module." );
+}
+
+