Skip to content
Snippets Groups Projects
Commit 4c42c8b3 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

Again for sgi
parent ffa22f0f
No related branches found
No related tags found
No related merge requests found
// $Id: LevelsetPlugin.cpp,v 1.28 2003-01-25 01:22:42 geuzaine Exp $ // $Id: LevelsetPlugin.cpp,v 1.29 2003-01-25 01:31:29 geuzaine Exp $
// //
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "Views.h" #include "Views.h"
#include "Iso.h" #include "Iso.h"
#include "Numeric.h" #include "Numeric.h"
#include "Malloc.h"
GMSH_LevelsetPlugin::GMSH_LevelsetPlugin() GMSH_LevelsetPlugin::GMSH_LevelsetPlugin()
{ {
...@@ -62,7 +63,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) ...@@ -62,7 +63,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
if(v->NbSS){ if(v->NbSS){
Post_View **View = new (Post_View*)[v->NbTimeStep]; Post_View **View = (Post_View**)Malloc(v->NbTimeStep* sizeof(Post_View*));
switch(_orientation){ switch(_orientation){
case ORIENT_PLANE: case ORIENT_PLANE:
...@@ -221,7 +222,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v) ...@@ -221,7 +222,7 @@ Post_View *GMSH_LevelsetPlugin::execute (Post_View *v)
// a little bogus if multiple output views, but we don't use it anyway // a little bogus if multiple output views, but we don't use it anyway
processed = View[0]; processed = View[0];
delete [] View; Free(View);
return processed; return processed;
} }
......
// $Id: Plugin.cpp,v 1.32 2003-01-24 23:13:36 geuzaine Exp $ // $Id: Plugin.cpp,v 1.33 2003-01-25 01:31:29 geuzaine Exp $
// //
// Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle // Copyright (C) 1997 - 2003 C. Geuzaine, J.-F. Remacle
// //
...@@ -119,7 +119,6 @@ GMSH_PluginManager* GMSH_PluginManager::Instance(){ ...@@ -119,7 +119,6 @@ GMSH_PluginManager* GMSH_PluginManager::Instance(){
void GMSH_PluginManager::RegisterDefaultPlugins(){ void GMSH_PluginManager::RegisterDefaultPlugins(){
struct dirent **list; struct dirent **list;
char ext[6];
allPlugins.insert(std::pair<char*,GMSH_Plugin*>("CutMap", allPlugins.insert(std::pair<char*,GMSH_Plugin*>("CutMap",
GMSH_RegisterCutMapPlugin())); GMSH_RegisterCutMapPlugin()));
...@@ -139,6 +138,7 @@ void GMSH_PluginManager::RegisterDefaultPlugins(){ ...@@ -139,6 +138,7 @@ void GMSH_PluginManager::RegisterDefaultPlugins(){
GMSH_RegisterSphericalRaisePlugin())); GMSH_RegisterSphericalRaisePlugin()));
#ifdef _FLTK #ifdef _FLTK
char ext[6];
char *homeplugins = getenv ("GMSHPLUGINSHOME"); char *homeplugins = getenv ("GMSHPLUGINSHOME");
if(!homeplugins) return; if(!homeplugins) return;
#if (FL_MAJOR_VERSION == 1 || FL_MAJOR_VERSION == 2) && (FL_MINOR_VERSION == 0) #if (FL_MAJOR_VERSION == 1 || FL_MAJOR_VERSION == 2) && (FL_MINOR_VERSION == 0)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment