- Timestamp:
- May 17, 2007, 9:58:42 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/kapa-mods-2007-05/Ohana/src/libkapa/src/KiiOverlay.c
r13405 r13409 53 53 54 54 int i, n, Nline; 55 char *buffer, *type , word[5];55 char *buffer, *type; 56 56 57 57 KiiSelectOverlay (overname, &n); … … 84 84 85 85 free (buffer); 86 KiiWaitAnswer (fd, "DONE"); 86 87 87 88 /* this is very inefficient: 128 bytes per object vs 17 as binary, plus the 88 89 conversions back and forth 89 90 */ 90 KiiScanCommand (fd, 4, "%s", word); 91 if (strcmp (word, "DONE")) { 92 fprintf (stderr, "unexpected response %s\n", word); 93 return (FALSE); 94 } 91 95 92 return (TRUE); 96 93 } … … 99 96 100 97 int n; 101 char word[5];102 98 103 99 KiiSelectOverlay (overname, &n); … … 105 101 KiiSendCommand (fd, 4, "ERSO"); 106 102 KiiSendCommand (fd, 16, "OVERLAY %7d ", n); 107 108 KiiScanCommand (fd, 4, "%s", word); 109 if (strcmp (word, "DONE")) { 110 fprintf (stderr, "unexpected response %s\n", word); 111 return (FALSE); 112 } 103 KiiWaitAnswer (fd, "DONE"); 113 104 return (TRUE); 114 105 } … … 117 108 118 109 int n; 119 char word[5];120 110 121 111 KiiSelectOverlay (overname, &n); … … 128 118 129 119 KiiSendMessage (fd, "FILE: %d %s", n, file); 130 131 KiiScanCommand (fd, 4, "%s", word); 132 if (strcmp (word, "DONE")) { 133 fprintf (stderr, "unexpected response %s\n", word); 134 return (FALSE); 135 } 120 KiiWaitAnswer (fd, "DONE"); 136 121 return (TRUE); 137 122 }
Note:
See TracChangeset
for help on using the changeset viewer.
