/[libvob]/libvob/src/jni/Strings.cxx
ViewVC logotype

Diff of /libvob/src/jni/Strings.cxx

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tjl, Tue Mar 11 12:10:32 2003 UTC revision 1.2 by tjl, Tue Mar 11 12:57:04 2003 UTC
# Line 24  Strings.cxx Line 24  Strings.cxx
24   * Written by Tuomas J. Lukka   * Written by Tuomas J. Lukka
25   */   */
26    
27    #include <vob/jni/Types.hxx>
28  #include <vob/jni/Strings.hxx>  #include <vob/jni/Strings.hxx>
29  #include <callgl.hxx>  #include <callgl.hxx>
30    
# Line 42  std::string jstr2stdstr(JNIEnv *env, jst Line 43  std::string jstr2stdstr(JNIEnv *env, jst
43    
44    
45  GLenum tokenFromJstring(JNIEnv *env, jstring token) {  GLenum tokenFromJstring(JNIEnv *env, jstring token) {
46        DBG(JNI::dbg_convert) << "Converting jstring "<<env<<" "<<token<<"\n";
47      std::string str = jstr2stdstr(env, token);      std::string str = jstr2stdstr(env, token);
48        DBG(JNI::dbg_convert) << "Got std str "<<str<<"\n";
49      GLenum ret = CallGL::getTokenValue(str.c_str());      GLenum ret = CallGL::getTokenValue(str.c_str());
50        DBG(JNI::dbg_convert) << "Got val "<<ret<<"\n";
51      return ret;      return ret;
52  }  }
53    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26