• RvTV95XBeo@sh.itjust.works
    link
    fedilink
    arrow-up
    2
    arrow-down
    1
    ·
    2 days ago

    Absolute code amateur here, but my guess is “generic headers” are just a copy/paste job from another program (or vibe code), and declare a bunch of really common functions that never actually get utilized in the code.

    Sorta like copying the same import statements in Python, whether you’re using numpy or not

    • ThirdConsul@lemmy.ml
      link
      fedilink
      arrow-up
      2
      ·
      2 days ago

      Sorta like copying the same import statements in Python, whether you’re using numpy

      The other way around. Headers are export code, so messing it up could result in having one import fit two modules.

    • chicken@lemmy.dbzer0.com
      link
      fedilink
      arrow-up
      5
      ·
      edit-2
      2 days ago

      I don’t think that’s quite right:

      So no. Things like this need to get bent. It does not go into generic header files

      ‘generic’ seems to be describing a category of header files that are especially important for some reason, and isn’t being used as a pejorative to describe the rejected code.