IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35603


Ignore:
Timestamp:
May 27, 2013, 4:34:35 PM (13 years ago)
Author:
eugene
Message:

add a single-space pad on messages

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/Ohana/src/libkapa/src/KapaWindow.c

    r29938 r35603  
    2222
    2323  KiiSendCommand (fd, 4, "RSIZ");
    24   KiiSendMessage (fd, "%d %d", Nx, Ny);
     24  KiiSendMessage (fd, "%d %d ", Nx, Ny);
    2525  KiiWaitAnswer (fd, "DONE");
    2626  return (TRUE);
     
    3737
    3838  KiiSendCommand (fd, 4, "MOVE");
    39   KiiSendMessage (fd, "%d %d", x, y);
     39  KiiSendMessage (fd, "%d %d ", x, y);
    4040  KiiWaitAnswer (fd, "DONE");
    4141  return (TRUE);
     
    8383 
    8484  KiiSendCommand (fd, 4, "TOOL");
    85   KiiSendMessage (fd, "%d", location);
     85  KiiSendMessage (fd, "%d ", location);
    8686  KiiWaitAnswer (fd, "DONE");
    8787  return (TRUE);
     
    134134 
    135135  /* send kapa the plot details */
    136   KiiSendMessage (fd, "%8d %8d %d %d %d %d %d %f %f",
     136  KiiSendMessage (fd, "%8d %8d %d %d %d %d %d %f %f ",
    137137                  Npts, data[0].style,
    138138                  data[0].ptype, data[0].ltype,
    139139                  data[0].etype, data[0].ebar, data[0].color,
    140140                  data[0].lweight, data[0].size);
    141   KiiSendMessage (fd, "%g %g %g %g",
     141  KiiSendMessage (fd, "%g %g %g %g ",
    142142                  data[0].xmin, data[0].xmax,
    143143                  data[0].ymin, data[0].ymax);
     
    149149
    150150  /* send kapa the plot details */
    151   KiiSendMessage (fd, "%g %g %g %g",
     151  KiiSendMessage (fd, "%g %g %g %g ",
    152152                  data[0].xmin, data[0].xmax,
    153153                  data[0].ymin, data[0].ymax);
    154154
    155   KiiSendMessage (fd, "%8d %d %d %d %d %d %f %f",
     155  KiiSendMessage (fd, "%8d %d %d %d %d %d %f %f ",
    156156                  data[0].style,
    157157                  data[0].ptype, data[0].ltype,
     
    159159                  data[0].lweight, data[0].size);
    160160
    161   KiiSendMessage (fd, "%g %g %g %g %g",
     161  KiiSendMessage (fd, "%g %g %g %g %g ",
    162162                  data[0].ticktextPad,
    163163                  data[0].padXm, data[0].padXp,
    164164                  data[0].padYm, data[0].padYp);
    165165
    166   KiiSendMessage (fd, "%g %g %g %g",
     166  KiiSendMessage (fd, "%g %g %g %g ",
    167167                  data[0].labelPadXm, data[0].labelPadXp,
    168168                  data[0].labelPadYm, data[0].labelPadYp);
    169169
    170   KiiSendMessage (fd, "%g %g %g %g",
     170  KiiSendMessage (fd, "%g %g %g %g ",
    171171                  data[0].coords.pc1_1, data[0].coords.pc2_2,
    172172                  data[0].coords.pc1_2, data[0].coords.pc2_1);
    173173
    174   KiiSendMessage (fd, "%d %d %s",
     174  KiiSendMessage (fd, "%d %d %s ",
    175175                  data[0].flipeast, data[0].flipnorth,
    176176                  data[0].coords.ctype);
    177177
    178   KiiSendMessage (fd, "%g %g %g %g %g %g",
     178  KiiSendMessage (fd, "%g %g %g %g %g %g ",
    179179                  data[0].coords.crval1,
    180180                  data[0].coords.crval2,
     
    184184                  data[0].coords.cdelt2);
    185185
    186   KiiSendMessage (fd, "%s %s %s", data[0].axis, data[0].ticks, data[0].labels);
     186  KiiSendMessage (fd, "%s %s %s ", data[0].axis, data[0].ticks, data[0].labels);
    187187
    188188  return (TRUE);
     
    265265 
    266266  /* send kapa the plot details */
    267   KiiSendMessage (fd, "%g %g %s %s",
     267  KiiSendMessage (fd, "%g %g %s %s ",
    268268                  data[0].zero, data[0].range, data[0].name, data[0].file);
    269269
     
    308308valid:
    309309  KiiSendCommand (fd, 4, "PLOB");
    310   KiiSendMessage (fd, "%s %d %d %d", type, Npts, Nbytes, swap);
     310  KiiSendMessage (fd, "%s %d %d %d ", type, Npts, Nbytes, swap);
    311311
    312312  Nwrite = write (fd, values, Nbytes);
     
    322322
    323323  KiiSendCommand (fd, 4, "FONT");
    324   KiiSendCommand (fd, 16, "%s", name);
    325   KiiSendCommand (fd, 16, "%d", size);
     324  KiiSendCommand (fd, 16, "%s ", name);
     325  KiiSendCommand (fd, 16, "%d ", size);
    326326  KiiWaitAnswer (fd, "DONE");
    327327  return (TRUE);
     
    331331
    332332  KiiSendCommand (fd, 4, "LABL");
    333   KiiSendMessage (fd, "%6d", mode);
     333  KiiSendMessage (fd, "%6d ", mode);
    334334  KiiSendData (fd, string, strlen(string));
    335335  KiiWaitAnswer (fd, "DONE");
     
    340340 
    341341  KiiSendCommand (fd, 4, "PTXT");
    342   KiiSendMessage (fd, "%f %f %f", x, y, angle);
     342  KiiSendMessage (fd, "%f %f %f ", x, y, angle);
    343343  KiiSendData (fd, string, strlen(string));
    344344  KiiWaitAnswer (fd, "DONE");
     
    366366
    367367  KiiSendCommand (fd, 4, "DSEC");
    368   KiiSendMessage (fd, "%s %6.3f %6.3f %6.3f %6.3f %3d",
     368  KiiSendMessage (fd, "%s %6.3f %6.3f %6.3f %6.3f %3d ",
    369369                  section[0].name,
    370370                  section[0].x,
     
    380380
    381381  KiiSendCommand (fd, 4, "ISEC");
    382   KiiSendMessage (fd, "%s %6.3f %6.3f %3d",
     382  KiiSendMessage (fd, "%s %6.3f %6.3f %3d ",
    383383                  section[0].name,
    384384                  section[0].x,
     
    392392
    393393  KiiSendCommand (fd, 4, "BSEC");
    394   KiiSendMessage (fd, "%s %3d", name, bg);
     394  KiiSendMessage (fd, "%s %3d ", name, bg);
    395395  KiiWaitAnswer (fd, "DONE");
    396396  return (TRUE);
     
    409409valid:
    410410  KiiSendCommand (fd, 4, "MSEC");
    411   KiiSendMessage (fd, "%s %s", name, direction);
     411  KiiSendMessage (fd, "%s %s ", name, direction);
    412412  KiiWaitAnswer (fd, "DONE");
    413413  return (TRUE);
     
    417417
    418418  KiiSendCommand (fd, 4, "SSEC");
    419   KiiSendMessage (fd, "%s", name);
     419  KiiSendMessage (fd, "%s ", name);
    420420  KiiWaitAnswer (fd, "DONE");
    421421  return (TRUE);
     
    425425
    426426  KiiSendCommand (fd, 4, "LSEC");
    427   KiiSendMessage (fd, "%s", name);
    428   KiiWaitAnswer (fd, "DONE");
    429   return (TRUE);
    430 }
     427  KiiSendMessage (fd, "%s ", name);
     428  KiiWaitAnswer (fd, "DONE");
     429  return (TRUE);
     430}
Note: See TracChangeset for help on using the changeset viewer.