Page MenuHomeFreeBSD

casper: Export functions to C++
ClosedPublic

Authored by cem on Apr 7 2020, 1:50 AM.
Tags
None
Referenced Files
F152565122: D24323.id70303.diff
Wed, Apr 15, 5:36 PM
Unknown Object (File)
Mon, Apr 13, 3:18 AM
Unknown Object (File)
Sun, Apr 12, 7:17 PM
Unknown Object (File)
Tue, Apr 7, 12:18 AM
Unknown Object (File)
Mon, Apr 6, 9:04 PM
Unknown Object (File)
Mon, Apr 6, 9:58 AM
Unknown Object (File)
Sun, Apr 5, 8:07 AM
Unknown Object (File)
Sat, Apr 4, 12:18 AM
Subscribers

Details

Summary

Need to wrap C declarations in BEGIN/END DECLS to avoid C++ name-mangling the
declaration, which causes the linker to attempt to locate the wrong symbol
name.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

markj added inline comments.
lib/libcasper/services/cap_dns/cap_dns.h
39 ↗(On Diff #70288)

Why types.h in some places but cdefs.h in others?

This revision is now accepted and ready to land.Apr 7 2020, 3:33 PM
lib/libcasper/services/cap_dns/cap_dns.h
39 ↗(On Diff #70288)

Should just be cdefs, sorry. Editing these was a manual process with some missteps, I'll fix that.

sys/cdefs.h universally.

This revision now requires review to proceed.Apr 7 2020, 4:37 PM
This revision was not accepted when it landed; it landed in state Needs Review.Apr 7 2020, 4:40 PM
This revision was automatically updated to reflect the committed changes.
cem marked an inline comment as done.