summaryrefslogtreecommitdiff
path: root/src/AsciiSrc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/AsciiSrc.c')
-rw-r--r--src/AsciiSrc.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/AsciiSrc.c b/src/AsciiSrc.c
index c3d73fa..293f277 100644
--- a/src/AsciiSrc.c
+++ b/src/AsciiSrc.c
@@ -237,7 +237,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args)
/* Function Name: ReadText
* Description: This function reads the source.
* Arguments: w - the AsciiSource widget.
- * pos - position of the text to retreive.
+ * pos - position of the text to retrieve.
* RETURNED text - text block that will contain returned text.
* length - maximum number of characters to read.
* Returns: The number of characters read into the buffer.
@@ -393,7 +393,7 @@ ReplaceText (Widget w, XawTextPosition startPos, XawTextPosition endPos,
* position - the position to start scanning.
* type - type of thing to scan for.
* dir - direction to scan.
- * count - which occurance if this thing to search for.
+ * count - which occurrence of this thing to search for.
* include - whether or not to include the character found in
* the position that is returned.
* Returns: the position of the item found.
@@ -489,7 +489,7 @@ Scan (Widget w, XawTextPosition position, XawTextScanType type,
if ( ptr < piece->text ) {
piece = piece->prev;
- if (piece == NULL) /* Begining of text. */
+ if (piece == NULL) /* Beginning of text. */
return(0);
ptr = piece->text + piece->used - 1;
}
@@ -527,7 +527,7 @@ Scan (Widget w, XawTextPosition position, XawTextScanType type,
}
/* Function Name: Search
- * Description: Searchs the text source for the text block passed
+ * Description: Searches the text source for the text block passed
* Arguments: w - the AsciiSource Widget.
* position - the position to start scanning.
* dir - direction to scan.
@@ -582,7 +582,7 @@ Search(Widget w, XawTextPosition position, XawTextScanDirection dir,
while ( ptr < piece->text ) {
piece = piece->prev;
- if (piece == NULL) { /* Begining of text. */
+ if (piece == NULL) { /* Beginning of text. */
XtFree(buf);
return(XawTextSearchError);
}
@@ -684,7 +684,7 @@ GetValuesHook(Widget w, ArgList args, Cardinal * num_args)
*((char **) args[i].value) = src->ascii_src.first_piece->text;
}
else {
- if (XawAsciiSave(w)) /* If save sucessful. */
+ if (XawAsciiSave(w)) /* If save successful. */
*((char **) args[i].value) = src->ascii_src.string;
}
break;
@@ -814,7 +814,7 @@ XawAsciiSave(Widget w)
* Description: Save the current buffer as a file.
* Arguments: w - the AsciiSrc widget.
* name - name of the file to save this file into.
- * Returns: True if the save was sucessful.
+ * Returns: True if the save was successful.
*/
Boolean
@@ -895,11 +895,11 @@ RemoveOldStringOrFile(AsciiSrcObject src, Boolean checkString)
}
/* Function Name: WriteToFile
- * Description: Write the string specified to the begining of the file
+ * Description: Write the string specified to the beginning of the file
* specified.
* Arguments: string - string to write.
* name - the name of the file
- * Returns: returns TRUE if sucessful, FALSE otherwise.
+ * Returns: returns TRUE if successful, FALSE otherwise.
*/
static Boolean
@@ -1293,7 +1293,7 @@ CvtStringToAsciiType(XrmValuePtr args, Cardinal * num_args, XrmValuePtr fromVal,
#ifdef ASCII_STRING
/************************************************************
*
- * Compatability functions.
+ * Compatibility functions.
*
************************************************************/