diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-05-07 11:50:11 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2022-05-07 11:50:11 -0700 |
commit | 34ed91bd900937447fb79e88f276fe19e6aba457 (patch) | |
tree | 5169fdea0baeec723798b86959dea4cd24c9f59a /src/MultiSrc.c | |
parent | 8a8fbec86a2988aa96cbf913d1fa54946fd9cf82 (diff) |
Fix spelling/wording issues
Found by using:
codespell --builtin clear,rare,usage,informal,code,names
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/MultiSrc.c')
-rw-r--r-- | src/MultiSrc.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/MultiSrc.c b/src/MultiSrc.c index 86703ae..22d9c16 100644 --- a/src/MultiSrc.c +++ b/src/MultiSrc.c @@ -244,7 +244,7 @@ Initialize(Widget request, Widget new, ArgList args, Cardinal *num_args) /* Function Name: ReadText * Description: This function reads the source. * Arguments: w - the MultiSource 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. @@ -441,7 +441,7 @@ ReplaceText(Widget w, XawTextPosition startPos, XawTextPosition endPos, XawTextB * 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. @@ -534,7 +534,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; } @@ -572,7 +572,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 MultiSource Widget. * position - the position to start scanning. * dir - direction to scan. @@ -657,7 +657,7 @@ Search(Widget w, XawTextPosition position, XawTextScanDirection dir, XawTextBloc while ( ptr < piece->text ) { piece = piece->prev; - if (piece == NULL) { /* Begining of text. */ + if (piece == NULL) { /* Beginning of text. */ XtFree((char *)buf); return(XawTextSearchError); } @@ -777,7 +777,7 @@ GetValuesHook(Widget w, ArgList args, Cardinal *num_args) src->multi_src.first_piece->text; } else { - if (_XawMultiSave(w)) /* If save sucessful. */ + if (_XawMultiSave(w)) /* If save successful. */ *((char **) args[i].value) = src->multi_src.string; } break; @@ -905,7 +905,7 @@ _XawMultiSave( * Description: Save the current buffer as a file. * Arguments: w - the MultiSrc 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. * * The public interface is XawAsciiSaveAsFile! */ @@ -953,11 +953,11 @@ RemoveOldStringOrFile(MultiSrcObject 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 |