STATIC method to allocate temporary memory for AStyle formatting. The data will be converted before being returned to the calling program.
| 2535 | // STATIC method to allocate temporary memory for AStyle formatting. |
| 2536 | // The data will be converted before being returned to the calling program. |
| 2537 | char* STDCALL ASLibrary::tempMemoryAllocation(unsigned long memoryNeeded) |
| 2538 | { |
| 2539 | char* buffer = new(nothrow) char [memoryNeeded]; |
| 2540 | return buffer; |
| 2541 | } |
| 2542 | |
| 2543 | // Adapted from SciTE UniConversion.cxx. |
| 2544 | // Copyright 1998-2001 by Neil Hodgson <neilh@scintilla.org> |
nothing calls this directly
no outgoing calls
no test coverage detected