Fixed some typos (Most of them found by codespell/Stefan Weil)

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6704 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
anders_k 2016-02-04 20:14:06 +00:00
parent a074c23582
commit 510fb334c8
9 changed files with 11 additions and 11 deletions

View file

@ -49,7 +49,7 @@ int DoPatch(HANDLE hPatch, HANDLE hSource, HANDLE hDest) {
FILETIME targetModifiedTime;
// special 'addition' for the dll: since the patch file is now
// in a seperate file, the VPAT header might be right at the start
// in a separate file, the VPAT header might be right at the start
// of the file, and a pointer at the end of the file is probably missing
// (because all patch generator versions don't append it, the linker/gui
// does this).

View file

@ -672,7 +672,7 @@ static void xhtml_ponder_layout(paragraph * p)
#define NAMEDFRAGMENT_MAXLEN 200 /* More than enough for our usage */
/*
* Get formated fragment name for html anchor.
* Get formatted fragment name for html anchor.
* Uses para->keyword if possible, falls back to the ?#.#.# default.
*/
static char*

View file

@ -123,7 +123,7 @@ To call a function in a third party DLL, the \R{call}{Call} function is used lik
\c System::Call 'YourDllName::YourDllFunction(i, *i, t) i(r0, .r1, r2) .r3'
The '(r0, .r1, r2) .r3' section at the end are the parameters that are passed between your DLL and your NSIS script. As can be seen in this parameters list type and input/output can be seperated. Each block of "(parms list) return value" overrides and/or adds to the last one. In this case, the first block specifies the types and the second specifies input and output.
The '(r0, .r1, r2) .r3' section at the end are the parameters that are passed between your DLL and your NSIS script. As can be seen in this parameters list type and input/output can be separated. Each block of "(parms list) return value" overrides and/or adds to the last one. In this case, the first block specifies the types and the second specifies input and output.
\\<b\\>Before starting to code the NSIS script\\</b\\> \\<br\\>
Before you start to code any NSIS code, you need to know the full prototype of the function you are going to call. For the purposes of this example, we will use the 'CmGetHotSyncExecPath' function from the Palm 'CondMgr.dll'. This function is used to return the full path of 'HotSync.exe'.

View file

@ -27,7 +27,7 @@ Section "Test 1"
Goto end
success:
DetailPrint "Test 1 succeded (output: $R0)"
DetailPrint "Test 1 succeeded (output: $R0)"
end:
@ -69,7 +69,7 @@ Section "Test 2"
Goto end
success:
DetailPrint "Test 2 succeded (output: $R1)"
DetailPrint "Test 2 succeeded (output: $R1)"
end:

View file

@ -1182,7 +1182,7 @@ static int NSISCALL ExecuteEntry(entry *entry_)
case EW_READINISTR:
{
// GetPrivateProfileString can't read CR & LF characters inside values from INI files
// so we use "\n" as a detection system to see if we did succesfully read a value
// so we use "\n" as a detection system to see if we did successfully read a value
const TCHAR errstr[] = _T("\n");
TCHAR *p=var0;
TCHAR *buf0=GetStringFromParm(0x01);

View file

@ -32,7 +32,7 @@
// pages (struct page)
// section headers (struct section)
// entries/instructions (struct entry)
// strings (null seperated)
// strings (null separated)
// language tables (language id, dialog offset, language strings)
// colors (struct color)
// data block (compressed files and uninstaller data)

View file

@ -52,7 +52,7 @@ NSIS_STRING g_usrvarssection[1];
TCHAR g_usrvarssection[1] __attribute__((section (NSIS_VARS_SECTION)));
const NSIS_STRING*const g_usrvarsstart = (const NSIS_STRING*const) g_usrvarssection;
# else
# error Unknown compiler. You must implement the seperate PE section yourself.
# error Unknown compiler. You must implement the separate PE section yourself.
# endif
#endif

View file

@ -434,7 +434,7 @@ int CEXEBuild::DefineLangString(const TCHAR *name, int process/*=-1*/) {
#endif
// Now set the new index and uindex values with the
// passed in proces value.
// passed in process value.
build_langstrings.set(pos, index, uindex, process);
// set reference count for NLF strings

View file

@ -771,7 +771,7 @@ void RawTStrToASCII(const TCHAR*in,char*out,UINT maxcch)
* ExpandoStrFmtVaList returns the number of characters written excluding
* the \0 terminator or 0 on error.
* realloc() is used on *ppMalloc if cchStack is not
* large enough to hold the formated string.
* large enough to hold the formatted string.
*/
size_t ExpandoStrFmtVaList(wchar_t*Stack, size_t cchStack, wchar_t**ppMalloc, const wchar_t*FmtStr, va_list Args)
{
@ -1208,7 +1208,7 @@ static bool GetDLLVersionUsingRE(const tstring& filepath, DWORD& high, DWORD & l
// get VS_FIXEDFILEINFO from VS_VERSIONINFO
WINWCHAR *szKey = (WINWCHAR *)(ver + sizeof(WORD) * 3);
size_t len = (WinWStrLen(szKey) + 1) * sizeof(WINWCHAR) + sizeof(WORD) * 3;
len = (len + 3) & ~3; // align on DWORD boundry
len = (len + 3) & ~3; // align on DWORD boundary
VS_FIXEDFILEINFO *verinfo = (VS_FIXEDFILEINFO *)(ver + len);
if (versize > len && verinfo->dwSignature == VS_FFI_SIGNATURE)
{