Changeset 1222 in Sophya


Ignore:
Timestamp:
Oct 10, 2000, 2:33:59 PM (25 years ago)
Author:
ercodmgr
Message:

DecodeTypeIdName pour T T* etc.. cmv 10/10/00

File:
1 edited

Legend:

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

    r1216 r1222  
    168168  if(lstr==0) return type;
    169169
    170   // Les 2 caracteres precedents donnent: signed, unsigned, *, & ou const.
     170  // Les caracteres precedents donnent: signed, unsigned, *, & ou const.
    171171  // Mais si on a un Z, alors c'est un complexe (code ...t7complex1Z...)
    172   for(int i=0; i<=2; i++) {
     172  for(int i=0; i<(int)strlen(str); i++) {
    173173    lstr--;
    174174    if     (str[lstr]=='U') type = "unsigned " + type;
     
    179179    else if(str[lstr]=='Z') {  // Complexe
    180180      type = "complex<" + type + ">";
    181       for(int j=0;j<=1;j++) {
     181      for(int j=0;j<(int)strlen(str);j++) {
    182182        if     (str[j]=='P') type = type + "*";
    183183        else if(str[j]=='R') type = type + "&";
     
    193193
    194194return type;
    195 
    196195#else
    197196return linuxtype;
Note: See TracChangeset for help on using the changeset viewer.