summaryrefslogtreecommitdiff
path: root/pico
diff options
context:
space:
mode:
Diffstat (limited to 'pico')
-rw-r--r--pico/basic.c12
-rw-r--r--pico/bind.c6
-rw-r--r--pico/browse.c4
-rw-r--r--pico/buffer.c4
-rw-r--r--pico/composer.c10
-rw-r--r--pico/display.c4
-rw-r--r--pico/ebind.h2
-rw-r--r--pico/estruct.h4
-rw-r--r--pico/file.c4
-rw-r--r--pico/osdep/altedit.c4
-rw-r--r--pico/osdep/mouse.c4
-rw-r--r--pico/osdep/msdlg.c12
-rw-r--r--pico/osdep/msmenu.h2
-rw-r--r--pico/osdep/mswin.c78
-rw-r--r--pico/osdep/raw.c2
-rw-r--r--pico/pico.c2
-rw-r--r--pico/pico.h2
-rw-r--r--pico/search.c6
18 files changed, 81 insertions, 81 deletions
diff --git a/pico/basic.c b/pico/basic.c
index 117719bb..030757eb 100644
--- a/pico/basic.c
+++ b/pico/basic.c
@@ -277,9 +277,9 @@ backline(int f, int n)
/*
- * go back to the begining of the current paragraph
+ * go back to the beginning of the current paragraph
* here we look for a <NL><NL> or <NL><TAB> or <NL><SPACE>
- * combination to delimit the begining of a paragraph
+ * combination to delimit the beginning of a paragraph
*/
int
gotobop(int f, int n)
@@ -346,7 +346,7 @@ gotobop(int f, int n)
/*
* go forword to the end of the current paragraph
* here we look for a <NL><NL> or <NL><TAB> or <NL><SPACE>
- * combination to delimit the begining of a paragraph
+ * combination to delimit the beginning of a paragraph
*/
int
gotoeop(int f, int n)
@@ -616,7 +616,7 @@ scrollback(int n, int movedot)
else {
/* Requested not to move dot, but we do need to keep in on
* the screen. Verify that it is still in the range of lines
- * visable in the window. Loop from the first line to the
+ * visible in the window. Loop from the first line to the
* last line, until we reach the end of the buffer or the end
* of the window. If we find the dot, then we don't need
* to move it. */
@@ -769,7 +769,7 @@ setmark(int f, int n)
/*
* Swap the values of "." and "mark" in the current window. This is pretty
- * easy, bacause all of the hard work gets done by the standard routine
+ * easy, because all of the hard work gets done by the standard routine
* that moves the mark about. The only possible error is "no mark". Bound to
* "C-X C-X".
*/
@@ -812,7 +812,7 @@ setimark(int f, int n)
/*
* Swap the values of "." and "mark" in the current window. This is pretty
- * easy, bacause all of the hard work gets done by the standard routine
+ * easy, because all of the hard work gets done by the standard routine
* that moves the mark about. The only possible error is "no mark". Bound to
* "C-X C-X".
*/
diff --git a/pico/bind.c b/pico/bind.c
index fda211f9..9d903ea0 100644
--- a/pico/bind.c
+++ b/pico/bind.c
@@ -187,7 +187,7 @@ static KEYMENU menu_scroll[] = {
#define OVERLAP 2 /* displayed page overlap */
/*
- * scrollw - takes beginning row and ending row to diplay an array
+ * scrollw - takes beginning row and ending row to display an array
* of text lines. returns either 0 if scrolling terminated
* normally or the value of a ctrl character typed to end it.
*
@@ -210,7 +210,7 @@ wscrollw(int begrow, int endrow, char *utf8textp[], int textlen)
dlines = endrow - begrow - 1;
while(!done) {
/*
- * diplay a page loop ...
+ * display a page loop ...
*/
if(prevoffset != loffset){
for(i = 0; i < dlines; i++){
@@ -374,7 +374,7 @@ rebindfunc(int (*a)(int, int), int (*b)(int, int))
while(kp->k_fp != NULL){ /* go thru whole list, and */
if(kp->k_fp == a)
- kp->k_fp = b; /* replace all occurances */
+ kp->k_fp = b; /* replace all occurrences */
kp++;
}
}
diff --git a/pico/browse.c b/pico/browse.c
index 49f9fb9b..6890a784 100644
--- a/pico/browse.c
+++ b/pico/browse.c
@@ -287,7 +287,7 @@ pico_file_browse(PICO *pdata, char *dir, size_t dirlen, char *fn, size_t fnlen,
/*
* FileBrowse - display contents of given directory dir
*
- * intput:
+ * input:
* dir points to initial dir to browse.
* dirlen- buffer size of dir
* fn initial file name.
@@ -1855,7 +1855,7 @@ getfcells(char *dname, int fb_flags)
/*
* Filter dot files? Always filter ".", never filter "..",
- * and sometimes fitler ".*"...
+ * and sometimes filter ".*"...
*/
if(*np == '.' && (!(*(np+1) == '.' && *(np+2) == '\0')
&& !(*(np+1) == '\0' && (fb_flags&FB_SAVE)))
diff --git a/pico/buffer.c b/pico/buffer.c
index 87423d28..741c969f 100644
--- a/pico/buffer.c
+++ b/pico/buffer.c
@@ -88,7 +88,7 @@ bfind(char *bname, int cflag, int bflag)
}
/* find the place in the list to insert this buffer */
if (bheadp == NULL || strcmp(bheadp->b_bname, bname) > 0) {
- /* insert at the begining */
+ /* insert at the beginning */
bp->b_bufp = bheadp;
bheadp = bp;
} else {
@@ -347,7 +347,7 @@ sgetline(char **ibuf, int *nchars, char *obuf, int blen)
}
}
}
- *bufp = '\0'; /* end retured line */
+ *bufp = '\0'; /* end returned line */
*ibuf = (*cbuf == CR) ? ++cbuf : cbuf;
*ibuf = (*cbuf == LF) ? ++cbuf : cbuf;
return(retval);
diff --git a/pico/composer.c b/pico/composer.c
index 88be7ac2..6649da50 100644
--- a/pico/composer.c
+++ b/pico/composer.c
@@ -539,7 +539,7 @@ HeaderEditor(int f, int n)
* since we left...
*/
- /* fix postition */
+ /* fix position */
if(curwp->w_doto < headents[ods.cur_e].prwid)
ods.p_ind = 0;
else if(curwp->w_doto < ods.p_ind + headents[ods.cur_e].prwid)
@@ -3493,7 +3493,7 @@ InvertPrompt(int entry, int state)
(*term.t_rev)(1);
while(*bufp && *(bufp + 1))
- pputc(*bufp++, 1); /* putc upto last char */
+ pputc(*bufp++, 1); /* putc up to last char */
if(state)
(*term.t_rev)(0);
@@ -4106,7 +4106,7 @@ KillHeaderLine(struct hdr_line *l, int append)
* functions.
*
* returns:
- * TRUE if something good happend
+ * TRUE if something good happened
* FALSE otherwise
*/
int
@@ -4498,7 +4498,7 @@ packheader(void)
count = 0;
while(line != NULL){
/*
- * add one for possible concatination of a ' ' character ...
+ * add one for possible concatenation of a ' ' character ...
*/
p = ucs4_to_utf8_cpystr(line->text);
if(p){
@@ -4816,7 +4816,7 @@ mark_sticky(struct headerentry *h)
#undef HeaderEditor
/*
- * Wraper function for the real header editor.
+ * Wrapper function for the real header editor.
* Does the important tasks of:
* 1) verifying that we _can_ edit the headers.
* 2) acting on the result code from the header editor.
diff --git a/pico/display.c b/pico/display.c
index 6bb62b3b..4902a49e 100644
--- a/pico/display.c
+++ b/pico/display.c
@@ -957,7 +957,7 @@ updext(void)
lbound = w;
- /* scan through the line outputing characters to the virtual screen
+ /* scan through the line outputting characters to the virtual screen
* once we reach the left edge
*/
vtmove(currow, -lbound); /* start scanning offscreen */
@@ -3732,7 +3732,7 @@ update_scroll (void)
/*
- * Count the number of lines in the current bufer. Done when:
+ * Count the number of lines in the current buffer. Done when:
*
* when told to recount: curbp->b_linecnt == -1
* when the top line changed: curwp->w_linep != last_top_line
diff --git a/pico/ebind.h b/pico/ebind.h
index 4f1687b4..1a0698ea 100644
--- a/pico/ebind.h
+++ b/pico/ebind.h
@@ -25,7 +25,7 @@
* There are very limited number of flat ctrl-key bindings left, and
* most of them are slated for yet-to-be implemented functions, like
* invoking an alternate editor in the composer and necessary funcs
- * for imlementing attachment handling. We really want to avoid
+ * for implementing attachment handling. We really want to avoid
* going to multiple keystroke functions. -mss
*
*/
diff --git a/pico/estruct.h b/pico/estruct.h
index 2d0f650c..f2f41947 100644
--- a/pico/estruct.h
+++ b/pico/estruct.h
@@ -31,7 +31,7 @@
/* Configuration options */
#define CVMVAS 1 /* arguments to page forward/back in pages */
-#define NFWORD 1 /* forward word jumps to begining of word */
+#define NFWORD 1 /* forward word jumps to beginning of word */
#define TYPEAH 0 /* type ahead causes update to be skipped */
#define REVSTA 1 /* Status line appears in reverse video */
@@ -319,7 +319,7 @@ typedef struct {
int (*k_fp)(); /* Routine to handle it */
} KEYTAB;
-/* sturcture used for key menu painting */
+/* structure used for key menu painting */
typedef struct {
char *name; /* key to display (UTF-8) */
diff --git a/pico/file.c b/pico/file.c
index 34017fec..68c5e1d9 100644
--- a/pico/file.c
+++ b/pico/file.c
@@ -557,7 +557,7 @@ readin(char fname[], /* name of file to read */
* Update the remembered file name and clear the
* buffer changed flag. This handling of file names
* is different from the earlier versions, and
- * is more compatable with Gosling EMACS than
+ * is more compatible with Gosling EMACS than
* with ITS EMACS. Bound to "C-X C-W".
*/
int
@@ -795,7 +795,7 @@ filewrite(int f, int n)
/*
* Save the contents of the current
- * buffer in its associatd file. No nothing
+ * buffer in its associated file. No nothing
* if nothing has changed (this may be a bug, not a
* feature). Error if there is no remembered file
* name for the buffer. Bound to "C-X C-S". May
diff --git a/pico/osdep/altedit.c b/pico/osdep/altedit.c
index 44e17fe8..8886a06f 100644
--- a/pico/osdep/altedit.c
+++ b/pico/osdep/altedit.c
@@ -574,7 +574,7 @@ child_handler(int sig)
* sleep function, thus making the stack frame for the signal function
* invalid, and when the ALARM handler later longjmps back into the
* sleep function it does no longer have a valid stack frame.
- * My sugested fix is to cancel the pending alarm in the SIGCHLD
+ * My suggested fix is to cancel the pending alarm in the SIGCHLD
* handler before longjmp'ing. This shouldn't hurt as there
* shouldn't be any ALARM pending at this point except possibly from
* the sleep call.
@@ -586,7 +586,7 @@ child_handler(int sig)
* The sleep call might have set up a signal handler which would
* longjmp back into the sleep code, and that would cause a crash.
*/
- signal(SIGALRM, SIG_IGN); /* Cancel signal handeler */
+ signal(SIGALRM, SIG_IGN); /* Cancel signal handler */
alarm(0); /* might longjmp back into sleep */
#endif
longjmp(pico_child_state, 1);
diff --git a/pico/osdep/mouse.c b/pico/osdep/mouse.c
index 4f2317a0..9e9ddce9 100644
--- a/pico/osdep/mouse.c
+++ b/pico/osdep/mouse.c
@@ -263,7 +263,7 @@ mouseexist(void)
}
/*
- * checkmouse - Check mouse and return maped command.
+ * checkmouse - Check mouse and return mapped command.
*
* EXPORTED to pico.
* NOTE: "down", "xxx", and "yyy" aren't used under windows.
@@ -299,7 +299,7 @@ checkmouse (unsigned long *ch, int ddd, int xxx, int yyy)
/*
* If there is a tracking function it gets all the mouse events
- * reguardless of where they occur.
+ * regardless of where they occur.
*/
if (mtrack != NULL) {
r = mtrack (mouse.event, mrow, mcol, mouse.button, mouse.keys);
diff --git a/pico/osdep/msdlg.c b/pico/osdep/msdlg.c
index 1a262551..9c8fdc55 100644
--- a/pico/osdep/msdlg.c
+++ b/pico/osdep/msdlg.c
@@ -152,7 +152,7 @@ mswin_usedialog (void)
button_list -- pointer to array of mDlgButton's. input chars matching
those in list return value from list. Nearly identical
to Pine's ESCKEY structure.
- help -- Arrary of strings for help text in bottom screen lines
+ help -- Array of strings for help text in bottom screen lines
flags -- flags
Result: editing input string
@@ -359,7 +359,7 @@ mswin_dialog_proc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
case IDCANCEL:
/*
- * Cancel operation. Don't retreive new text.
+ * Cancel operation. Don't retrieve new text.
*/
gOEInfo.result = 1;
EndDialog (hDlg, gOEInfo.result);
@@ -387,7 +387,7 @@ mswin_dialog_proc (HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
default:
/*
* Search button list for button with this ID. If found
- * return it's result code. Retreive text.
+ * return it's result code. Retrieve text.
*/
if ( wParam >= BTN_FIRSTID &&
wParam < BTN_FIRSTID + (WPARAM) gOEInfo.button_count) {
@@ -547,7 +547,7 @@ mswin_yesno_lptstr(LPTSTR prompt)
mstructure.
dflt -- Value returned when "Enter" is pressed.
on_ctrl_C -- Value returned to cancel dialog (ESC).
- help -- Arrary of strings for help text in bottom screen
+ help -- Array of strings for help text in bottom screen
lines
flags -- flags
@@ -557,7 +557,7 @@ mswin_yesno_lptstr(LPTSTR prompt)
or one of the other return values defined in button_list.
-Note: To prcess keyboard in put we use a custom dialog control
+Note: To process keyboard input we use a custom dialog control
which is invisible but always has the input focus.
----------------------------------------------------------------------*/
@@ -987,7 +987,7 @@ BuildButtonList(HWND hDlg, MDlgButton *built_in, int biCount, MDlgButton *button
w = bwidth; /* Original button width. */
cols = 1 + ((biCount + btnCount) - 1) / rows; /* Calc num cols. */
- /* Need to srink button width? */
+ /* Need to shrink button width? */
if (2 * margine + bwidth * cols + BSPACE * (cols - 1) > rDlg.right) {
w = ((rDlg.right - (2 * margine)) - (BSPACE * (cols-1))) / cols;
}
diff --git a/pico/osdep/msmenu.h b/pico/osdep/msmenu.h
index 83ca66af..01f992e7 100644
--- a/pico/osdep/msmenu.h
+++ b/pico/osdep/msmenu.h
@@ -28,7 +28,7 @@
/*
* Menu key definitions.
- * Should be same values as in resouce.h
+ * Should be same values as in resource.h
* These are all in a range from KS_RANGESTART to KS_RANGEEND
* with no holes.
*/
diff --git a/pico/osdep/mswin.c b/pico/osdep/mswin.c
index b51268d2..ba72747a 100644
--- a/pico/osdep/mswin.c
+++ b/pico/osdep/mswin.c
@@ -60,7 +60,7 @@
#define FDEBUG /* Standard file debugging. */
#undef SDEBUG /* Verbose debugging of startup and windows handling*/
-#undef CDEBUG /* Verbose debugging of character input timeing. */
+#undef CDEBUG /* Verbose debugging of character input timing. */
#undef OWN_DEBUG_FILE /* Define if we want to write to our own debug file,
* not pine's. */
@@ -120,7 +120,7 @@
/* My Timer Message */
#define MY_TIMER_ID 33
-/* timeout period in miliseconds. */
+/* timeout period in milliseconds. */
#define MY_TIMER_PERIOD (UINT)((IDLE_TIMEOUT + 1)*1000)
/***** We use variable my_timer_period now instead so that we can set
it differently when in pine and when in regular old pico.
@@ -245,7 +245,7 @@ typedef int (*FileDropCallBackProc)();
typedef short CORD;
/* NOTE: There is currently code that assumes that CHAR and CharAttrib
- * are one byte in size. All this code is flaged with a preceeding
+ * are one byte in size. All this code is flagged with a preceding
* assert () */
/* Struct that defines command menu entries. */
@@ -274,12 +274,12 @@ typedef struct tagTTYINFO {
CARETS cCaretStyle; /* Current caret's style */
int scrollRange; /* Current scroll bar range. */
long scrollPos; /* Current scroll position. */
- long scrollTo; /* Possition of last scroll to. */
+ long scrollTo; /* Position of last scroll to. */
HFONT hTTYFont;
LOGFONT lfTTYFont;
- DWORD rgbFGColor; /* Normal forground color. */
+ DWORD rgbFGColor; /* Normal foreground color. */
DWORD rgbBGColor; /* Normal background color. */
- DWORD rgbRFGColor; /* Reverse forground color. */
+ DWORD rgbRFGColor; /* Reverse foreground color. */
DWORD rgbRBGColor; /* Reverse background color */
unsigned screenDirty:1; /* TRUE if screen needs update. */
unsigned eraseScreen:1; /* TRUE if need to erase whole screen */
@@ -822,7 +822,7 @@ wWinMain( HINSTANCE hInstance, HINSTANCE hPrevInstance,
*/
_set_invalid_parameter_handler (mswin_invalidparameter);
-#ifdef OWN_DEBUG_FILE /* Want to write to seperate memdebug.txt file. */
+#ifdef OWN_DEBUG_FILE /* Want to write to separate memdebug.txt file. */
mswin_debugfile = fopen ("memdebug.txt", "w");
fprintf (mswin_debugfile, "Beginning of mswin debug log\n");
if (mswin_debugfile != NULL) {
@@ -1488,7 +1488,7 @@ PWndProc (HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
break;
case WM_QUERYENDSESSION:
- /* Returns non-zero if I can exit, otherwize zero, and the end
+ /* Returns non-zero if I can exit, otherwise zero, and the end
* session operation stops. */
return ((LRESULT)ConfirmExit ());
@@ -1847,7 +1847,7 @@ ResetTTYFont (HWND hWnd, PTTYINFO pTTYInfo, LOGFONT *newFont)
#ifdef SDEBUG
if (mswin_debug >= 5)
- fprintf (mswin_debugfile, "ResetTTYFont::: entered, curent window size X %d, Y %d\n",
+ fprintf (mswin_debugfile, "ResetTTYFont::: entered, current window size X %d, Y %d\n",
pTTYInfo->xSize, pTTYInfo->ySize);
#endif
@@ -2343,7 +2343,7 @@ AboutToSizeTTY (HWND hWnd, WINDOWPOS *winPos)
(winPos->flags & (SWP_NOSIZE | SWP_NOMOVE)) == 0) {
#ifdef SDEBUG
if (mswin_debug >= 5)
- fprintf (mswin_debugfile, "AboutToSizeTTY::: substitue pos (%d, %d), size (%d, %d)\n",
+ fprintf (mswin_debugfile, "AboutToSizeTTY::: substitute pos (%d, %d), size (%d, %d)\n",
pTTYInfo->xDesPos, pTTYInfo->yDesPos,
pTTYInfo->xDesSize, pTTYInfo->yDesSize);
#endif
@@ -2593,7 +2593,7 @@ MoveTTY (HWND hWnd, int xPos, int yPos)
* stream.
*
* Scrolling in the TTY window is complicated by the way pine
- * process events. Normal windows applications are entirly event
+ * process events. Normal windows applications are entirely event
* driven. The top level does nothing but dispatch events. In
* pine, the top level implements the logic. Events are only
* dispatched by the lowest levels.
@@ -3662,7 +3662,7 @@ WriteTTYChar (HWND hWnd, TCHAR ch)
*
* Description:
* It is a simple utility function that simply performs the
- * MPI and invokes the dialog box with a DWORD paramter.
+ * MPI and invokes the dialog box with a DWORD parameter.
*
* Parameters:
* similar to that of DialogBoxParam() with the exception
@@ -3936,7 +3936,7 @@ SelectTTYFont (HWND hWnd)
/*
- * Set a specific color (forground, background, reverse, normal) to
+ * Set a specific color (foreground, background, reverse, normal) to
* the color specified by name.
*/
LOCAL void
@@ -4005,7 +4005,7 @@ ScanInt (char *str, int min, int max, int *val)
* Convert a RGB string to a color ref. The string should look like:
* rrr,ggg,bbb
* where rrr, ggg, and bbb are numbers between 0 and 255 that represent
- * red, gree, and blue values. Must be comma seperated.
+ * red, gree, and blue values. Must be comma separated.
* Returns:
* TRUE - Successfully converted string.
* FALSE - Bad format, 'cf' unchanged.
@@ -4206,7 +4206,7 @@ TBShow (HWND hWnd)
/*
- * Make procinstance for dialog funciton.
+ * Make procinstance for dialog function.
*/
HideCaret (hWnd);
if (gToolBarProc == NULL)
@@ -5559,7 +5559,7 @@ MSWIconPaint(int row, HDC hDC)
;
if(pIcon){
- /* Invalidate rectange covering singel character. */
+ /* Invalidate rectangle covering single character. */
DrawIconEx(hDC, 0, (row * gpTTYInfo->yChar) + gpTTYInfo->yOffset,
pIcon->hIcon, 2 * gpTTYInfo->xChar, gpTTYInfo->yChar,
0, NULL, DI_NORMAL);
@@ -5925,7 +5925,7 @@ mswin_setwindow(char *fontName_utf8, char *fontSize_utf8, char *fontStyle_utf8,
ppi = GetDeviceCaps(hDC, LOGPIXELSY);
ReleaseDC(ghTTYWnd, hDC);
- /* Default height, then examin the requested fontSize. */
+ /* Default height, then examine the requested fontSize. */
newFont.lfHeight = -MulDiv(12, ppi, 72);
if(ScanInt(fontSize_utf8, FONT_MIN_SIZE, FONT_MAX_SIZE, &newHeight)){
newHeight = abs(newHeight);
@@ -6114,7 +6114,7 @@ mswin_showwindow()
/*
- * Retreive the current font name, font size, and window position
+ * Retrieve the current font name, font size, and window position
* These get stored in the pinerc file and will be passed to
* mswin_setwindow() when pine starts up. See pinerc for comments
* on the format.
@@ -6325,7 +6325,7 @@ mswin_setscrollpos (long pos)
/*
- * retreive the current scroll postion.
+ * retrieve the current scroll position.
*/
long
mswin_getscrollpos (void)
@@ -6683,8 +6683,8 @@ mswin_setclosetext (char *pCloseText)
/*
- * Called when upper layer is in a busy loop. Allows us to yeild to
- * Windows and perhaps process some events. Does not yeild control
+ * Called when upper layer is in a busy loop. Allows us to yield to
+ * Windows and perhaps process some events. Does not yield control
* to other applications.
*/
int
@@ -7113,7 +7113,7 @@ mswin_outc (char c)
gpTTYInfo->pCellWidth[offset] = wcellwidth((UCS)c) * gpTTYInfo->xChar;
gpTTYInfo->pAttrib[offset] = gpTTYInfo->curAttrib;
- /* Invalidate rectange covering singel character. */
+ /* Invalidate rectangle covering single character. */
rect.left = (gpTTYInfo->nColumn * gpTTYInfo->xChar) +
gpTTYInfo->xOffset;
rect.right = rect.left + gpTTYInfo->xChar;
@@ -7566,7 +7566,7 @@ mswin_newmailtext (char *t_utf8)
* Change the appearance of minimized icon so user knows there's new
* mail waiting for them. On win 3.1 systems we redraw the icon.
* on win95 systems we update the icon in the task bar,
- * and possibly udpate the small icon in the taskbar tool tray.
+ * and possibly update the small icon in the taskbar tool tray.
*/
t_lptstr = utf8_to_lptstr(t_utf8);
UpdateTrayIcon(NIM_MODIFY, ghNewMailIcon, t_lptstr);
@@ -7820,7 +7820,7 @@ mswin_setwindowmenu (int menu)
LOCAL HDC P_PrintDC; /* Printer device context. */
LOCAL int P_PageRows; /* Number of rows we put on a page. */
LOCAL int P_PageColumns; /* Number of columns we put on a page. */
-LOCAL int P_RowHeight; /* Hight of a row in printer pixels. */
+LOCAL int P_RowHeight; /* Height of a row in printer pixels. */
LOCAL int P_CurRow; /* Current row, starting at zero */
LOCAL int P_CurCol; /* Current col, starting at zero. */
LOCAL int P_TopOffset; /* Top Margin offset, in pixels. */
@@ -7833,7 +7833,7 @@ LPTSTR P_LineText; /* Pointer to line buffer. */
/*
* Define the margin as number of lines at top and bottom of page.
- * (might be better to define as a percent of verticle page size)
+ * (might be better to define as a percent of vertical page size)
*/
#define VERTICLE_MARGIN 3 /* lines at top and bottom of page. */
#define HORIZONTAL_MARGIN 1 /* margine at left & right in chars */
@@ -8120,7 +8120,7 @@ mswin_print_ready(WINHAND hWnd, LPTSTR docDesc)
/*
* Start page.
* Must select font for each page or it returns to default.
- * Windows seems good about maping selected font to a font that
+ * Windows seems good about mapping selected font to a font that
* will actually print on the printer.
*/
StartPage (P_PrintDC);
@@ -8193,7 +8193,7 @@ mswin_print_done(void)
/*
- * Return ponter to a text string that describes the erorr.
+ * Return pointer to a text string that describes the error.
*/
char *
mswin_print_error(int error_code)
@@ -8311,7 +8311,7 @@ LOCAL TCHAR gLastDir[PATH_MAX];
* Keep track of the last dir visited. Most of the time pine just passes us
* the "home directory", which usually is not where the user wants to start.
* Assume that the first time we are called we are being passed the home
- * direcory.
+ * directory.
*/
static void
FillInitialDir (LPCTSTR *iDir, LPTSTR targDir)
@@ -9792,7 +9792,7 @@ EditCopy (void)
/*
- * Called in responce to "Copy Append" menu command, when there is an active
+ * Called in response to "Copy Append" menu command, when there is an active
* Windows selection on the screen.
*/
LOCAL void
@@ -10002,7 +10002,7 @@ EditCancelPaste (void)
/*
* Get the next byte from the paste buffer. If all bytes have been
- * retreived, free the paste buffer.
+ * retrieved, free the paste buffer.
* Map all CRLF sequence to a single CR.
*/
LOCAL UCS
@@ -10502,7 +10502,7 @@ mswin_shell_exec(char *command_utf8, HINSTANCE *pChildProc)
/*
* HACK -- since star is very unlikely to actually appear
- * in a command name thats launched via a shell command line,
+ * in a command name that's launched via a shell command line,
* a leading one indicates special handling.
*/
if(command_lpt[0] == '*'){
@@ -10659,7 +10659,7 @@ static struct mswin_reg_key mswin_pine_regs[] = {
/*
- * data: unitialized buffer, could be null
+ * data: uninitialized buffer, could be null
*/
int
mswin_reg(int op, int tree, char *data_utf8, size_t size)
@@ -11814,7 +11814,7 @@ format_newmail_string(LPTSTR orig_lptstr, int format_len)
/*
* Fill up string till we reach the format_len, we can backtrack
- * if we need elipses.
+ * if we need ellipsis.
*/
for(i = 0, colLen = 0;
i < format_len && colLen < format_len && orig_lptstr && orig_lptstr[i];
@@ -12021,7 +12021,7 @@ CQAvailable (void)
* Add 'c' to the end of the character queue.
*
* Parameters:
- * return true if successfull.
+ * return true if successful.
*
/*--------------------------------------------------------------------------*/
@@ -12048,7 +12048,7 @@ CQAdd (UCS c, BOOL fKeyControlDown)
* there is no other 'c' in the queue
*
* Parameters:
- * return true if successfull.
+ * return true if successful.
*
/*--------------------------------------------------------------------------*/
@@ -12170,7 +12170,7 @@ MQAvailable (void)
* Add 'c' to the end of the character queue.
*
* Parameters:
- * return true if successfull.
+ * return true if successful.
*
/*--------------------------------------------------------------------------*/
@@ -12289,10 +12289,10 @@ ExplainSystemErr()
/*
- * Called by mswin to scroll text in window in responce to the scrollbar.
+ * Called by mswin to scroll text in window in response to the scrollbar.
*
* Args: cmd - what type of scroll operation.
- * scroll_pos - paramter for operation.
+ * scroll_pos - parameter for operation.
* used as position for SCROLL_TO operation.
*
* Returns: TRUE - did the scroll operation.
@@ -12412,7 +12412,7 @@ pscreen_offset_from_cord(int row, int col, PTTYINFO pTTYInfo)
/*
* Start with col (all chars single width) and go from there.
* We need to find the offset that makes the string col wide.
- * Hopefully we won't ever get a rectange that causes us to
+ * Hopefully we won't ever get a rectangle that causes us to
* draw half characters, but in case we do we need to err on the
* side of too much width instead of not enough. It's a little
* tricky because we want to include following zero-width
diff --git a/pico/osdep/raw.c b/pico/osdep/raw.c
index a886e0b6..8a194f8f 100644
--- a/pico/osdep/raw.c
+++ b/pico/osdep/raw.c
@@ -298,7 +298,7 @@ crlf_proc(int state)
/*
- * Set up the tty driver to hanle interrupt char
+ * Set up the tty driver to handle interrupt char
*
* Args: state -- True to turn on interrupt char, false to not
*
diff --git a/pico/pico.c b/pico/pico.c
index c759b592..2fde4531 100644
--- a/pico/pico.c
+++ b/pico/pico.c
@@ -1256,7 +1256,7 @@ doubleclick = (lrow == row && lcol == col
&& time(0) < (lastcalled + 2));
lastcalled = time(0);
#endif
- lheader = FALSE; /* Rember mouse down position. */
+ lheader = FALSE; /* Remember mouse down position. */
levent = mevent;
lrow = row;
lcol = col;
diff --git a/pico/pico.h b/pico/pico.h
index ac87e78f..100b4cbf 100644
--- a/pico/pico.h
+++ b/pico/pico.h
@@ -221,7 +221,7 @@ typedef struct pico_struct {
int (*tty_fix)(); /* Let Pine fix tty state */
long (*newmail)(); /* Pine's report_new_mail */
long (*msgntext)(); /* callback to get msg n's text */
- int (*upload)(); /* callback to rcv uplaoded text */
+ int (*upload)(); /* callback to rcv uploded text */
char *(*ckptdir)(); /* callback for checkpoint file dir */
int (*exittest)(); /* callback to verify exit request */
char *(*canceltest)(); /* callback to verify cancel request */
diff --git a/pico/search.c b/pico/search.c
index 3bdcc48a..d1bba6c6 100644
--- a/pico/search.c
+++ b/pico/search.c
@@ -100,7 +100,7 @@ EXTRAKEYS menu_srchopt[] = {
/* string search input parameters */
-#define PTBEG 1 /* leave the point at the begining on search */
+#define PTBEG 1 /* leave the point at the beginning on search */
#define PTEND 2 /* leave the point at the end on search */
#define NPMT (2*NLINE+32)
@@ -394,7 +394,7 @@ forwsearch(int f, int n)
/*
* This code is kind of dumb. What I want is successive C-W 's to
- * move dot to successive occurences of the pattern. So, if dot is
+ * move dot to successive occurrences of the pattern. So, if dot is
* already sitting at the beginning of the pattern, then we'll move
* forward a char before beginning the search. We'll let the
* automatic wrapping handle putting the dot back in the right
@@ -1320,7 +1320,7 @@ forscan(int *wrapt, /* boolean indicating search wrapped */
curwp->w_dotp = matchline;
curwp->w_doto = matchoff - 1;
}
- else { /* at begining of string */
+ else { /* at beginning of string */
curwp->w_dotp = lastline;
curwp->w_doto = lastoff;
}