⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 org_tigris_subversion_javahl_version.cpp

📁 subversion-1.4.3-1.tar.gz 配置svn的源码
💻 CPP
字号:
/** * @copyright * ==================================================================== * Copyright (c) 2005 CollabNet.  All rights reserved. * * This software is licensed as described in the file COPYING, which * you should have received as part of this distribution.  The terms * are also available at http://subversion.tigris.org/license-1.html. * If newer versions of this license are posted there, you may use a * newer version instead, at your option. * * This software consists of voluntary contributions made by many * individuals.  For exact contribution history, see the revision * history and logs, available at http://subversion.tigris.org/. * ==================================================================== * @endcopyright * * @file org_tigris_subversion_javahl_Version.cpp * @brief Implementation of the native methods in the java class Version. */#include "../include/org_tigris_subversion_javahl_Version.h"#include "JNIStackElement.h"#include "svn_version.h"/* * Class:     org_tigris_subversion_javahl_Version * Method:    getMajor * Signature: ()I */JNIEXPORT jint JNICALL Java_org_tigris_subversion_javahl_Version_getMajor  (JNIEnv* env, jobject jthis){    JNIEntry(Version, getMajor);    return SVN_VER_MAJOR;}/* * Class:     org_tigris_subversion_javahl_Version * Method:    getMinor * Signature: ()I */JNIEXPORT jint JNICALL Java_org_tigris_subversion_javahl_Version_getMinor  (JNIEnv* env, jobject jthis){    JNIEntry(Version, getMinor);    return SVN_VER_MINOR;}/* * Class:     org_tigris_subversion_javahl_Version * Method:    getPatch * Signature: ()I */JNIEXPORT jint JNICALL Java_org_tigris_subversion_javahl_Version_getPatch  (JNIEnv* env, jobject jthis){    JNIEntry(Version, getPatch);    return SVN_VER_PATCH;}/* * Class:     org_tigris_subversion_javahl_Version * Method:    getTag * Signature: ()Ljava/lang/String; */JNIEXPORT jstring JNICALL Java_org_tigris_subversion_javahl_Version_getTag  (JNIEnv* env, jobject jthis){    JNIEntry(Version, getTag);    jstring tag =        JNIUtil::makeJString(SVN_VER_TAG);    if (JNIUtil::isJavaExceptionThrown())    {        return NULL;    }    return tag;}/* * Class:     org_tigris_subversion_javahl_Version * Method:    getNumberTag * Signature: ()Ljava/lang/String; */JNIEXPORT jstring JNICALL Java_org_tigris_subversion_javahl_Version_getNumberTag  (JNIEnv* env, jobject jthis){    JNIEntry(Version, getNumberTag);    jstring numtag =        JNIUtil::makeJString(SVN_VER_NUMTAG);    if (JNIUtil::isJavaExceptionThrown())    {        return NULL;    }    return numtag;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -