Changeset 5852 for trunk/Ohana/src/kapa/graph/LoadBox.c
- Timestamp:
- Dec 27, 2005, 3:23:01 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa/graph/LoadBox.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa/graph/LoadBox.c
r5612 r5852 1 1 # 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;8 2 9 3 int LoadBox () { 10 4 11 int i, status , Nbytes;12 char buffer[128],Axis[16], Labels[16], Ticks[16];5 int i, status; 6 char Axis[16], Labels[16], Ticks[16]; 13 7 Layout *layout; 14 8 15 9 layout = §ion[TheSection]; 16 10 17 SCAN; 18 sscanf (buffer, "%lf %lf %lf %lf", 19 &layout[0].axis[0].min, &layout[0].axis[0].max, 20 &layout[0].axis[1].min, &layout[0].axis[1].max); 11 KiiScanMessage (sock, "%lf %lf %lf %lf", 12 &layout[0].axis[0].min, &layout[0].axis[0].max, 13 &layout[0].axis[1].min, &layout[0].axis[1].max); 21 14 22 15 layout[0].axis[3].min = layout[0].axis[1].min; … … 25 18 layout[0].axis[2].max = layout[0].axis[0].max; 26 19 27 SCAN; 28 sscanf (buffer, "%s %s %s", Axis, Labels, Ticks); 20 KiiScanMessage (sock, "%s %s %s", Axis, Labels, Ticks); 29 21 30 22 for (i = 0; i < 4; i++) { … … 83 75 layout[0].X = 0; 84 76 layout[0].Y = 0; 85 layout[0].expand = 1;77 layout[0].expand = 1; 86 78 */ 87 79
Note:
See TracChangeset
for help on using the changeset viewer.
