Skip to content

Commit 5b631a2

Browse files
SicroAtGitfantaisie-software
authored andcommitted
Fix misspellings
1 parent 1443213 commit 5b631a2

Some content is hidden

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

86 files changed

+302
-302
lines changed

.gitattributes

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ LICENSE* text
109109
# ================================
110110
# Exclusion Rules for Zip Download
111111
# ================================
112-
# Exclude fro the downloadable Zip archive of the repository contents relating
112+
# Exclude from the downloadable Zip archive of the repository contents relating
113113
# to Git or repository maintenance.
114114

115115
/.git export-ignore

DialogManager/GetRequiredSize.pb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
;
88
;
99
; Get the minimum required size to properly display the gadget content.
10-
; This file is independant from the DialogManager so it can be used on gadgets
10+
; This file is independent from the DialogManager so it can be used on gadgets
1111
; even when not a full dialog creation is done. The Flags value can be given to
1212
; include stuff like borders in the calculation
1313
;
@@ -17,7 +17,7 @@
1717
; Supported Gadgets:
1818
; Button, Checkbox, Option, Text, String, ComboBox, Image, ButtonImage
1919
;
20-
; For those with variable content (ComboBox, String) only the Height value is usefull (width is mostly reported as 0)
20+
; For those with variable content (ComboBox, String) only the Height value is useful (width is mostly reported as 0)
2121
;
2222

2323
; Repeated here, so it works with and without the Dialog framework
@@ -67,7 +67,7 @@ Procedure GetRequiredSize(Gadget, *Width.LONG, *Height.LONG, Flags = 0)
6767

6868
EndProcedure
6969

70-
; convinience wrappers if only one size is needed
70+
; convenience wrappers if only one size is needed
7171
;
7272
Procedure GetRequiredWidth(Gadget, Flags = 0)
7373
Protected Width.l, Height.l
@@ -100,7 +100,7 @@ Procedure Frame3DTopOffset(Gadget)
100100
CompilerEndIf
101101

102102
CompilerIf #CompileMac
103-
; TODO: a way to atleast calculate the top border correctly would be good
103+
; TODO: a way to at least calculate the top border correctly would be good
104104
ProcedureReturn 16
105105
CompilerEndIf
106106
EndProcedure

DialogManager/Object_Base.pb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ XIncludeFile "Common.pb"
2525
; disabled = yes/no (default) - only for real gadgets/windows
2626
;
2727
; folded = yes/no (default)
28-
; Every object can be folded (completly hidden and taking up no space)
28+
; Every object can be folded (completely hidden and taking up no space)
2929
; It can be done with this tag or with the Window\Fold() command
3030
; (the object must have a 'name' tag for that)
3131
;
@@ -47,7 +47,7 @@ Structure DlgBase
4747
*Parent.DlgBase
4848

4949
Gadget.i ; for Gadgets
50-
Folded.l ; applyable to all object types
50+
Folded.l ; applicable to all object types
5151
EndStructure
5252

5353

DialogManager/Object_Gadget.pb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ Structure DlgGadget Extends DlgBase
3232
ColumnAdded.l ; to know which is the first <column> element (to remove the default columns)
3333
EndStructure
3434

35-
; Special structure to easily asign a fixed list of items to a gadget (and manage its language)
36-
; For example for Combobox with fixed choises
35+
; Special structure to easily assign a fixed list of items to a gadget (and manage its language)
36+
; For example for Combobox with fixed choices
3737
;
3838
; supported by: combobox, tree, listicon (for the columns)
3939
;
@@ -49,7 +49,7 @@ EndStructure
4949

