Skip to content

Commit

Permalink
Fixed typos
Browse files Browse the repository at this point in the history
Also added -nocolour due to HXCPP_NO_COLOUR
  • Loading branch information
NeeEoo committed Dec 9, 2024
1 parent 54af892 commit 6dd98dd
Show file tree
Hide file tree
Showing 71 changed files with 168 additions and 168 deletions.
32 changes: 16 additions & 16 deletions Changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

4.1.15
------------------------------------------------------------
* Added Arm64 suport on windows
* Added Arm64 support on windows
* Fixed crash with zero-sized alloc and generational GC
* Fixed crash with generational GC when old objects come back to life
* Fixed compile error with @:fixed Anons and arrays (socket select)
Expand Down Expand Up @@ -197,7 +197,7 @@
* Support HXCPP_DEBUG_LINK on more targets
* Support for cross compiling to windows from linux
* Added array removeAt
* Some telemety fixes (thanks Jeff)
* Some telemetry fixes (thanks Jeff)
* Check contents when comparing Dynamics with same pointer (Math.Nan!=Math.Nan)
* Numerous WinRT fixes (thanks madrazo)
* Fixed bug causing GC to crash marking constant strings (eg, resources)
Expand Down Expand Up @@ -241,7 +241,7 @@
* Make it easier to change the generated output filename
* Allow targets from one build.xml file to be merged into another
* Some more work on HXCPP_COMPILE_CACHE
* Allow automatic grouping of obj files into librarys to avoid linking all the symbols in all obj files
* Allow automatic grouping of obj files into libraries to avoid linking all the symbols in all obj files
* Add implicit conversion to referenced type from cpp.Reference
* Allow build.xml files to be imported relative to importing file
* Allow '-' in command-line defines
Expand All @@ -265,11 +265,11 @@ Haxe 3.2.0
------------------------------------------------------------

* Improve testing
* Allow dll_load path to be set programatically and simplified the dll search sequence.
* Allow dll_load path to be set programmatically and simplified the dll search sequence.
* Improved cffi_prime, and added String class
* Fixed static linking of mysql5
* Moved static link code in general to cpp.link package, not hxcpp package
* URL decode now does not need to performe reallocs
* URL decode now does not need to perform reallocs
* Ensure HXCPP_API_LEVEL is always defined
* Added __hxcpp_unload_all_libraries to cleanly unload dlls
* Added some utc date functions
Expand Down Expand Up @@ -307,13 +307,13 @@ Haxe 3.2.0
* Remove NekoApi binaries
* Add Cppia binaries
* Add Windows64 binaries
* Make compares between Dynamic and numeric types false, unless the Dynamic is actaully numeric
* Make compares between Dynamic and numeric types false, unless the Dynamic is actually numeric

------------------------------------------------------------
* Even more optimizations for hashes
* Some more optimizations for small hashes
* Fix for google changing inlining in platform21 headers (atof, rand, srand)
* Re-tuned Hash for small objects too (improves Anon object perforamce)
* Re-tuned Hash for small objects too (improves Anon object performance)
* Reverted change that automatically threw 'BadCast'. Now required HXCPP_STRICT_CASTS

------------------------------------------------------------
Expand All @@ -322,10 +322,10 @@ Haxe 3.2.0
* Use internal hash structure for maps - now faster. New version of haxe makes it faster still.
* Changed the way development versions are bootstrapped to avoid committing binaries
* Improved mingw support
* Dont append -debug to dll name
* Don't append -debug to dll name
* Reorder xml includes to allow early parts to correctly influence older parts
* Fix busy wait in semaphore lock
* Fixed GC issue when constructing exrernal primitive objects
* Fixed GC issue when constructing external primitive objects
* Added armv7s and arm64 targets for ios
* Some fixes for neko cffi - wstring and warning for neko_init
* Fix file read (and copy) from thread
Expand Down Expand Up @@ -390,7 +390,7 @@ Haxe 3.2.0
* Use sys.io.Process instead of Sys.command to avoid threading slowdown writing to console
* Add hxcpp.Builder to help with building multiple binaries
* Add android x86 support
* Drop pre-compiled support for everything excepth windows,mac,linux,ios and android
* Drop pre-compiled support for everything except windows,mac,linux,ios and android
* Allow libraries and files to accumulated in the build.xml
* Supply pre-build lib files for static linking on supported platforms
* Support for static linking of all modules
Expand All @@ -399,7 +399,7 @@ Haxe 3.2.0
* Use build.n script to build all appropriate binaries
* Some initial support for mysql and sqlite databases
* Add free_abstract for safe releasing of data references
* Change process lauching to get better thread usage on mac
* Change process launching to get better thread usage on mac
* Fix GC error in string resources
* Give obj files in libraries unique names

