XtNcallback,
XtCCallback,
XtRCallback,
- sizeof(XtPointer),
+ sizeof(XtPointer),
offset(callback),
XtRCallback,
(XtPointer)NULL
AsciiSrcObject src = (AsciiSrcObject)w;
XawTextPosition count, start;
Piece *piece;
-#ifndef OLDXAW
+#ifndef OLDXAW
XawTextAnchor *anchor;
XawTextEntity *entity;
XawTextPosition offset, end = pos + length;
/*
* Editing a read only source is not allowed
*/
- if (src->text_src.edit_mode == XawtextRead)
+ if (src->text_src.edit_mode == XawtextRead)
return (XawEditError);
start_piece = FindPiece(src, startPos, &start_first);
src->ascii_src.length += -(endPos - startPos) + text->length;
if ( text->length != 0) {
- /*
+ /*
* Put in the New Stuff
*/
start_piece = FindPiece(src, startPos, &start_first);
* Returns:
* The position of the item found
*/
-static XawTextPosition
+static XawTextPosition
Search(Widget w, register XawTextPosition position, XawTextScanDirection dir,
XawTextBlock *text)
{
}
/*
- * Public routines
+ * Public routines
*/
/*
* Function:
* If using the string in place then there is no need to play games
* to get the internal info into a readable string.
*/
- if (src->ascii_src.use_string_in_place)
+ if (src->ascii_src.use_string_in_place)
return (True);
if (src->ascii_src.type == XawAsciiFile) {
if (src->ascii_src.type == XawAsciiFile)
ret = WritePiecesToFile(src, (String)name);
else {
- String string = StorePiecesInString(src);
+ String string = StorePiecesInString(src);
ret = WriteToFile(string, (String)name, src->ascii_src.length);
XtFree(string);
* Private Functions
*/
static void
-RemoveOldStringOrFile(AsciiSrcObject src, Bool checkString)
+RemoveOldStringOrFile(AsciiSrcObject src, Bool checkString)
{
FreeAllPieces(src);
string = XtMalloc((unsigned)(src->ascii_src.length + 1));
- for (first = 0, piece = src->ascii_src.first_piece ; piece != NULL;
- first += piece->used, piece = piece->next)
+ for (first = 0, piece = src->ascii_src.first_piece ; piece != NULL;
+ first += piece->used, piece = piece->next)
memcpy(string + first, piece->text, (unsigned)piece->used);
string[src->ascii_src.length] = '\0';
* Parameters:
* src - AsciiSrc Widget
* position - position that we are searching for
- * first - position of the first character in this piece (return)
+ * first - position of the first character in this piece (return)
*
* Description:
* Finds the piece containing the position indicated.
return (old_piece); /* if we run off the end the return the last piece */
}
-
+
/*
* Function:
* BreakPiece
ascii_args = XtMergeArgLists(temp, ONE, args, num_args);
num_args++;
- for (i = 0; i < num_args; i++)
+ for (i = 0; i < num_args; i++)
if (streq(ascii_args[i].name, XtNfile)
- || streq(ascii_args[i].name, XtCFile))
+ || streq(ascii_args[i].name, XtCFile))
ascii_args[i].name = XtNstring;
src = XtCreateWidget("genericAsciiDisk", asciiSrcObjectClass, parent,