GNU social JP
  • FAQ
  • Login
GNU social JPは日本のGNU socialサーバーです。
Usage/ToS/admin/test/Pleroma FE
  • Public

    • Public
    • Network
    • Groups
    • Featured
    • Popular
    • People

Embed Notice

HTML Code

Corresponding Notice

  1. Embed this notice
    Elias Mårtenson (loke@functional.cafe)'s status on Tuesday, 08-Aug-2023 20:18:46 JSTElias MårtensonElias Mårtenson
    in reply to
    • Nicolas Martyanoff

    @galdor

    By masking the pointer type in some cases but not others, you are making your code inconsistent.

    This one I disagree with. Unless they also expose ssh_key_struct of course. Could it be that you made a typo in your previous message and when you wrote: const ssh_key * you means to say const ssh_key_struct *?

    You also hide useful information: if a function accepts a parameter of type ssh_key, it is reasonable to wonder if it is a structure passed by copy, a pointer to something you must allocate yourself, or something more complicated altogether.

    This is much more valid argument in my opinion, and the main reason I never hide pointers behind typedefs. And if it's done, then the underlying struct that the typedef'ed pointer points to should be internal and not visible in the main header.

    In conversation2 years ago from functional.cafepermalink
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

GNU social JP is a social network, courtesy of GNU social JP管理人. It runs on GNU social, version 2.0.2-dev, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All GNU social JP content and data are available under the Creative Commons Attribution 3.0 license.

Embed this notice