MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / Setup

Method Setup

source/script2.cpp:316–330  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

314
315
316ResultType input_type::Setup(LPTSTR aOptions, LPTSTR aEndKeys, LPTSTR aMatchList, size_t aMatchList_length)
317{
318 ParseOptions(aOptions);
319 if (!SetKeyFlags(aEndKeys))
320 return FAIL;
321 if (!SetMatchList(aMatchList, aMatchList_length))
322 return FAIL;
323
324 // For maintainability/simplicity/code size, it's allocated even if BufferLengthMax == 0.
325 if ( !(Buffer = tmalloc(BufferLengthMax + 1)) )
326 return MemoryError();
327 *Buffer = '\0';
328
329 return OK;
330}
331
332
333ResultType InputStart(input_type &input)

Callers

nothing calls this directly

Calls 1

MemoryErrorFunction · 0.85

Tested by

no test coverage detected