Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Last active December 21, 2015 12:49
Show Gist options
  • Save nddrylliog/6308397 to your computer and use it in GitHub Desktop.
Save nddrylliog/6308397 to your computer and use it in GitHub Desktop.
Final score = -97952
\o/ Found fDecl for pton, it's static Inet pton(Int, CString, Pointer) -> Int
** [refScore = -97952] Got suggestion static Inet pton(Int, CString, Pointer) -> Int for Inet pton(type, ip, ai&)
Regular arg consumes one.
Regular arg consumes one.
Regular arg consumes one.
matchesArg, score is now 256
typeScore for Int vs Int == 1024 for call Inet pton(type, ip, ai&) (signed int vs signed int) [0x2b2e660 vs 0x2b2e660]
typeScore for String vs CString == -100000 for call Inet pton(type, ip, ai&) (String vs char*) [0x2c22980 vs 0x2cb8d48]
typeScore for InAddr* vs Pointer == 512 for call Inet pton(type, ip, ai&) (struct in_addr* vs void*) [0x2df0ee0 vs 0x2c32550]
Final score = -97952
Should resolve typeArg Int in call Inet pton(type, ip, ai&)
Looking for typeArg Int in expr Inet
Couldn't resolve typeArg Int
Should resolve typeArg CString in call Inet pton(type, ip, ai&)
Looking for typeArg CString in expr Inet
Couldn't resolve typeArg CString
Should resolve typeArg Pointer in call Inet pton(type, ip, ai&)
Looking for typeArg Pointer in expr Inet
Couldn't resolve typeArg Pointer
sdk\net\utilities.ooc:35:15 ERROR No such function pton(Int, String, InAddr*) for `InetClass`
Closest match: static Inet pton(Int, CString, Pointer) -> Int
ai: InAddr
~
[FAIL]
Final score = -97952
\o/ Found fDecl for pton, it's static Inet pton(Int, CString, Pointer) -> Int
** [refScore = -97952] Got suggestion static Inet pton(Int, CString, Pointer) -> Int for Inet pton(type, ip, ai&)
Regular arg consumes one.
Regular arg consumes one.
Regular arg consumes one.
matchesArg, score is now 256
typeScore for Int vs Int == 1024 for call Inet pton(type, ip, ai&) (signed int vs signed int) [0x2b67660 vs 0x2b67660]
typeScore for String vs CString == -100000 for call Inet pton(type, ip, ai&) (String vs char*) [0x2cc2980 vs 0x2f48d48]
typeScore for InAddr* vs Pointer == 512 for call Inet pton(type, ip, ai&) (struct in_addr* vs void*) [0x34262a8 vs 0x2c41660]
Final score = -97952
Should resolve typeArg Int in call Inet pton(type, ip, ai&)
Looking for typeArg Int in expr Inet
Couldn't resolve typeArg Int
Should resolve typeArg CString in call Inet pton(type, ip, ai&)
Looking for typeArg CString in expr Inet
Couldn't resolve typeArg CString
Should resolve typeArg Pointer in call Inet pton(type, ip, ai&)
Looking for typeArg Pointer in expr Inet
Couldn't resolve typeArg Pointer
sdk\net\utilities.ooc:35:15 ERROR No such function pton(Int, String, InAddr*) for `InetClass`
ai: InAddr
~
[FAIL]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment