Skip to content

Instantly share code, notes, and snippets.

@nddrylliog
Last active December 21, 2015 12:49

Revisions

  1. nddrylliog revised this gist Aug 22, 2013. 2 changed files with 26 additions and 0 deletions.
    26 changes: 26 additions & 0 deletions after
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,26 @@
    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]
    File renamed without changes.
  2. nddrylliog created this gist Aug 22, 2013.
    25 changes: 25 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@
    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]