IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Dec 27, 2005, 3:23:01 PM (21 years ago)
Author:
eugene
Message:

substantial work to move kii/kapa call into libkapa, unify RotFont, bDraw functions

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa/event/SetSection.c

    r4769 r5852  
    11# include "Ximage.h"
    2 # define SCAN \
    3 status = read (sock, buffer, 16); \
    4 buffer[16] = 0; \
    5 sscanf (buffer, "%*s %d", &Nbytes); \
    6 status = read (sock, buffer, Nbytes); \
    7 buffer[status] = 0;
    82
    93int SetSection (int SwitchSection) {
    104 
    11   int i, status, Nbytes, NewSection, ThisSection, MoveSection;
    12   char buffer[128], name[128];
     5  int i, NewSection, ThisSection, MoveSection;
     6  char name[128];
    137  double x, y, dx, dy;
    148
    15   SCAN;
    16 
    179  if (SwitchSection) {
    18     sscanf (buffer, "%s", name);
     10    KiiScanMessage (sock, "%s", name);
    1911  } else {
    20     sscanf (buffer, "%s %lf %lf %lf %lf",
    21             name, &x, &y, &dx, &dy);
     12    KiiScanMessage (sock, "%s %lf %lf %lf %lf", name, &x, &y, &dx, &dy);
    2213  }   
    2314
     
    9283int ListSection () {
    9384 
    94   int i, status, Nbytes, ThisSection;
    95   char buffer[128], name[128];
     85  int i, ThisSection;
     86  char name[128];
    9687
    97   SCAN;
    98 
    99   sscanf (buffer, "%s", name);
     88  KiiScanMessage (sock, "%s", name);
    10089
    10190  if (!strcmp (name, "*")) {
Note: See TracChangeset for help on using the changeset viewer.