Skip to content

Commit 60dcef4

Browse files
nitpick: fix typos
1 parent 55778a2 commit 60dcef4

File tree

184 files changed

+800
-797
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

184 files changed

+800
-797
lines changed

FARStdlib/include/all_far.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ struct FPPeriod
180180
/** @defgroup StdLib RTL extension\replacement
181181
@{
182182
183-
Wrapers for stdlib functions and some usefull extended stdlib functions.
183+
Wrappers for stdlib functions and some useful extended stdlib functions.
184184
*/
185185
#if !defined(__FP_NOT_FUNCTIONS__)
186186
// string extension
@@ -266,7 +266,7 @@ extern LPCSTR _cdecl Message(LPCSTR patt, ...);
266266
extern LPCSTR WINAPI MessageV(LPCSTR patt, va_list a);
267267

268268
// Utils
269-
extern LPCSTR WINAPI FCps(char *buff, double val); // Create CPS value string (Allways 3+1+3+1 length)
269+
extern LPCSTR WINAPI FCps(char *buff, double val); // Create CPS value string (Always 3+1+3+1 length)
270270
extern LPSTR WINAPI AddLastSlash(char *path, char Slash = '/');
271271
extern LPSTR WINAPI DelLastSlash(char *path, char Slash = '/');
272272
extern LPCSTR WINAPI FPath(LPCSTR nm, char Slash = '/');

FARStdlib/include/fstdlib.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
#ifndef __FAR_PLUGINS_UTILITES
2-
#define __FAR_PLUGINS_UTILITES
1+
#ifndef __FAR_PLUGINS_UTILITIES
2+
#define __FAR_PLUGINS_UTILITIES
33

44
/** @mainpage FAR Standard Library
55
@author Jouri Mamaev [email protected]
@@ -9,7 +9,7 @@
99
C++ library for easy create plugins for file and archive manager FAR. <br>
1010
Contains set of classes and functions designed to decrease time for write all types of FAR plugins.
1111
12-
Initialy created by [email protected]
12+
Initially created by [email protected]
1313
1414
@section Structure Document structure
1515
This documentation structure:
@@ -20,8 +20,8 @@
2020
- Variables Global variables;
2121
2222
@section Add Additional helpers.
23-
Additional helpers andd classes does not relatie to FAR API directly but used by other wrapers or
24-
incapsulate usefull functionality.
23+
Additional helpers and classes does not relative to FAR API directly but used by other wrappers or
24+
incapsulate useful functionality.
2525
2626
- FP_Screen - helper for save and restore FAR screen buffer. <br>
2727
Class for save and restore whole screen buffer.
@@ -344,7 +344,7 @@ struct FP_Dialog
344344
[fstd_ilist.cpp]
345345
346346
PluginPanelItem Reserved and can be used to store additional data.
347-
This data will be correctly copyed and deleted in FP_ItemList.
347+
This data will be correctly copied and deleted in FP_ItemList.
348348
You MUST use _Alloc or strdup to allocate data space.
349349
Data CAT NOT BE zero sized.
350350
*/

FARStdlib/include/funi.h

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@
5858
typedef char *FKeyBarTitle[12];
5959
typedef FKeyBarTitle *PFKeyBarTitle;
6060

61-
// Hot key for operate with codes getted from plugin `ProcessKey` and passed to FPanel `DoProcessKey`
61+
// Hot key for operate with codes got from plugin `ProcessKey` and passed to FPanel `DoProcessKey`
6262
#define FHK_MAKE(sh, key) MK_DWORD(((WORD)sh), ((WORD)key))
6363
#define FHK_SHIFT(hkey) ((unsigned int)LO_WORD((DWORD)hkey))
6464
#define FHK_KEY(hkey) ((int)HI_WORD((DWORD)hkey))
6565

66-
// Usefull console chars
66+
// Useful console chars
6767
/*
6868
#define FAR_SHADOW_CHAR '\xB0' //°
6969
#define FAR_FULL_CHAR '\xDB' //Û
@@ -146,7 +146,7 @@ extern int WINAPI FP_Color(int far_color_num);
146146

147147
// --------------------------------------------------------------
148148
#if !defined(__FP_NOT_FUNCTIONS__)
149-
extern PluginStartupInfo *FP_Info; ///< Pointer to FAR plugin comunication info structure.
149+
extern PluginStartupInfo *FP_Info; ///< Pointer to FAR plugin communication info structure.
150150
extern FarStandardFunctions *FP_FSF;
151151
extern char *FP_PluginRootKey;
152152
extern BOOL FP_IsOldFar;
@@ -163,7 +163,7 @@ extern LPCSTR WINAPI FP_GetPluginName(void);
163163

164164
/** @defgroup DefDialog Dialog description
165165
@{
166-
Usefull tools for define and set arrays of FAR dialog items.
166+
Useful tools for define and set arrays of FAR dialog items.
167167
*/
168168

