--
-$Id: ChangeLog 29 2005-04-12 17:07:48Z tilman $
+$Id: ChangeLog 30 2005-04-12 18:38:31Z tilman $
++
2005-04-12 Tilman Sauerbeck (tilman at code-monkey de)
* ext/ext.c: Code cleanup
+ * ext/ext.c: Don't pass VALUEs to rb_raise()
2005-04-11 Tilman Sauerbeck (tilman at code-monkey de)
* ext/ext.c: Use StringValue() instead of
/*
- * $Id: ext.c 29 2005-04-12 17:07:48Z tilman $
+ * $Id: ext.c 30 2005-04-12 18:38:31Z tilman $
*
* Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
*
VALUE file = Qnil, mode = Qnil;
Eet_File **ef = NULL;
Eet_File_Mode m = EET_FILE_MODE_READ;
- const char *tmp;
+ const char *tmp, *cfile;
Data_Get_Struct (self, Eet_File *, ef);
rb_scan_args (argc, argv, "11", &file, &mode);
- StringValue (file);
+ cfile = StringValuePtr (file);
if (!NIL_P (mode)) {
StringValue (mode);
eet_init ();
- *ef = eet_open (StringValuePtr (file), m);
+ *ef = eet_open (cfile, m);
if (!*ef) {
switch (m) {
case EET_FILE_MODE_READ_WRITE:
break;
}
- rb_raise (rb_eRuntimeError, tmp, file);
+ rb_raise (rb_eRuntimeError, tmp, cfile);
}
return self;