1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-03-09 15:50:02 +00:00

Various minor capitalization and typo fixes (#371)

This commit fixes various minor typos, punctuation errors and
corrects the capitalization of many names.
This commit is contained in:
Johnothan King 2021-12-12 13:40:38 -08:00 committed by Martijn Dekker
parent cd562b16e2
commit e54001d58b
204 changed files with 779 additions and 784 deletions

View file

@ -87,7 +87,7 @@
#include <ast_tty.h>
#include <ls.h>
/* ast always provides multibyte handling */
/* AST always provides multibyte handling */
#undef _hdr_wchar
#undef _lib_mbrtowc
#undef _lib_wcrtomb
@ -322,7 +322,7 @@
#else
#if _hdr_wchar && _typ_mbstate_t && _lib_wcrtomb && _lib_mbrtowc
#define _has_multibyte 1 /* Xopen-compliant */
#define _has_multibyte 1 /* X/Open-compliant */
#if _typ___va_list && !defined(__va_list)
#define __va_list va_list
#endif
@ -542,7 +542,7 @@
#define ASSERT(p)
#endif
/* short-hands */
/* shorthands */
#define NIL(t) ((t)0)
#define reg register
#ifndef uchar
@ -999,7 +999,7 @@ typedef struct _sfextern_s
#define SF_MAXCHAR ((uchar)(~0))
/* floating point to ascii conversion */
/* floating point to ASCII conversion */
#define SF_MAXEXP10 6
#define SF_MAXPOW10 (1 << SF_MAXEXP10)
#if !_ast_fltmax_double
@ -1045,7 +1045,7 @@ struct _sfieee_s
typedef struct _sftab_
{ Sfdouble_t sf_pos10[SF_MAXEXP10]; /* positive powers of 10 */
Sfdouble_t sf_neg10[SF_MAXEXP10]; /* negative powers of 10 */
uchar sf_dec[200]; /* ascii reps of values < 100 */
uchar sf_dec[200]; /* ASCII reps of values < 100 */
char* sf_digits; /* digits for general bases */
int (*sf_cvinitf)(); /* initialization function */
int sf_cvinit; /* initialization state */

View file

@ -192,7 +192,7 @@ reg int rc; /* record separator */
if(!direct)
fr->next += r;
else if((w = endb-cp) > 0)
{ /* move left-over to read stream */
{ /* move leftover to read stream */
if(w > fr->size)
w = fr->size;
memmove((Void_t*)fr->data,(Void_t*)cp,w);

View file

@ -24,7 +24,7 @@
/*
* The preferred method is POSIX recv(2) with MSG_PEEK, which is detected as 'socket_peek'.
* On Solaris/Illumos (__sun), _stream_peek and _lib_select are needed, as _socket_peek doesn't work correctly.
* On Solaris/illumos (__sun), _stream_peek and _lib_select are needed, as _socket_peek doesn't work correctly.
* On at least macOS and Linux, sfpkrd() runs significantly faster if we disable these. However,
* ed_read() still needs to use select to intercept SIGWINCH, so if the last argument given
# to sfpkrd is '2' select is always used when available.

View file

@ -90,7 +90,7 @@ int type; /* 0: from org, 1: from here, 2: from end */
mustsync = (type&SF_SHARE) && !(type&SF_PUBLIC) &&
(f->mode&SF_READ) && !(f->flags&SF_STRING);
/* Xopen-compliant */
/* X/Open-compliant */
if((type &= (SEEK_SET|SEEK_CUR|SEEK_END)) != SEEK_SET &&
type != SEEK_CUR && type != SEEK_END )
{ errno = EINVAL;

View file

@ -22,7 +22,7 @@
***********************************************************************/
#include "sfhdr.h"
/* Set some control flags or file descript for the stream
/* Set some control flags or file descriptor for the stream
**
** Written by Kiem-Phong Vo.
*/

View file

@ -116,7 +116,7 @@ int type; /* >0: scanf, =0: printf, -1: internal */
for(v = 1;;)
{ switch(*form++)
{
case 0 : /* not balancable, retract */
case 0 : /* not balanceable, retract */
form = t_str;
t_str = NIL(char*);
n_str = 0;

View file

@ -41,7 +41,7 @@
#if _PACKAGE_ast
#include <ccode.h>
#else
/* characters when using ebcdic or ascii */
/* characters when using EBCDIC or ASCII */
#if _chr_ebcdic
#define CC_vt 013 /* vertical tab */
#define CC_esc 047 /* escape */
@ -248,7 +248,7 @@ loop_fmt :
for(v = 1;;)
{ switch(*form++)
{
case 0 : /* not balancable, retract */
case 0 : /* not balanceable, retract */
form = t_str;
t_str = NIL(char*);
n_str = 0;

View file

@ -167,7 +167,7 @@ int flags; /* SFFMT_LONG for wchar_t */
if(*(form+1) == '-')
{ endc = *((uchar*)(form+2));
#if _has_multibyte
if(c >= 128 || endc >= 128 ) /* range must be ascii */
if(c >= 128 || endc >= 128 ) /* range must be ASCII */
goto one_char;
#endif
for(; c <= endc; ++c)
@ -210,7 +210,7 @@ Accept_t* ac;
if(*(form+1) == '-')
{ endc = *((uchar*)(form+2));
if(c >= 128 || endc >= 128 ) /* range must be ascii */
if(c >= 128 || endc >= 128 ) /* range must be ASCII */
goto one_char;
n = 3;
}

View file

@ -35,7 +35,7 @@
#include <ast_common.h>
#include <error.h>
/* ast doesn't do threads yet */
/* AST doesn't do threads yet */
#if _PACKAGE_ast && !defined(vt_threaded)
#define vt_threaded 0
#endif