Programowanie w systemie UNIX/pari: Różnice pomiędzy wersjami
Usunięta treść Dodana treść
m →pierwszy program: versja |
m →wersja |
||
Linia 62:
Funkcja :
pari_print_version();▼
Zmienne:
* paricfg_version_code encodes in a single long, the Major and minor version numbers as well as the patchlevel.
* PARI_VERSION_SHIFT is the number of bits used to store each of the integers M, m, p in the version code.
* paricfg_vcsversion is a version string related to the revision control system used to handle your sources, if any. For instance git-commit hash if compiled from a git repository.
* The two character strings paricfg_version and paricfg_buildinfo, correspond to the first two lines printed by gp just before the Copyright message. The character string paricfg_compiledate is the date of compilation which appears on the next line. The character string paricfg_mt_engine is the name of the threading engine on the next line.
Funkcje:
* GEN pari_version() returns the version number as a PARI object, a t_VEC with three t_INT and one t_STR components.
* long PARI_VERSION(long M, long m, long p) produces the version code attached to release M.m.p. Each code id a unique PARI release, and corresponds to the natural total order on the set of releases (bigger code number means more recent release).
pari_print_version powoduje :
<source lang=bash>
|