Page MenuHomeFreeBSD

casper: Export functions to C++
ClosedPublic

Authored by cem on Apr 7 2020, 1:50 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, May 6, 1:34 AM
Unknown Object (File)
Fri, May 3, 7:41 PM
Unknown Object (File)
Thu, May 2, 6:30 PM
Unknown Object (File)
Tue, Apr 16, 11:06 PM
Unknown Object (File)
Jan 9 2024, 8:48 AM
Unknown Object (File)
Dec 20 2023, 3:29 AM
Unknown Object (File)
Dec 8 2023, 9:52 PM
Unknown Object (File)
Nov 9 2023, 9:36 PM
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 Passed
Unit
No Test Coverage
Build Status
Buildable 30340
Build 28108: arc lint + arc unit

Event Timeline

markj added inline comments.
lib/libcasper/services/cap_dns/cap_dns.h
39

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

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.