169169
#define FFDI_MASK 0xFFUL
@@ -180,7 +180,7 @@ extern int WINAPI FP_Message(unsigned int Flags, LPCSTR HelpTopic, LPCSTR *Items
180180
@{
181181
182182
[fstd_Msg.cpp]
183-
Wrapers for FAR language API.
183+
Wrappers for FAR language API.
184184
*/
185185
#define FMSG(v) ((LPCSTR)(INT_PTR)(v))
186186
#define FISMSG(v) ((v) != NULL && (DWORD_PTR)(v) > FAR_MAX_LANGID)
@@ -205,11 +205,11 @@ inline LPCSTR FP_GetMsg(LPCSTR Msg)
205205
/**@}*/
206206

207207
// --------------------------------------------------------------
208-
/** @defgroup FarRegXX Regestry manipulations.
208+
/** @defgroup FarRegXX Registry manipulations.
209209
@{
210210
211211
[fstd_RegXX.cpp]
212-
Wrapers for regestry Win API.
212+
Wrappers for regestry Win API.
213213
*/
214214
#if !defined(__FP_NOT_FUNCTIONS__)
215215
extern int WINAPI FP_GetRegKey(LPCSTR Key, LPCSTR ValueName, DWORD Default);
@@ -266,11 +266,11 @@ extern void WINAPI FP_PopKey(HANDLE PushedKey);
266266
@{
267267
268268
[fstd_ClpS.cpp]
269-
Wrapers for clipboard Win API.
269+
Wrappers for clipboard Win API.
270270
*/
271271
#if !defined(__FP_NOT_FUNCTIONS__)
272272
extern BOOL WINAPI FP_CopyToClipboard(LPVOID Data, SIZE_T DataSize);
273-
extern BOOL WINAPI FP_GetFromClipboard(LPVOID &Data, SIZE_T &DataSize); // The calles should call `free()` to recvd data
273+
extern BOOL WINAPI FP_GetFromClipboard(LPVOID &Data, SIZE_T &DataSize); // The callees should call `free()` to recvd data
274274
#endif
275275
/**@}*/
276276

FARStdlib/src/fstd_FMsg.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ int WINAPI FP_Message(unsigned int Flags, LPCSTR HelpTopic, LPCSTR *Items, int I
3030
width = Max(width, strlen(litems[rc]));
3131
}
3232

33-
// Calc if message need to be redrawn with smaller dimentions
33+
// Calc if message need to be redrawn with smaller dimensions
3434
if (!CMsgWidth || (int)width < CMsgWidth || !CMsgHeight || ItemsNumber < CMsgHeight)
3535

3636
// Need restore bk

FARStdlib/src/fstd_Msg.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
/** @ingroup GetMsg
66
@fn LPCSTR FP_GetMsg( int MsgId )
7-
@brief Retrive text message by it number.
7+
@brief Retrieve text message by it number.
88
99
@param MsgId Index of message in LNG file.
1010
@@ -14,7 +14,7 @@
1414

1515
/** @ingroup GetMsg
1616
@fn LPCSTR FP_GetMsg( LPCSTR Msg )
17-
@brief Retrive text message by it number.
17+
@brief Retrieve text message by it number.
1818
1919
@param Msg Index of message in LNG file. Index can be converted to LPCSTR using FMSG parameter.
2020
You can set this parameter to real local string pointer.
@@ -69,12 +69,12 @@ static LPCSTR WINAPI _FP_GetMsgSTR(LPCSTR String)
6969
}
7070

7171
/** @var FP_GetMsgINT
72-
@brief Callback function for get language message specified by WORD identifer.
72+
@brief Callback function for get language message specified by WORD identifier.
7373
*/
7474
FP_GetMsgINT_t FP_GetMsgINT = _FP_GetMsgINT;
7575

7676
/** @var FP_GetMsgSTR
7777
@ingroup GetMsg
78-
@brief Callback function for get language message specified by LPCSTR identifer.
78+
@brief Callback function for get language message specified by LPCSTR identifier.
7979
*/
8080
FP_GetMsgSTR_t FP_GetMsgSTR = _FP_GetMsgSTR;

FARStdlib/src/fstd_Utils.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ LPCSTR WINAPI FExtOnly(LPCSTR nm, char Slash)
6969
/*
7070
Create CPS value string
7171
72-
The digit allways 3+1+3+1 characters length (8)
72+
The digit always 3+1+3+1 characters length (8)
7373
Digit right alignmented, filled with ' ' at left
7474
*/
7575
LPCSTR WINAPI FCps(char *buff, double val)

FARStdlib/src/fstd_crc32.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
88
Generate 32bit CRC for buffer.
99
10-
Algoriphm getted from sources of ZLib.
10+
Algorithm got from sources of ZLib.
1111
*******************************************************************/
1212

1313
static int crc_table_empty = 1;

FARStdlib/src/fstd_log.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
extern BOOL WINAPI LOGInit(void);
88
std::recursive_mutex PLOG_cs;
99

10-
/** @brief Length of text with std error writen to log file.
10+
/** @brief Length of text with std error written to log file.
1111
1212
Length of left part log string with description of __WINError() in moment of write log call.
1313
Default value 30 characters.

HACKING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ This two functions not added but changed to use console cells count as string li
5858

5959
### Added following commands into FILE_CONTROL_COMMANDS:
6060
* `FCTL_GETPANELPLUGINHANDLE`
61-
Can be used to interract with plugin that renders other panel.
61+
Can be used to interact with plugin that renders other panel.
6262
`hPlugin` can be set to `PANEL_ACTIVE` or `PANEL_PASSIVE`.
6363
`Param1` ignored.
6464
`Param2` points to value of type `HANDLE`, call sets that value to handle of plugin that renders specified panel or `INVALID_HANDLE_VALUE`.

NetRocks/configs/plug/helpe.hlf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $^#SFTP:// SCP:// protocols specific options#
125125
#TCP_QUICKACK socket option:# if enabled, TCP ack packets are sent immediately, rather than delayed that may improve receive performance.
126126
#Custom subsystem request/exec# here you can replace default SFTP subsystem handler with specific command, usually its used to get superuser access from sudo'er account by using command line like [sudo /usr/lib/openssh/sftp-server]
127127
#Allowed host keys# if non-empty then forces using only specified key-exchange algorithms. Beside of restricting other algorithms this option can be used to allow using some deprecated algorithm e.g. ssh-rsa if server doesn't support modern ones.
128-
#OpenSSH config files# allows to specify which OpenSSH config files to use for this connection. By default ~~/.ssh/config and /etc/ssh/ssh_config are used. Note that libssh version prior 0.9.0 always parses default config files regardless of this option (so you can only add extra configs), but since version 0.9.0 its possible to disable/override default config files parsing. To specify more then one file - use colon to separate their pathes.
128+
#OpenSSH config files# allows to specify which OpenSSH config files to use for this connection. By default ~~/.ssh/config and /etc/ssh/ssh_config are used. Note that libssh version prior 0.9.0 always parses default config files regardless of this option (so you can only add extra configs), but since version 0.9.0 it's possible to disable/override default config files parsing. To specify more than one file - use colon to separate their paths.
129129

130130
~Contents~@Contents@
131131

@@ -186,7 +186,7 @@ $^#Extra site settings#
186186
To prevent connection from disconnect-due-to-idle - set non-zero #keepalive# period.
187187
Apply remote files timestamps adjustement.
188188
Change #codepage# being used by server.
189-
Its possible to #execute specific command# when opening or closing site connection, and that command can, for example, do mounting of some resource that is to be accessed using this connection site. This command will have defined as environment fields of host (#$HOST#), port (#$PORT#), username (#$USER#), password (#$PASSWORD#) and additional extra string configured in this dialog (#$EXTRA#). In this dialog its also possible to define amount of time NetRocks will wait for completion of this command (if command will not complete during that time - timeout error will be raised). Special environment variable #$SINGULAR# equals to 1 in case command being executed on a connection that is singular to specified protocol/user/host/port across all NetRocks instances, so you may use this to initialize/cleanup shared things. In case your init/cleanup have to exchange some data - save it into file indicated by $STORAGE environment variable, and then don't forget to delete this file from cleanup script running in singular context.
189+
It's possible to #execute specific command# when opening or closing site connection, and that command can, for example, do mounting of some resource that is to be accessed using this connection site. This command will have defined as environment fields of host (#$HOST#), port (#$PORT#), username (#$USER#), password (#$PASSWORD#) and additional extra string configured in this dialog (#$EXTRA#). In this dialog its also possible to define amount of time NetRocks will wait for completion of this command (if command will not complete during that time - timeout error will be raised). Special environment variable #$SINGULAR# equals to 1 in case command being executed on a connection that is singular to specified protocol/user/host/port across all NetRocks instances, so you may use this to initialize/cleanup shared things. In case your init/cleanup have to exchange some data - save it into file indicated by $STORAGE environment variable, and then don't forget to delete this file from cleanup script running in singular context.
190190

191191
~Contents~@Contents@
192192

0 commit comments

Comments
 (0)