source:
libyaml/trunk/src/version.c
@
172
| Revision 172, 313 bytes checked in by xi, 7 years ago (diff) |
|---|
| Rev | Line | |
|---|---|---|
| [169] | 1 | |
| 2 | #if HAVE_CONFIG_H | |
| 3 | #include <config.h> | |
| 4 | #endif | |
| 5 | ||
| 6 | #include <yaml/yaml.h> | |
| 7 | ||
| 8 | const char * | |
| 9 | yaml_get_version_string(void) | |
| 10 | { | |
| 11 | return YAML_VERSION_STRING; | |
| 12 | } | |
| 13 | ||
| 14 | void | |
| 15 | yaml_get_version(int *major, int *minor, int *patch) | |
| 16 | { | |
| 17 | *major = YAML_VERSION_MAJOR; | |
| 18 | *minor = YAML_VERSION_MINOR; | |
| 19 | *patch = YAML_VERSION_PATCH; | |
| 20 | } | |
| 21 |
Note: See TracBrowser
for help on using the repository browser.
