Changeset 164 in Sophya


Ignore:
Timestamp:
Dec 17, 1998, 2:58:34 AM (27 years ago)
Author:
ercodmgr
Message:

Modif mineure (const_cast conditionnel) Reza 17/12/98

Location:
trunk/SophyaPI/PI
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/SophyaPI/PI/pilistx.cc

    r163 r164  
    107107mNItem++;
    108108
    109 #if defined(__xlC)
     109#if defined(__DECCXX) || defined(__KCC__) || defined(__aCC__)
     110XmString xms = XmStringCreate(const_cast<char *>(item), XmSTRING_DEFAULT_CHARSET);
     111#else
    110112XmString xms = XmStringCreate((char *)(item), XmSTRING_DEFAULT_CHARSET);
    111 #else
    112 XmString xms = XmStringCreate(const_cast<char *>(item), XmSTRING_DEFAULT_CHARSET);
    113113#endif
    114114XmListAddItem(mlist, xms, 0);
  • trunk/SophyaPI/PI/piwdgx.cc

    r163 r164  
    544544char **ppc;
    545545if (narg > 0)  { n = narg, ppc = arg; }
    546 #if defined(__xlC)
     546#if defined(__DECCXX) || defined(__KCC__) || defined(__aCC__)
     547else { ppc = const_cast<char **>(&pc); n = 1; }
     548#else
    547549else { ppc = (char **)(&pc); n = 1; }
    548 #else
    549 else { ppc = const_cast<char **>(&pc); n = 1; }
    550550#endif
    551551//  strncpy(appname, ppc[0], 63); appname[63] = '\0';
    552552strncpy(appclass,"PeidaInt",63);  appclass[63] = '\0';     
    553553//  top = XtAppInitialize(&appctx, appclass, NULL, 0, &n, ppc);
    554 #if defined(__xlC)
     554#if defined(__DECCXX) || defined(__KCC__) || defined(__aCC__)
     555top = XtVaAppInitialize(&appctx, appclass, NULL, 0, &n, ppc, const_cast<String*>(fallback_res), NULL);
     556#else
    555557top = XtVaAppInitialize(&appctx, appclass, NULL, 0, &n, ppc, (String*)(fallback_res), NULL);
    556 #else
    557 top = XtVaAppInitialize(&appctx, appclass, NULL, 0, &n, ppc, const_cast<String*>(fallback_res), NULL);
    558558#endif
    559559dpy = XtDisplay(top);
  • trunk/SophyaPI/PI/psfile.cc

    r163 r164  
    295295 */
    296296PSFile::PSFile(const char * FileName, float sc)
    297 #if defined(__xlC)
     297#if defined(__DECCXX) || defined(__KCC__) || defined(__aCC__)
     298    : mPSFileName(FileName==NULL? "unnamed.eps" : const_cast<char *>(FileName)),
     299#else
    298300    : mPSFileName(FileName==NULL? "unnamed.eps" : (char *)(FileName)),
    299 #else
    300     : mPSFileName(FileName==NULL? "unnamed.eps" : const_cast<char *>(FileName)),
    301301#endif
    302302      Tw (-1.), Th(-1.),         /* Non specifies pour du eps  */
     
    360360               PIPaperSize   paperSize,
    361361               float marginX, float marginY)
    362 #if defined(__xlC)
     362#if defined(__DECCXX) || defined(__KCC__) || defined(__aCC__)
     363 :  mPSFileName (FileName == NULL ? "unnamed.ps" : const_cast<char *>(FileName)),
     364#else
    363365 :  mPSFileName (FileName == NULL ? "unnamed.ps" : (char *)(FileName)),
    364 #else
    365  :  mPSFileName (FileName == NULL ? "unnamed.ps" : const_cast<char *>(FileName)),
    366366#endif
    367367    Tw(PaperSizeTable[paperSize].width),  /* Format papier utilise */
Note: See TracChangeset for help on using the changeset viewer.