OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

74 lines
2.9 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../kdebindings/ruby_const-fix.patch
  5. # Copyright (C) 2008 The OpenSDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. Index: kdebindings-3.5.9/qtruby/rubylib/qtruby/Qt.cpp
  17. ===================================================================
  18. --- kdebindings-3.5.9.orig/qtruby/rubylib/qtruby/Qt.cpp 2008-06-07 00:48:29.000000000 +0000
  19. +++ kdebindings-3.5.9/qtruby/rubylib/qtruby/Qt.cpp 2008-06-07 00:50:23.000000000 +0000
  20. @@ -950,7 +950,7 @@
  21. const char *
  22. get_VALUEtype(VALUE ruby_value)
  23. {
  24. - char * classname = rb_obj_classname(ruby_value);
  25. + const char * classname = rb_obj_classname(ruby_value);
  26. const char *r = "";
  27. if(ruby_value == Qnil)
  28. r = "u";
  29. @@ -1395,7 +1395,7 @@
  30. }
  31. static QCString *
  32. -find_cached_selector(int argc, VALUE * argv, VALUE klass, char * methodName)
  33. +find_cached_selector(int argc, VALUE * argv, VALUE klass, const char * methodName)
  34. {
  35. // Look in the cache
  36. static QCString * mcid = 0;
  37. @@ -1432,7 +1432,7 @@
  38. static VALUE
  39. method_missing(int argc, VALUE * argv, VALUE self)
  40. {
  41. - char * methodName = rb_id2name(SYM2ID(argv[0]));
  42. + const char * methodName = rb_id2name(SYM2ID(argv[0]));
  43. VALUE klass = rb_funcall(self, rb_intern("class"), 0);
  44. // Look for 'thing?' methods, and try to match isThing() or hasThing() in the Smoke runtime
  45. @@ -1482,7 +1482,7 @@
  46. VALUE retval = rb_funcall2(qt_internal_module, rb_intern("do_method_missing"), argc+3, temp_stack);
  47. if (_current_method == -1) {
  48. - char * op = rb_id2name(SYM2ID(argv[0]));
  49. + const char * op = rb_id2name(SYM2ID(argv[0]));
  50. if ( qstrcmp(op, "-") == 0
  51. || qstrcmp(op, "+") == 0
  52. || qstrcmp(op, "/") == 0
  53. @@ -1557,7 +1557,7 @@
  54. class_method_missing(int argc, VALUE * argv, VALUE klass)
  55. {
  56. VALUE result = Qnil;
  57. - char * methodName = rb_id2name(SYM2ID(argv[0]));
  58. + const char * methodName = rb_id2name(SYM2ID(argv[0]));
  59. VALUE * temp_stack = (VALUE *) calloc(argc+3, sizeof(VALUE));
  60. temp_stack[0] = rb_str_new2("Qt");
  61. temp_stack[1] = rb_str_new2(methodName);
  62. @@ -1772,7 +1772,7 @@
  63. VALUE
  64. getmetainfo(VALUE self, int &offset, int &index)
  65. {
  66. - char * signalname = rb_id2name(rb_frame_last_func());
  67. + const char * signalname = rb_id2name(rb_frame_last_func());
  68. VALUE metaObject_value = rb_funcall(qt_internal_module, rb_intern("getMetaObject"), 1, self);
  69. smokeruby_object *ometa = value_obj_info(metaObject_value);