5050
; on windows, the callback is required
5151
; Note: so this works also without the Scintilla lib, we use a constant
52-
; to indicate wether or not it should be used.
52+
; to indicate whether or not it should be used.
5353
;
5454
CompilerIf Defined(DIALOG_USE_SCINTILLA, #PB_Constant)
5555

@@ -305,7 +305,7 @@ EndProcedure
305305

306306
Procedure DlgGadget_SizeApply(*THIS.DlgGadget, x.l, y.l, Width.l, Height.l)
307307

308-
; On windows, when resizing a text, checkbox, option highter than it needs to be, its
308+
; On windows, when resizing a text, checkbox, option higher than it needs to be, its
309309
; text is not put in the center (vertically) as it is on linux, so this looks bad when
310310
; a text/checkbox is put next to a String/Combobox for example.
311311
; actually, centering only is not good either. For windows it is needed to offset

Libraries/Debugger/DebuggerInternal.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ struct CallStackStruct
6969

7070

7171
/* DebuggerStep description
72-
*-1 = execution was never stoped before (console debug only)
72+
*-1 = execution was never stopped before (console debug only)
7373
* 0 = run
7474
* 1 = usual step
7575
* 2 = stop (console debug only)
@@ -88,7 +88,7 @@ struct CallStackStruct
8888
* 5 = program ended (no error, not ended by debugger)
8989
* 6 = fatal error
9090
* 7 = dynamic breakpoint met
91-
* 8 = stoped by user (ctrl+c, external debugger or step result)
91+
* 8 = stopped by user (ctrl+c, external debugger or step result)
9292
* 9 = data breakpoint met
9393
*
9494
* values only present on the IDE side
@@ -235,7 +235,7 @@ extern M_PBFUNCTION(void) PB_DEBUGGER_EndThreads();
235235
/* NOTE: For clarity in the code we use these 3 types of char declarations:
236236
* char - indicates an ascii string
237237
* wchar_t - indicates a unicode string
238-
* xchar - indicates that this string has the type of the executable, so unknown at compiletime
238+
* xchar - indicates that this string has the type of the executable, so unknown at compile time
239239
* This is defined as a char really, so that it works well together with X_strlen()
240240
* which returns a number of bytes always.
241241
*

Libraries/Debugger/ExternalCommands.h

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ enum
359359
*/
360360
COMMAND_GetFile,
361361

362-
/* Command: Set the purifier intervalls
362+
/* Command: Set the purifier intervals
363363
* Value1:
364364
* Value2:
365365
* Data: 4x LONG (Global, Local, String, Dynamic) A value of 0 means check never
@@ -472,7 +472,7 @@ enum
472472
* Value2: PB_DEBUGGER_Control
473473
* Data: Message (ascii)
474474
*
475-
* NOTE: this always stops the progam until a COMMAND_Run
475+
* NOTE: this always stops the program until a COMMAND_Run
476476
*/
477477
COMMAND_Error,
478478

@@ -489,7 +489,7 @@ enum
489489
* register display names
490490
*
491491
* The order of registers in the display can differ from the order in the array,
492-
* thats why the WORD array tells the real order
492+
* that's why the WORD array tells the real order
493493
*/
494494
COMMAND_RegisterLayout,
495495

@@ -502,7 +502,7 @@ enum
502502
* Array of INTEGER: register values
503503
* Array of STRING: for each register with string representation: its string
504504
*/
505-
COMMAND_Register, // send registers. Value1=are registers writable? if DataSize=0, no register acces, otherwise DATA=array of register values.
505+
COMMAND_Register, // send registers. Value1=are registers writable? if DataSize=0, no register access, otherwise DATA=array of register values.
506506

507507

508508
/* Command: Send a stack trace
@@ -529,7 +529,7 @@ enum
529529
* Value2: NbVariables, counting each structure field individually (=number of sent entries)
530530
* Data:
531531
*
532-
* for each transmited entry:
532+
* for each transmitted entry:
533533
* BYTE: type (1=byte,3=word,5=long,7=structure,8=string,9=float,10=fixed,11=char,12=double,13=quad,21=integer) (bit 7 is set when the variable is a pointer)
534534
* BYTE: dynamictype (real type if type=TYPE_ARRAY etc for structured items. not used otherwise)
535535
* BYTE: scope (0=main, 1=global, 2=threaded)
@@ -587,7 +587,7 @@ enum
587587
/* Command: Send local variable names + values
588588
*
589589
* Value1: index of the Procedure in the procedure bank
590-
* Value2: number of transmited values
590+
* Value2: number of transmitted values
591591
* Data:
592592
*
593593
* same as for the global names, except the structure is this:

Libraries/Debugger/ExternalDebugger.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ M_INLINE(void) bswap_wstring(wchar_t *p)
144144
#define ByteSwapUnicodeString(p) if (PB_DEBUGGER_ByteSwap) bswap_wstring((wchar_t *)(p))
145145
#define ByteSwapString(p) if (PB_DEBUGGER_ByteSwap && PB_DEBUGGER_ExternalUnicode) bswap_wstring((wchar_t *)(p))
146146

147-
// Character values are transfered as longs in the debugger communication
147+
// Character values are transferred as longs in the debugger communication
148148
#define ByteSwapCharacter(p) if (PB_DEBUGGER_ByteSwap) bswap4((unsigned char *)(p))
149149

150150
#ifdef PB_64

Libraries/Debugger/LibraryViewer.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ typedef struct PB_StructureLibraryInfo
3333

3434
char *ListTitles; // for LIBRARYINFO_Objects: provides a Tab separated list of table headers (for the ListIcon display. format: TITLE1<tab>Size1<tab>TITLE2<tab>Size2)
3535

36-
int (*ExamineObjects)(void); // start object enumeration (return true if successfull, false if not)
36+
int (*ExamineObjects)(void); // start object enumeration (return true if successful, false if not)
3737
int (*NextObject)(integer *id, char *buffer); // get next object. fill id and **info with unique ID and text for ListIcon line (Tab separated as the title string), return 0 for no more objects
3838
int (*GetObjectText)(integer id, char *buffer); // get Text info on the given id object (return success or failure)
3939
int (*GetObjectData)(integer id, void **data, integer *size); // get data representation of the id object (return success or failure)
@@ -42,7 +42,7 @@ typedef struct PB_StructureLibraryInfo
4242
} PB_LibraryInfo;
4343

4444
/* Register a library for the Library Viewer:
45-
* The passed PB_DebuggerLibraryInfo structure must be initialized, and stay persisten during the whole
45+
* The passed PB_DebuggerLibraryInfo structure must be initialized, and stay persistent during the whole
4646
* run of the program (the debugger does not store the contained data itself, the library must do that!
4747
*/
4848
void PB_DEBUGGER_RegisterLibrary(PB_LibraryInfo *library);

Libraries/Debugger/OSSpecific.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
WSADATA WinSockInfo;
151151

152152
// We can call this multiple times (network lib does it too)
153-
// We just need the same amout of WSACleanup() calls to match it
153+
// We just need the same amount of WSACleanup() calls to match it
154154
//
155155
if (WSAStartup(MAKEWORD(1, 1), &WinSockInfo) == 0)
156156
return 1;

Libraries/Debugger/Purifier.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
typedef struct PB_PurifierMemoryBlock
99
{
10-
int *BeforeCookie; /* Directly store the before and after cookie adress so the check is fast */
10+
int *BeforeCookie; /* Directly store the before and after cookie address so the check is fast */
1111
int *AfterCookie;
1212
} PB_PurifierMemoryBlock;
1313

Libraries/EnvironmentVariables.bash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ fi
3737
if [ "$1" == "LINUX" ]; then
3838

3939
# we use -D_GNU_SOURCE to avoid __isoc99sprintf() etc. which is only glibc7
40-
# we don't put -Winvalid-pch as we can temporarely put NO_UNICODE_ALIASES even for libs with precompiled headers
40+
# we don't put -Winvalid-pch as we can temporarily put NO_UNICODE_ALIASES even for libs with precompiled headers
4141
export PB_GCC_ANSI="gcc -D_GNU_SOURCE -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=0 -DLINUX -Wimplicit -fsigned-char -fno-ident -fshort-wchar -fno-optimize-sibling-calls -Wno-write-strings -Wno-pointer-sign -fno-stack-protector -Wno-deprecated-declarations -I$PB_LIBRARIES -D$PB_PROCESSOR"
4242
export PB_GPP_ANSI="g++ -DLINUX -D_GNU_SOURCE -fPIC -fno-stack-protector -fsigned-char -fno-ident -fshort-wchar -Wno-write-strings -Wno-deprecated-declarations -I$PB_LIBRARIES -D$PB_PROCESSOR"
4343
export PB_OGREFLAGS="-O2 -fvisibility=hidden -Wno-narrowing"
@@ -143,7 +143,7 @@ if [ "x$PB_COCOA" == "x" ]; then
143143

144144
export PB_CARBON=1
145145
export PB_TARGET_POSTFIX=
146-
echo "Using Carbon subsytem"
146+
echo "Using Carbon subsystem"
147147
else
148148
export PB_INCLUDE=-DPB_COCOA
149149
export PB_LIBRARYMAKER="pblibrarymaker /NOLOG /CONSTANT COCOA /CONSTANT MACOS /CONSTANT $PB_PROCESSOR"
@@ -153,7 +153,7 @@ else
153153
export PB_COCOA=1
154154
export PB_TARGET_POSTFIX=_cocoa
155155
export PB_CARBON= # remove the carbon env var, if set
156-
echo "Using Cocoa subsytem"
156+
echo "Using Cocoa subsystem"
157157
fi
158158

159159
fi

Libraries/PureLibrary.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ M_SYSFUNCTION(void) SYS_SetStringBasePosition(int Position);
771771

772772

773773

774-
// for lazyness and consistency with the other ...ToBuffer() macros :)
774+
// for laziness and consistency with the other ...ToBuffer() macros :)
775775
#define NullToBuffer(a) SYS_SetNullString(a)
776776

777777
typedef struct PB_StructureSimpleList

PureBasicConfigPath.pb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Procedure.s PureBasicConfigPath()
8484
CompilerEndIf
8585

8686
; Note: no recursive creation needed here, as the home dir should
87-
; be existent allready and we go only one level below that.
87+
; be existent already and we go only one level below that.
8888
;
8989
If FileSize(ConfigPath$) <> -2
9090
CreateDirectory(ConfigPath$)

PureBasicDebugger/Communication.pb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ Procedure Debugger_ForceDestroy(*Debugger.DebuggerData)
265265
;
266266
Debugger_ProcessEvents(*Debugger\Windows[i], #PB_Event_CloseWindow)
267267

268-
; each closing of a debugger window can destroy the structure allready,
268+
; each closing of a debugger window can destroy the structure already,
269269
; as they all call Debugger_CheckDestroy(), so we must check for that!
270270
;
271271
If IsDebuggerValid(*Debugger) = 0
@@ -350,7 +350,7 @@ CompilerIf #LOG_DEBUGGER_COMMANDS
350350

351351
If *Command And *Command\DataSize > 0
352352
If *CommandData = 0
353-
WriteStringN(Log, " --- ERROR: Expected CommandData not availeble! ---")
353+
WriteStringN(Log, " --- ERROR: Expected CommandData not available! ---")
354354
Else
355355
*Base = *CommandData
356356

@@ -585,7 +585,7 @@ Procedure Debugger_ProcessIncommingCommands()
585585
;
586586
; The only way to solve this is to force our window to the foreground before.
587587
; (Leave this in for all Windows versions, because in case of a Memory/Pipe error,
588-
; we never know who had the focus so maybe this could happend there too)
588+
; we never know who had the focus so maybe this could happened there too)
589589
;
590590
CompilerIf Defined(PUREBASIC_IDE, #PB_Constant)
591591
SetWindowForeground_Real(#WINDOW_Main)
@@ -814,7 +814,7 @@ Procedure Debugger_ProcessIncommingCommands()
814814
Break 2
815815
EndIf
816816

817-
; exe is unloaded, take nessecary steps
817+
; exe is unloaded, take necessary steps
818818
;
819819
If *Debugger\Command\Command = #COMMAND_End
820820
Debugger_End(*Debugger) ; Function shared with the Standalone debugger callback
@@ -916,7 +916,7 @@ Procedure Debugger_ExecuteProgram(FileName$, CommandLine$, Directory$)
916916

917917
; for windows we need an alternative solution for TerminateProcess_()
918918
; we do it through a mutex.
919-
; It is initially locked, and if unlocked, the debugged programm will terminate itself.
919+
; It is initially locked, and if unlocked, the debugged program will terminate itself.
920920
;
921921
CompilerIf #CompileWindows
922922
; Note: We now use RunProgram() on Windows, so no handle inheriting.

PureBasicDebugger/Communication_Network.pb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ CompilerIf #CompileWindows
5252
; //
5353
Network_Listen(Socket, InterfaceName.p-ascii, Port)
5454

55-
; // Check If an incomming connection is made on a listening socket, does Not block
56-
; // returns new Socket Or SOCKET_ERROR (= no incomming connection)
55+
; // Check If an incoming connection is made on a listening socket, does Not block
56+
; // returns new Socket Or SOCKET_ERROR (= no incoming connection)
5757
; //
5858
Network_CheckAccept(Socket)
5959

PureBasicDebugger/Communication_PipeUnix.pb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ CompilerIf #CompileWindows = 0
203203

204204
EndIf
205205

206-
; Ok, we received atleast a part of the struct. Get the rest.
206+
; Ok, we received at least a part of the struct. Get the rest.
207207
;
208208
Received = Result
209209
While Received < SizeOf(CommandInfo)

PureBasicDebugger/Communication_PipeWindows.pb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ CompilerIf #CompileWindows
3434
OutPipeHandle.i
3535

3636

37-
; Win9x does not support CreateNamedPipe(), so use anonymouse pipes there
37+
; Win9x does not support CreateNamedPipe(), so use anonymous pipes there
3838
;
3939
IsNamedPipe.l
4040
DebuggerInPipeHandle.i ; handles to the debugger end of the anonymous
@@ -104,7 +104,7 @@ CompilerIf #CompileWindows
104104
BytesAvailable = 0
105105
PeekNamedPipe_(*This\InPipeHandle, #Null, 0, #Null, @BytesAvailable, #Null)
106106

107-
; atleast a full command struct must be available
107+
; at least a full command struct must be available
108108
If BytesAvailable >= SizeOf(CommandInfo)
109109

110110
; read the structure
@@ -121,7 +121,7 @@ CompilerIf #CompileWindows
121121
*CommandData = AllocateMemory(*Command\DataSize)
122122
If *CommandData
123123
;
124-
; This read may block, as we do not test if all is availeble, but this is ok.
124+
; This read may block, as we do not test if all is available, but this is ok.
125125
; We cannot wait for all to be available, as it may be more than the pipe buffer can store!
126126
;
127127
Received = 0
@@ -249,7 +249,7 @@ CompilerIf #CompileWindows
249249

250250

251251
Procedure WinPipe_Connect(*This.WinPipe_Communication)
252-
; all work done in the Create function (for this side atleast)
252+
; all work done in the Create function (for this side at least)
253253
ProcedureReturn #True
254254
EndProcedure
255255

PureBasicDebugger/DebuggerCommon.pb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,7 @@ Structure DebuggerData
695695

696696
IsNetwork.l ; true if the communication is network based
697697
Communication.Communication ; communication interface
698-
Command.CommandInfo ; last processed incomming command (for easy access)
698+
Command.CommandInfo ; last processed incoming command (for easy access)
699699
*CommandData ; pointer to any additional command data (for last processed command)
700700

701701
FileName$ ; real source file as opposed to what is in the executable (something like /tmp/PB_EditorOutput.pb)
@@ -785,10 +785,10 @@ Structure DebuggerData
785785
; ===================================================
786786
;
787787
SourceID.i ; unique ID of the main source (if any)
788-
TriggerTargetID.i ; unique ID of the target that triggered the compile (not neccesarily the main file!)
788+
TriggerTargetID.i ; unique ID of the target that triggered the compile (not necessarily the main file!)
789789

790790
; *SourceFile.l ; pointer to associated sourcefile structure if any
791-
; *CompileSource.l; the source that triggered the compile (not nessecarily the main file!)
791+
; *CompileSource.l; the source that triggered the compile (not necessarily the main file!)
792792
;
793793
; CPUUsage.l ; last polled cpu usage value (in %)
794794
; CPUOldUsage.l ; previous polled cpu usage value

PureBasicDebugger/DebuggerGUI.pb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ Procedure Debugger_UpdateWindowPreferences()
106106

107107
EndProcedure
108108

109-
; checks if an event is comming from a debugger window and dispactes it
109+
; checks if an event is coming from a debugger window and dispactes it
110110
; to the right procedure
111111
; returns 1 if it was a debugger event and 0 if not
112112
;

0 commit comments

Comments
 (0)