|
Packit |
b89d10 |
/**********************************************************************
|
|
Packit |
b89d10 |
regversion.c - Oniguruma (regular expression library)
|
|
Packit |
b89d10 |
**********************************************************************/
|
|
Packit |
b89d10 |
/*-
|
|
Packit |
b89d10 |
* Copyright (c) 2002-2018 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
|
|
Packit |
b89d10 |
* All rights reserved.
|
|
Packit |
b89d10 |
*
|
|
Packit |
b89d10 |
* Redistribution and use in source and binary forms, with or without
|
|
Packit |
b89d10 |
* modification, are permitted provided that the following conditions
|
|
Packit |
b89d10 |
* are met:
|
|
Packit |
b89d10 |
* 1. Redistributions of source code must retain the above copyright
|
|
Packit |
b89d10 |
* notice, this list of conditions and the following disclaimer.
|
|
Packit |
b89d10 |
* 2. Redistributions in binary form must reproduce the above copyright
|
|
Packit |
b89d10 |
* notice, this list of conditions and the following disclaimer in the
|
|
Packit |
b89d10 |
* documentation and/or other materials provided with the distribution.
|
|
Packit |
b89d10 |
*
|
|
Packit |
b89d10 |
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
|
|
Packit |
b89d10 |
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
Packit |
b89d10 |
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
Packit |
b89d10 |
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
|
|
Packit |
b89d10 |
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
Packit |
b89d10 |
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
Packit |
b89d10 |
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
Packit |
b89d10 |
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
Packit |
b89d10 |
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
Packit |
b89d10 |
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
Packit |
b89d10 |
* SUCH DAMAGE.
|
|
Packit |
b89d10 |
*/
|
|
Packit |
b89d10 |
|
|
Packit |
b89d10 |
#include "regint.h"
|
|
Packit |
b89d10 |
#include <stdio.h>
|
|
Packit |
b89d10 |
|
|
Packit |
b89d10 |
extern const char*
|
|
Packit |
b89d10 |
onig_version(void)
|
|
Packit |
b89d10 |
{
|
|
Packit |
b89d10 |
static char s[12];
|
|
Packit |
b89d10 |
|
|
Packit |
b89d10 |
xsnprintf(s, sizeof(s), "%d.%d.%d",
|
|
Packit |
b89d10 |
ONIGURUMA_VERSION_MAJOR,
|
|
Packit |
b89d10 |
ONIGURUMA_VERSION_MINOR,
|
|
Packit |
b89d10 |
ONIGURUMA_VERSION_TEENY);
|
|
Packit |
b89d10 |
return s;
|
|
Packit |
b89d10 |
}
|
|
Packit |
b89d10 |
|
|
Packit |
b89d10 |
extern const char*
|
|
Packit |
b89d10 |
onig_copyright(void)
|
|
Packit |
b89d10 |
{
|
|
Packit |
b89d10 |
static char s[58];
|
|
Packit |
b89d10 |
|
|
Packit |
b89d10 |
xsnprintf(s, sizeof(s),
|
|
Packit |
b89d10 |
"Oniguruma %d.%d.%d : Copyright (C) 2002-2018 K.Kosako",
|
|
Packit |
b89d10 |
ONIGURUMA_VERSION_MAJOR,
|
|
Packit |
b89d10 |
ONIGURUMA_VERSION_MINOR,
|
|
Packit |
b89d10 |
ONIGURUMA_VERSION_TEENY);
|
|
Packit |
b89d10 |
return s;
|
|
Packit |
b89d10 |
}
|