Why does old C code often declare functions or global variables in the scope it's used, rather than at the top of a source file or a header file?

This page summarizes the projects mentioned and recommended in the original post on /r/C_Programming

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
  • jsource

    J engine source mirror

  • All-in-all this example doesn't seem too bad. It's clear what happens and is easy to follow. If you wan't to see something remarkably terribly, check out Whitney style. It's used in APL/J/K family interpreters. Keep in mind, financial institutions run that code.

  • ancient-c-compilers

    Very old C compilers

  • Yeah, it's like night and day when you compare very old C projects to modern ones, like the Linux kernel. The one I shared isn't even too bad; this code feels really prehistoric. It's a link to the source of a few compilers just as C was getting features like structs.

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts