Smyrna is written entirely in C, so these guards are unused.
#include <math.h>
#include <glcomp/glcompfont.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
/* DRAWING FUNCTIONS
* these are opengl based xdot drawing functions
* topview drawings are not here
extern void drawCircle(float x, float y, float radius, float zdepth);
extern void drawBorders(ViewInfo * view);
extern void draw_selpoly(glCompPoly* selPoly);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "viewport.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
int glexpose_main(ViewInfo * v);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "viewport.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void glmotion_zoom(void);
void glmotion_pan(ViewInfo * v);
void glmotion_zoom_inc(int zoomin);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include <gtk/gtkgl.h>
#include <gdk/gdkcursor.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
gboolean expose_event(GtkWidget * widget, GdkEventExpose * event,
gpointer data);
extern GdkGLConfig *configure_gl(void);
void create_window(GdkGLConfig * glconfig, GtkWidget * vbox);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#pragma once
-#ifdef __cplusplus
-extern "C" {
-#endif
-
int cb_glutinit(int x,int y,int w,int h, int bits,int s_rate,int fullscreen,int* argcp, char *argv[],char* optArg);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "toolboxcallbacks.h"
#include "gui.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifdef _WIN32 //this is needed on _WIN32 to get libglade see the callback
#define _BB __declspec(dllexport)
#else
gpointer user_data);
_BB void on_consoleincbtn_clicked(GtkWidget * widget,
gpointer user_data);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "gui.h"
#include "tvnodes.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
_BB void btnTVOK_clicked_cb(GtkWidget * widget, gpointer user_data);
_BB void btnTVShowAll_clicked_cb(GtkWidget * widget,
gpointer user_data);
_BB void btnTVSaveAs_clicked_cb(GtkWidget * widget,
gpointer user_data);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "smyrnadefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern glCompSet *glcreate_gl_topview_menu(void);
extern void switch2D3D(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t);
extern void menu_click_center(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t);
extern void menu_click_zoom_minus(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t);
extern void menu_click_zoom_plus(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t);
extern void menu_click_pan(glCompObj *obj, GLfloat x, GLfloat y, glMouseButtonType t);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#define MAXIMUM_WIDGET_COUNT 97
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern GladeXML *xml; //global libglade vars
extern GtkWidget *gladewidget;
/*generic save file dialog*/
int savefiledlg(int filtercnt, char **filters, agxbuf * xbuf);
void append_textview(GtkTextView * textv, const char *s, size_t bytes);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "gui.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
//file
_BB void mOpenSlot(GtkWidget * widget, gpointer user_data);
_BB void mSaveSlot(GtkWidget * widget, gpointer user_data);
gpointer user_data);
_BB void on_gvprbuttonsave_clicked(GtkWidget * widget,
gpointer user_data);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#define _BB __declspec(dllexport)
#else
#define _BB /**/
-#endif
-#ifdef __cplusplus
-extern "C" {
#endif
_BB void btnToolZoomOut_clicked(GtkWidget * widget,
_BB void btnToolFit_clicked(GtkWidget * widget, gpointer user_data);
_BB void on_btnActivateGraph_clicked(GtkWidget * widget,
gpointer user_data);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "smyrnadefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
_BB void on_settingsOKBtn_clicked(GtkWidget * widget,
gpointer user_data);
_BB void on_settingsCancelBtn_clicked(GtkWidget * widget,
extern int load_settings_from_graph(Agraph_t * g);
extern int update_graph_from_settings(Agraph_t * g);
extern int show_settings_form(void);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include <cgraph/cgraph.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
extern int run_gvpr(Agraph_t * srcGraph, int argc, char *argv[]);
-
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include <topfish/hierarchy.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
typedef struct {
int num_foci;
int *foci_nodes; /* Nodes in real graph */
double *, hierparms_t *);
focus_t *initFocus(int ncnt);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "smyrnadefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
typedef struct {
GLUtesselator *tobj;
GLenum windingRule;
}tessPoly;
extern int drawTessPolygon(sdot_op* p);
extern int testDraw(void);
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "draw.h"
#include <GL/gl.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern void pick_objects_rect(Agraph_t* g) ;
extern void deselect_all(Agraph_t* g);
extern void add_selpoly(Agraph_t* g,glCompPoly* selPoly,glCompPoint pt);
extern void clear_selpoly(glCompPoly* sp);
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "hier.h"
#include <glcomp/glutils.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
#ifdef _WIN32 //this is needed on _WIN32 to get libglade see the callback
#define _BB __declspec(dllexport)
#else
extern char *smyrnaGlade;
extern void glexpose(void);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "smyrnadefs.h"
#include "hier.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void drawtopologicalfisheye(topview * t);
void changetopfishfocus(topview * t, float *x, float *y,
float *z, int num_foci);
void prepare_topological_fisheye(Agraph_t* g,topview * t);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "smyrnadefs.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
extern void pick_object_xyz(Agraph_t* g,topview* t,GLfloat x,GLfloat y,GLfloat z) ;
extern void initSmGraph(Agraph_t * g,topview* rv);
extern void updateSmGraph(Agraph_t * g,topview* t);
extern void freeSmGraph(Agraph_t * g,topview* t);
extern void cacheSelectedEdges(Agraph_t * g,topview* t);
extern void cacheSelectedNodes(Agraph_t * g,topview* t);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "gui.h"
-#ifdef __cplusplus
-extern "C" {
-#endif
-
int tv_show_all(void);
int tv_hide_all(void);
int tv_save_as(int);
void setup_tree (Agraph_t* g);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include <xdot/xdot.h>
#include <cgraph/cgraph.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
void init_viewport(ViewInfo * view);
void set_viewport_settings_from_template(ViewInfo * view, Agraph_t *);
void switch_graph(int);
/* helper functions */
extern char *get_attribute_value(char *attr, ViewInfo * view,
Agraph_t * g);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif
#include "smyrnadefs.h"
#include <glcomp/glcompset.h>
-#ifdef __cplusplus
-extern "C" {
-#endif
-
extern void menu_click_add_camera(void *p);
-
-#ifdef __cplusplus
-} /* end extern "C" */
-#endif