• Keith Randall's avatar
    cmd/fix: don't depend on *GetTypeID functions being present · bd893334
    Keith Randall authored
    cgo uses the presence of these functions to determine whether
    a given type is in the CFTypeRef hierarchy and thus should be
    a uintptr instead of a pointer. But if the *GetTypeID functions
    aren't used by the user code, then they won't be present in the
    cgo output, and thus cmd/fix won't see them.
    
    Use the simpler rule that anything ending in *Ref should be
    rewritten. This could over-rewrite, but I don't see a simpler
    solution. Unlike cgo, it is easy to edit the output to fix any
    issues. And fix is a much rarer operation than cgo.
    
    This is a revert of portions of CL 87616.
    
    Update #23091
    
    Change-Id: I74ecd9fb25490a3d279b372e107248452bb62185
    Reviewed-on: https://go-review.googlesource.com/88075
    Run-TryBot: Keith Randall <khr@golang.org>
    TryBot-Result: Gobot Gobot <gobot@golang.org>
    Reviewed-by: 's avatarRobert Griesemer <gri@golang.org>
    bd893334
Name
Last commit
Last update
.github Loading commit data...
api Loading commit data...
doc Loading commit data...
lib/time Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.gitattributes Loading commit data...
.gitignore Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTING.md Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README.md Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...