Re: How are system parameters entered into s-taprop.adb?
Svante Signell <email@example.com> writes:
> Another stupid question: How is the system parameter ENOMEM
> communicated from s-osinte-gnu.ads to s-taprop-gnu.adb?
ENOMEM is not a variable, it is a constant, sometimes defined as a C
macro in libc, in which case it cannot be imported. In GNAT it is
(re-)defined as a constant by the various incarnations of the package
System.OS_Interface, the spec of which is one of the files
> There is no with statement in the .adb file and adding with
> System.OS_Interface; use System.OS_Interface;
The with statement is in the spec of the package
System.Task_Primitives.Operations, in s-taprop.ads, and the use
statement is in the body, in the appropriate s-taprop-*.adb.
You should really learn how Ada packages work :)