1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
Description: source: graphics display: short description string
Implement for each graphic display a short_description string which is printed
in the banner (when appropriate, given that for some system this information
is already provided); meant to be suggested to the upstream maintainer.
Origin: debian
Forwarded: by email
Author: Jerome Benoit <calculus@rezozer.net>
Last-Update: 2016-07-16
--- a/src/proto.h
+++ b/src/proto.h
@@ -28,7 +28,8 @@
#ifdef MPI_EVOLVER
#include "mpi_proto.h"
#endif
-
+
+char *evolver_display_short_description;
void set_graphics_title(int, char*);
void affinity_mongering(void); // Windows only
void free_element_lists(void);
--- a/src/nulgraph.c
+++ b/src/nulgraph.c
@@ -7,6 +7,8 @@
#include "include.h"
+char *evolver_display_short_description = NULL /* "no X support" */ ;
+
/* callable null functions of the right types */
void null_start (void) {}
void null_edge(struct graphdata * g,edge_id id) {}
--- a/src/glutgraph.c
+++ b/src/glutgraph.c
@@ -72,6 +72,8 @@
#include "include.h"
+char *evolver_display_short_description = "OpenGL/GLUT display";
+
char *gl_errors[6] = {
"GL_INVALID_ENUM: Given when an enumeration parameter is not a legal enumeration for that function. This is given only for local problems; if the spec allows the enumeration in certain circumstances, and other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead.",
"GL_INVALID_VALUE1: Given when a value parameter is not a legal value for that function. This is only given for local problems; if the spec allows the value in certain circumstances, and other parameters or state dictate those circumstances, then GL_INVALID_OPERATION is the result instead. ",
--- a/src/tmain.c
+++ b/src/tmain.c
@@ -216,6 +216,13 @@
outstring(msg);
#endif
+#if !defined(_WIN64) && !defined(WIN32) /* see definition of VERSION in variable.c */
+ if (evolver_display_short_description != NULL)
+ { sprintf(msg,"Built with %s.\n",evolver_display_short_description);
+ outstring(msg);
+ }
+#endif
+
#ifdef MPI_EVOLVER
MPI_Barrier(MPI_COMM_WORLD); /* wait for everybody to print */
#endif
|