Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Removed ruby hash.

  • Loading branch information...
commit f51f376b8b0d5b09508db69580e92e8da6591184 1 parent 9ff62ea
@timonk timonk authored
Showing with 0 additions and 22 deletions.
  1. +0 −22 src/ruby_hash.c
View
22 src/ruby_hash.c
@@ -1,22 +0,0 @@
-#include <ruby.h>
-#define SETUP \
- ruby_init(); \
- VALUE hash = rb_hash_new(); \
- VALUE rb_int_value = INT2NUM(0);
-#define INSERT_INT_INTO_HASH(key, value) do { \
- VALUE rb_int_key = INT2NUM(key); /* leak */ \
- rb_hash_aset(hash, rb_int_key, rb_int_value); \
- } while(0)
-#define DELETE_INT_FROM_HASH(key) do { \
- VALUE rb_int_key = INT2NUM(key); /* leak */ \
- rb_hash_delete(hash, rb_int_key); \
- } while(0)
-#define INSERT_STR_INTO_HASH(key, value) do { \
- VALUE rb_str_key = rb_str_new2(key); /* leak */ \
- rb_hash_aset(hash, rb_str_key, rb_int_value); \
- } while(0)
-#define DELETE_STR_FROM_HASH(key) do { \
- VALUE rb_str_key = rb_str_new2(key); /* leak */ \
- rb_hash_delete(hash, rb_str_key); \
- } while(0)
-#include "template.c"
Please sign in to comment.
Something went wrong with that request. Please try again.