Expand All @@ -419,9 +419,9 @@ Haxe 3.2.0
* Fixed android build
* Expanded native memory access methods
* Fix exception dump
* Added initial Emscriptm support
* Added initial Emscripten support
* Allow specification of ANDROID_HOST
* Inital work on auto-setup of win64
* Initial work on auto-setup of win64
* Support call-site casting of Arrays


Expand Down Expand Up @@ -583,7 +583,7 @@ Haxe 3.2.0
* Fix interface operator ==
* Initial work on msvc10 batch file
* Add bounds check on String.cca
* Build static libraries, if requrested
* Build static libraries, if requested
* Added exe stripping
* Added val_field_name, val_iter_fields
* Fixed nekoapi string length
Expand All @@ -596,7 +596,7 @@ Haxe 3.2.0
* Fixed String UTF8 Encode
* Nekoapi is now a "ndll", not a "dso".
* Fix array compile issue on linux
* Fix stack setting on firced collect
* Fix stack setting on forced collect

2.06.0
------------------------------------------------------------
Expand All @@ -621,7 +621,7 @@ Haxe 3.2.0
------------------------------------------------------------

* Default to IMMIX based internal garbage collection.
* Reorginised files - split big ones, and moved common ones out of "runtime".
* Reorganised files - split big ones, and moved common ones out of "runtime".
* Put internal classes in "hx" namespace, or HX_ prefix for macros.
* Remove multiple-inheritance, and use delegation instead.
* Write "Options.txt" from compiler so dependency can be determined.
Expand Down
4 changes: 2 additions & 2 deletions docs/CompileCache.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ The Hxcpp Cache
---------------
The hxcpp compile cache is used to share object files between projects. This can alleviate the need to ship static libraries with external projects, since developers who use the library can compile the library just once, and then reuse it between projects.

The cache uses a hashing mechanism to tell if the contents of a file or its dependencies has changed, and combines this with the compiler version and flags to make specific object files for each change and each compiler congiguration. This also allows some common haxe runtime and haxe generated files to share their object files between projects, even if in different directories.
The cache uses a hashing mechanism to tell if the contents of a file or its dependencies has changed, and combines this with the compiler version and flags to make specific object files for each change and each compiler configuration. This also allows some common haxe runtime and haxe generated files to share their object files between projects, even if in different directories.

Additional benefits include keeping some files outside the source tree, and being able to remove these temp files easily.

Expand All @@ -17,7 +17,7 @@ Keeping the path short can help in some border-line cases with some compilers wh
The cache size defaults to 1 Gig. For many cases, this is big enough. However, on large projects, with several architectures and lots of debug information, this default can lead to "cache churn" where some files are evicted from the cache, even though they are likely to be used again. Increasing the number of mega-bytes allocated to the cache can help here.

### Using The Cache
To use the cashe with your own libraries, the files group should have 'cache' entry to tell hxcpp that you have considered dependency issues when designing the group.
To use the cache with your own libraries, the files group should have 'cache' entry to tell hxcpp that you have considered dependency issues when designing the group.

```xml
<cache value="true" project="name" asLibrary="true" />
Expand Down
4 changes: 2 additions & 2 deletions docs/ThreadsAndStacks.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ Enter/exit use similar technique, where the registers are captured and the botto
* any changes here will not affect GC
```

Now, when another thread does a collection, the gc-free thread can be scanned from 8088 to 9976, regardless of any stuff happening lower dowsn the stack.
Now, when another thread does a collection, the gc-free thread can be scanned from 8088 to 9976, regardless of any stuff happening lower down the stack.


### Not Called From Main
Expand All @@ -119,7 +119,7 @@ Top of stack can be tricky to get right when a gui framework does not really hav
7976 int t0
SetTopOfStack(&t0,false) -> 7966
__hxcpp_main();
setOnFrameCallack(haxeOnFrame)
setOnFrameCallback(haxeOnFrame)
return;
```

Expand Down
2 changes: 1 addition & 1 deletion docs/build_xml/Defines.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Other defines:
| *HXCPP_VERBOSE* | Print extra output from build tool. |
| *HXCPP_TIMES* | Show some basic profiling information |
| *HXCPP_NEKO_BUILDTOOL* | Force use of hxcpp.n, rather than compiled BuildTool.exe
| *HXCPP_NO_COLOR* | Do not add colour-codes to tool output |
| *HXCPP_NO_COLOR* | Do not add color-codes to tool output |
| *HXCPP_KEEP_TEMP* | Does not delete the files created for file 'embedName' option |


Expand Down
4 changes: 2 additions & 2 deletions docs/build_xml/Linker.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Linker
------
Generally one linker is run per target to build a static library, dynamic library or exe. The 'id' attribute of the linker specifies whch type of linking is performed.
Generally one linker is run per target to build a static library, dynamic library or exe. The 'id' attribute of the linker specifies which type of linking is performed.


- *exe* - Overwrite the exe command for this linker.
Expand Down Expand Up @@ -43,7 +43,7 @@ Generally one linker is run per target to build a static library, dynamic librar
```
+ name = the complete name is specified
+ base = the name without compiler-specific extension (.a/.lib) is specified
+ hxbase = the name without extension and architecture (-v7/.iphoinesim) is specified
+ hxbase = the name without extension and architecture (-v7/.iphonesim) is specified

