The module agenda
A module of commands that imports the module calendar.
Each export calls days_in_month of calendar through an import slot: one indirect call. The loader puts calendar in the same program, or the module that a replacement gives in its place: the file of this module does not change, so its hash does not change. The module is also a program that waits: two programs that import calendar at two places share one copy of its code.
| Fact | Value |
|---|---|
| Source | modules/agenda |
| Boot image | in the boot image; the image is not built, so its size is not known |
| Imports | calendar |
| Imported by | none |
Exports
| Export | What it does |
|---|---|
| year_days(year: Integer) -> Integer | gives the count of days of a year: the sum of the days of its months, from the module calendar |
| month_days(month: Integer, year: Integer) -> Integer | gives the count of days of one month of a year, from the module calendar |
| calls(count: Integer) -> Integer | calls days_in_month a count of times and gives the sum of the results: a measure of a call through an import slot |
| entry() |
Read from the source of the module, as the build reads it to describe the exports (tools/kerneltool/describe.odin).
