]> granicus.if.org Git - graphviz/commitdiff
smyrna: remove C++ 'extern "C"' guards
authorMatthew Fernandez <matthew.fernandez@gmail.com>
Wed, 10 Nov 2021 15:18:02 +0000 (07:18 -0800)
committerMatthew Fernandez <matthew.fernandez@gmail.com>
Tue, 16 Nov 2021 14:52:28 +0000 (06:52 -0800)
Smyrna is written entirely in C, so these guards are unused.

22 files changed:
cmd/smyrna/draw.h
cmd/smyrna/glexpose.h
cmd/smyrna/glmotion.h
cmd/smyrna/gltemplate.h
cmd/smyrna/glutrender.h
cmd/smyrna/gui/callbacks.h
cmd/smyrna/gui/datalistcallbacks.h
cmd/smyrna/gui/glcompui.h
cmd/smyrna/gui/gui.h
cmd/smyrna/gui/menucallbacks.h
cmd/smyrna/gui/toolboxcallbacks.h
cmd/smyrna/gui/topviewsettings.h
cmd/smyrna/gvprpipe.h
cmd/smyrna/hier.h
cmd/smyrna/polytess.h
cmd/smyrna/selectionfuncs.h
cmd/smyrna/smyrnadefs.h
cmd/smyrna/topfisheyeview.h
cmd/smyrna/topviewfuncs.h
cmd/smyrna/tvnodes.h
cmd/smyrna/viewport.h
cmd/smyrna/viewportcamera.h

index 8c4d18a3eae3a82be027de618edbaa448b09fb8a..5e4bed97f7be4356277ac9a0601d31eb53789cf3 100644 (file)
@@ -18,9 +18,6 @@
 #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
@@ -29,7 +26,3 @@ extern drawfunc_t OpFns[];
 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
index f2fc6c0df37ed0bbf3dfdefb985e64d426b2adf2..4ea5a882ee3ef7bf58e520e82c6ecb40ff769390 100644 (file)
 
 #include "viewport.h"
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
     int glexpose_main(ViewInfo * v);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index e8986a3dcd8d7844bad446ff3f3976ddcdab63db..b514835cdeba5ddaaff2c6b2d303aa5646f79535 100644 (file)
 
 #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
index 52faa6028e94a04902367c1fade9b5662f6114b5..af5843afbcb27ea30b83331d137293d8bb7605a3 100644 (file)
 #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
index 487f7afa21ea7ee14e2223af03edcbd9deece7aa..4b02adf2edf4163d603df3f4768d6704e047683a 100644 (file)
@@ -1,11 +1,3 @@
 #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
index ccd813d05116682a63ce280ba95e91722d1365de..f3ce3789114dd3f685c38ba6252e8a9941d9b66b 100644 (file)
 #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
@@ -46,7 +42,3 @@ extern "C" {
                                      gpointer user_data);
     _BB void on_consoleincbtn_clicked(GtkWidget * widget,
                                      gpointer user_data);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index 1b5475df733a84527b035ce90060718e11988af3..5f7ad8ea80b21460ce593dfa902e3f84b1e6fdaa 100644 (file)
 #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);
@@ -25,7 +21,3 @@ extern "C" {
 
     _BB void btnTVSaveAs_clicked_cb(GtkWidget * widget,
                                    gpointer user_data);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index 72224f11377f82f340f5d9922ec23baa78e9fa5f..162581cd5d44392d84f536539cb59e65fb2b2e25 100644 (file)
 
 #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
index 1626852e5d5f0ca6888f8d5532e34b60e6edbaee..45741b73ca0b07cd20d8358c7f2746dd0cdb5bc5 100644 (file)
 
 #define MAXIMUM_WIDGET_COUNT   97
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
     extern GladeXML *xml;      //global libglade vars
     extern GtkWidget *gladewidget;
 
@@ -45,7 +41,3 @@ extern "C" {
 /*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
index 54495e6d4594b90194f3fd5409f32b5a00fbaed7..ddec7ce535a73be880c997ade1d15d4859bcee7f 100644 (file)
 
 #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);
@@ -86,7 +82,3 @@ extern "C" {
                                       gpointer user_data);
     _BB void on_gvprbuttonsave_clicked(GtkWidget * widget,
                                       gpointer user_data);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index 5b231abc429b771809732da6ff9e58a7dae10153..eb45ce46171c28059c99d2412ff56735a16b6e9c 100644 (file)
@@ -16,9 +16,6 @@
 #define _BB  __declspec(dllexport)
 #else
 #define _BB /**/
-#endif
-#ifdef __cplusplus
-extern "C" {
 #endif
 
     _BB void btnToolZoomOut_clicked(GtkWidget * widget,
@@ -28,7 +25,3 @@ extern "C" {
     _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
index 5dfb7a091abaffaf351d86e768d2565c245c7f54..c62a251b5b66349c22eecbeae18db63cb82bcb8a 100644 (file)
 
 #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,
@@ -28,7 +24,3 @@ extern "C" {
     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
index 4823a75f6982164623fd7b530a3bdfc84e4c048b..2eca35ccdd7d866468a8918b18674f54f1a0bf6b 100644 (file)
 
 #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
index 54af1de940d1a482df40bdd98df09c1d99a04ab0..2dd40daf4eae6ee28e123852656910df0734f824 100644 (file)
 
 #include <topfish/hierarchy.h>
 
-#ifdef __cplusplus
-extern "C" {
-#endif
-
     typedef struct {
        int num_foci;
        int *foci_nodes;        /* Nodes in real graph */
@@ -52,7 +48,3 @@ extern "C" {
                        double *, hierparms_t *);
 
     focus_t *initFocus(int ncnt);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index bf3d66d0ac2951a6006f17ac26609fc0fa6fce33..be2c87e4168a1429c1d93b484caa5e50d35f9ccc 100644 (file)
 
 #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
index e6799baf25ea4e3163c13469ca50f49e48828db0..60b3311acdaba3185e565131bf0af6dd31eb9e52 100644 (file)
 #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
index b68d0329a642e6ec42d2c4f5a447cb5ff0f7a708..df9be74579a00ca42b8119abf3d7c4a454895a4c 100644 (file)
 #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
@@ -457,7 +453,3 @@ typedef struct
     extern char *smyrnaGlade;
 
     extern void glexpose(void);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index 2d07b478d443fac2e069258742d9782ee82a995b..829c2806af3dfd54e24cd2d9b6fe966fa2ee71b7 100644 (file)
 #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
index 66e4763e2652934865f7feed7a7b1e25dd70e1ea..f1ed539441113d462d5d5a9190dafc934c86dbab 100644 (file)
@@ -12,9 +12,6 @@
 
 #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);
@@ -22,7 +19,3 @@ extern void renderSmGraph(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
index 3d67fdb04d56200c36dc9b24a6defb4655d3001f..03908f1dfb0f7c9383d5aaaf3624d60f7ffb952a 100644 (file)
 
 #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
index 77bf488d921be4187ae187fa1bfee3a0080a9208..0e8d8f51ce2f4e86f202f10a34a0beefe8aa0b59 100644 (file)
 #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);
@@ -43,7 +39,3 @@ extern "C" {
     /* helper functions */
     extern char *get_attribute_value(char *attr, ViewInfo * view,
                                     Agraph_t * g);
-
-#ifdef __cplusplus
-}                              /* end extern "C" */
-#endif
index f20c81579d5be8eb302f7677be1616bfecaba0f0..629779343583ef40262dfd8a23b48bd882ba6d24 100644 (file)
 #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