Lines Matching +defs:temp +defs:string
127 offset(string),
312 src->ascii_src.string = src->ascii_src.filename;
330 if (src->ascii_src.use_string_in_place && src->ascii_src.string == NULL)
581 * If we are in ascii string emulation mode. Then the
582 * string is not allowed to grow
1026 char * string = StorePiecesInString(old_src);
1029 LoadPieces(src, NULL, string);
1030 XtFree(string);
1061 *((char **)args[i].value) = src->ascii_src.string;
1094 * Frees the string returned by a get values call
1095 * on the string when the source is of type string.
1116 XtFree(src->ascii_src.string);
1117 src->ascii_src.string = NULL;
1129 * Saves all the pieces into a file or string as required.
1149 * If using the string in place then there is no need to play games
1150 * to get the internal info into a readable string.
1163 if (WritePiecesToFile(src, src->ascii_src.string) == False)
1168 XtFree(src->ascii_src.string);
1172 src->ascii_src.string = StorePiecesInString(src);
1217 char * string = StorePiecesInString(src);
1219 ret = WriteToFile(string, (String)name, (unsigned)src->ascii_src.length);
1220 XtFree(string);
1269 XtFree(src->ascii_src.string);
1271 src->ascii_src.string = NULL;
1280 * string - string to write
1284 * Write the string specified to the beginning of the file specified.
1290 WriteToFile(String string, String name, unsigned length)
1297 if (write(fd, string, length) == -1) {
1373 * Store the pieces in memory into a standard ascii string.
1378 char * string;
1382 string = XtMalloc((unsigned)(src->ascii_src.length + 1));
1386 memcpy(string + first, piece->text, (unsigned)piece->used);
1388 string[src->ascii_src.length] = '\0';
1395 LoadPieces(src, NULL, string);
1398 return (string);
1409 * Initializes the string or file.
1418 if (src->ascii_src.string == NULL)
1422 src->ascii_src.string = XtNewString(src->ascii_src.string);
1424 src->ascii_src.length = (XawTextPosition)strlen(src->ascii_src.string);
1428 if (src->ascii_src.string != NULL)
1429 src->ascii_src.length = (XawTextPosition)strlen(src->ascii_src.string);
1450 if (src->ascii_src.string == NULL)
1459 if (src->ascii_src.string == NULL) {
1460 src->ascii_src.string = (char*)"*ascii-src*";
1483 src->ascii_src.string = XtNewString(src->ascii_src.string);
1488 int fd = open(src->ascii_src.string, (int)open_mode, 0666);
1505 params[0] = src->ascii_src.string;
1517 LoadPieces(AsciiSrcObject src, FILE *file, char *string)
1523 if (string == NULL) {
1550 string = src->ascii_src.string;
1556 piece->text = src->ascii_src.string;
1560 ptr = string;
1682 XawTextPosition temp;
1684 for (old_piece = NULL, piece = src->ascii_src.first_piece, temp = 0;
1686 if ((temp += piece->used) > position) {
1687 *first = temp - piece->used;
1691 *first = temp - (old_piece ? old_piece->used : 0);
1817 * Creates a string source.
1827 Arg temp[2];
1829 XtSetArg(temp[0], XtNtype, XawAsciiString);
1830 XtSetArg(temp[1], XtNuseStringInPlace, True);
1831 ascii_args = XtMergeArgLists(temp, TWO, args, num_args);
1876 Arg temp[1];
1879 XtSetArg(temp[0], XtNtype, XawAsciiFile);
1880 ascii_args = XtMergeArgLists(temp, ONE, args, num_args);