- *prefix* - Prefix for generated files.
```xml
Expand Down
2 changes: 1 addition & 1 deletion docs/build_xml/Targets.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Targets can contain the following nodes:
```
+ name = the complete name is specified
+ base = the name without compiler-specific extension (.a/.lib) is specified
+ hxbase = the name without extension and architecture (-v7/.iphoinesim) is specified
+ hxbase = the name without extension and architecture (-v7/.iphonesim) is specified

- *flag* - Add a single link flag.
```xml
Expand Down
2 changes: 1 addition & 1 deletion haxelib.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<project name="hxcpp" url="http://gamehaxe.com/" license="BSD">
<user name="gamehaxe"/>
<description>Hxcpp is the runtime support for the c++ backend of the haxe compiler. This release constains the headers, libraries and support code required to generate a fully compiled executable from haxe code.</description>
<description>Hxcpp is the runtime support for the c++ backend of the haxe compiler. This release contains the headers, libraries and support code required to generate a fully compiled executable from haxe code.</description>
<version name="3.1.0">See Changes.txt</version>
</project>
2 changes: 1 addition & 1 deletion include/Array.h
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ namespace cpp

// --- Array_obj ------------------------------------------------------------------
//
// The Array_obj specialises the ArrayBase, adding typing where required
// The Array_obj specializes the ArrayBase, adding typing where required


namespace hx
Expand Down
2 changes: 1 addition & 1 deletion include/hx/CFFI.h
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@ inline bool resizeByteData(value inValue, int inNewLen)
#define copy_string(str,len) alloc_string_len(str,len)


// The "Check" macros throw an error if assumtion is false
// The "Check" macros throw an error if assumption is false
#define val_check_kind(v,t) if( !val_is_kind(v,t) ) hx_failure("invalid kind");
#define val_check_function(f,n) if( !val_is_function(f) || (val_fun_nargs(f) != (n) && val_fun_nargs(f) != faVarArgs) ) hx_failure("Bad function");
#define val_check(v,t) if( !val_is_##t(v) ) hx_failure("type not " #t);
Expand Down
6 changes: 3 additions & 3 deletions include/hx/CFFILoader.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#define HX_CFFI_LOADER_H

/*
This file will only be incuded in one cpp file in the ndll library -
This file will only be included in one cpp file in the ndll library -
the one with IMPLEMENT_API #defined.
The other files will refer to the val_ functions via the "extern" in CFFI.h
Expand All @@ -12,12 +12,12 @@
The pointers starts off as function pointers to bootstrap code, so when they are first called
the bootstrap uses the "ResolveProc" to find the correct version of the function for the particular
platform, and replaces the function pointer with this value. Subsequent calls then go directly
to the correct fucntion.
to the correct function.
The ResolveProc can come from:
Explicitly setting - the proc is set when a dll is loaded into the hxcpp exe
Via 'GetProcAddress' on the exe - if symbols are needed and the proc has not been set
Internal implementation (CFFINekoLoader) - when linking agaist a neko process.
Internal implementation (CFFINekoLoader) - when linking against a neko process.
- Old code used to find this in NekoApi.dll, but the glue code is now built into each ndll directly.
For static linking, the functions are resolved at link time.
Expand Down
2 changes: 1 addition & 1 deletion include/hx/ErrorCodes.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef HX_ERROR_CODES
#define HX_ERROR_CODES

// --- Exteral constants, used inline
// --- External constants, used inline
#define HX_INVALID_CAST Dynamic(HX_CSTRING("Invalid Cast"))
#define HX_INVALID_INTERFACE Dynamic(HX_CSTRING("Object does not implement interface"))
#define HX_INDEX_OUT_OF_BOUNDS Dynamic(HX_CSTRING("Index Out of Bounds"))
Expand Down
2 changes: 1 addition & 1 deletion include/hx/FieldRef.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace hx

// --- FieldRef ----------------------------------------------------------
//
// This is used to provide syntaxe for setting fields by name. This is because
// This is used to provide syntax for setting fields by name. This is because
// the field can't be returned by reference, because it may not exist as a dynamic.
//
// eg, consider class 'A' with variable 'x':
Expand Down
2 changes: 1 addition & 1 deletion include/hx/GC.h
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ class ImmixAllocator



// These allocate the function using the garbage-colleced malloc
// These allocate the function using the garbage-collected malloc
inline static void *alloc(ImmixAllocator *alloc, size_t inSize, bool inContainer, const char *inName )
{
#ifdef HXCPP_GC_NURSERY
Expand Down
2 changes: 1 addition & 1 deletion include/hx/Memory.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifdef HX_MEMORY_H_OVERRIDE
// Users can define their own header to use here, but there is no API
// compatibility gaurantee for future changes.
// compatibility guarantee for future changes.
#include HX_MEMORY_H_OVERRIDE

// Todo - special version?
Expand Down
2 changes: 1 addition & 1 deletion include/hx/StackContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#define HXCPP_STACK_LINE
#endif

// Do we need to keep a stack trace - for basic exception handelling, also needed for the debugger
// Do we need to keep a stack trace - for basic exception handling, also needed for the debugger
// At a minimum, you can track the functions calls and nothing else
#if (defined(HXCPP_STACK_LINE) || defined(HXCPP_TELEMETRY) || defined(HXCPP_PROFILER) || defined(HXCPP_DEBUG)) && !defined(HXCPP_STACK_TRACE)
#define HXCPP_STACK_TRACE
Expand Down
4 changes: 2 additions & 2 deletions include/hx/StdString.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef HX_STD_STRING_INCLUDEDED
#define HX_STD_STRING_INCLUDEDED
#ifndef HX_STD_STRING_INCLUDED
#define HX_STD_STRING_INCLUDED

#include <string>

Expand Down
2 changes: 1 addition & 1 deletion include/hx/Thread.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifdef HX_THREAD_H_OVERRIDE
// Users can define their own header to use here, but there is no API
// compatibility gaurantee for future changes.
// compatibility guarantee for future changes.
#include HX_THREAD_H_OVERRIDE
#else

Expand Down
2 changes: 1 addition & 1 deletion include/hx/Tls.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#ifdef HX_TLS_H_OVERRIDE
// Users can define their own header to use here, but there is no API
// compatibility gaurantee for future changes.
// compatibility guarantee for future changes.
#include HX_TLS_H_OVERRIDE
#else

Expand Down
2 changes: 1 addition & 1 deletion include/hxString.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class HXCPP_EXTERN_CLASS_ATTRIBUTES String
friend class StringOffset;

public:
// These allocate the function using the garbage-colleced malloc
// These allocate the function using the garbage-collected malloc
void *operator new( size_t inSize );
inline void* operator new( size_t, void* ptr ) { return ptr; }
void operator delete( void * ) { }
Expand Down
6 changes: 3 additions & 3 deletions include/hxcpp.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
#define HXCPP_ALIGN_FLOAT
#endif

// Must allign allocs to 8 bytes to match floating point requirement?
// Must align allocs to 8 bytes to match floating point requirement?
// Ints must br read on 4-byte boundary
#if (!defined(HXCPP_ALIGN_FLOAT) && (defined(EMSCRIPTEN) || defined(GCW0)) )
#define HXCPP_ALIGN_ALLOC
Expand Down Expand Up @@ -189,7 +189,7 @@ typedef char HX_CHAR;

#ifdef HX_SMART_STRINGS
#define HX_FIELD_EQ(name,field) (name.isAsciiEncoded() && !::memcmp(name.raw_ptr(), field, sizeof(field)/sizeof(char)))
// No null check is performedd...
// No null check is performed...
#define HX_QSTR_EQ(name,field) (name.length==field.length && field.isAsciiEncodedQ() && !::memcmp(name.raw_ptr(), field.raw_ptr() , field.length) )
// field is known to be isAsciiEncodedQ
#define HX_QSTR_EQ_AE(name,field) (name.length==field.length && !::memcmp(name.raw_ptr(), field.raw_ptr() , field.length) )
Expand Down Expand Up @@ -246,7 +246,7 @@ namespace cpp
// Extended mapping - old way
namespace haxe { namespace io { typedef unsigned char Unsigned_char__; } }

// --- Forward decalarations --------------------------------------------
// --- Forward declarations --------------------------------------------

class null;
namespace hx { class Object; }
Expand Down
4 changes: 2 additions & 2 deletions include/null.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

// --- null value ---------------------------------------------------------
//
// This is used by external operatator and return statments - Most will
// This is used by external operator and return statements - Most will
// use operator overloading to convert to the null pointer


Expand Down Expand Up @@ -199,7 +199,7 @@ struct Null
T value;
};

} // end namesapce hx
} // end namespace hx

typedef null Void;

Expand Down
Loading

0 comments on commit 6dd98dd

Please sign in to comment.