Download EuroSim Manual Pages

Transcript
ManPages
iss: 4 rev: 1
2.1.21
FSS-EFO-SPE-523
mkpub
Generate C function that calls publish routines in precompiled files
SYNOPSIS
mkpub [ file ... ]
DESCRIPTION
This command is part of the ADD object PreCompilers.
If a file name ends with an adb it is assumed to be written in Ada; if the file name ends with a c or an i it
is assumed to be written in C; if it ends with an f of F it is assumed to be written in Fortran 77.
mkpub then writes on standard output a C function definition, containing calls to the publish routines
defined in the files. The source language of each file is used to determine what the definition of the
publish routine looks like. The name of the generated C function is all esimpub.
DIAGNOSTICS
The following warnings can be given:
Error: file: no publication function found
mkpub couldn’t find a definition of a publish routine.
The following error messages can be given:
Error: file has unknown suffix
The suffix is not one of adb, c, i, f or F.
Error: file: multiple publication functions found
Only one definition of a publish routine per file is allowed.
Other diagnostics are self-explanatory, or indicate internal errors.
On error, mkpub exits with status 1, else 0.
SEE ALSO
dict2pub(1)
BUGS
Mail bug reports to [email protected].
32
c Dutch Space BV