Skip to content

Commit

Permalink
GetProcAddress takes simple byte string procedure name
Browse files Browse the repository at this point in the history
Until now, there's no such thing as internationalized procedure names.
Probably because low level languages do not support non ASCII identifiers.
  • Loading branch information
nicolas-cellier-aka-nice committed Dec 28, 2018
1 parent 001d21a commit 616cacb
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions platforms/win32/vm/sqWin32ExternalPrims.c
Expand Up @@ -69,19 +69,11 @@ ioFindExternalFunctionInAccessorDepthInto(char *lookupName, void *moduleHandle,
void *f;
char buffer[256];

# ifdef UNICODE
f = GetProcAddress(moduleHandle, toUnicode(lookupName));
# else
f = GetProcAddress(moduleHandle, lookupName);
# endif
if (f && accessorDepthPtr) {
void *accessorDepthVarPtr;
snprintf(buffer,256,"%sAccessorDepth",lookupName);
# ifdef UNICODE
accessorDepthVarPtr = GetProcAddress(moduleHandle, toUnicode(buffer));
# else
accessorDepthVarPtr = GetProcAddress(moduleHandle, buffer);
# endif
/* The Slang machinery assumes accessor depth defaults to -1, which
* means "no accessor depth". It saves space not outputting -1 depths.
*/
Expand All @@ -95,11 +87,7 @@ ioFindExternalFunctionInAccessorDepthInto(char *lookupName, void *moduleHandle,
void *
ioFindExternalFunctionIn(char *lookupName, void *moduleHandle)
{
# ifdef UNICODE
return GetProcAddress((HANDLE)moduleHandle, toUnicode(lookupName));
# else
return GetProcAddress((HANDLE)moduleHandle, lookupName);
# endif
}
#endif /* SPURVM */

Expand Down

0 comments on commit 616cacb

Please sign in to comment.