Changeset 174 in Sophya for trunk/SophyaPI/PIext


Ignore:
Timestamp:
Dec 23, 1998, 12:50:10 PM (27 years ago)
Author:
ercodmgr
Message:

Modif pour compil gcc 2.7.2 Reza 23/12/98

Location:
trunk/SophyaPI/PIext
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PIext/piacmd.cc

    r171 r174  
    155155  cout << "exec filename   --   set varname string  --  clr varname  --  listvars \n";
    156156  cout << "traceon/off  --  timingon/off  --  shell cmdline\n";
    157   cout << "link fnameso f1 [f2 f3 f4 f5]  --   call userf [arg1 arg2 ...]\n";
     157  cout << "link fnameso f1 [f2 f3]  --   call userf [arg1 arg2 ...]\n";
    158158  cout << "zone nx ny  --  gratt attributes_list  --  stacknext \n";
    159159  cout << "openfits file -- openppf file -- saveall file -- listobjs --\n";
     
    234234// >>>>>>>>>>> Link dynamique de fonctions C++
    235235else if (kw == "link" ) {
    236   if (tokens.size() < 2) { cout << "PIACmd::Do() Usage: link fnameso f1 [f2 f3 f4 f5]" << endl;  return(0); }
     236  if (tokens.size() < 2) { cout << "PIACmd::Do() Usage: link fnameso f1 [f2 f3]" << endl;  return(0); }
    237237  string sph = "";
    238   for(int gg=0; gg<4; gg++)   tokens.push_back(sph);
    239   int rc = LinkUserFuncs(tokens[0], tokens[1], tokens[2], tokens[3], tokens[4], tokens[5]);
     238  for(int gg=0; gg<5; gg++)   tokens.push_back(sph);
     239  int rc = LinkUserFuncs(tokens[0], tokens[1], tokens[2], tokens[3]);
    240240  if (rc == 0)  cout << "PIAcmd::Do(): Link from " << tokens[0] << " OK " << endl;
    241241}
     
    594594
    595595/* --Methode-- */
    596 int PIACmd::LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3,
    597                           string& func4, string& func5)
     596int PIACmd::LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3)
     597//                          string& func4, string& func5)
    598598{
    599599string cmd;
     
    634634else cerr << "PIACmd/LinkUserFuncs_Erreur: Erreur linking " << func3 << endl;
    635635
     636/*  Pb compile g++ 2.7.2
    636637if ((func4.length() < 1) || (func4 == "-") || (func4 == ".") )  goto fin;
    637638// f = (DlUserProcFunction)  dlsym(dlhandle, func4.c_str());
     
    645646if (f) { nok++;  usfmap[func5] = f; }
    646647else cerr << "PIACmd/LinkUserFuncs_Erreur: Erreur linking " << func5 << endl;
    647 
     648*/
    648649fin:
    649650if (nok < 1) { if (dynlink) delete dynlink;    dynlink = NULL;  return(3); }
  • trunk/SophyaPI/PIext/piacmd.h

    r171 r174  
    3434
    3535//  Link dynamique de fonction user
    36   int           LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3,
    37                               string& func4, string& func5);
     36  int           LinkUserFuncs(string& fnameso, string& func1, string& func2, string& func3);
     37//                            string& func4, string& func5);   compil avec g++ 2.7.2
    3838  NamedObjMgr* mObjMgr;
    3939  PIStdImgApp* mImgApp;
Note: See TracChangeset for help on using the changeset viewer.