Sha256: 620b90a6f5c260713d0b79acf33d4c85cecaf1c76efa9cb84f4d8d38aa14fa0b

Contents?: true

Size: 648 Bytes

Versions: 31

Compression:

Stored size: 648 Bytes

Contents

//-*-c++-*-

T!class_ptrmap! !class_ptrmap!;

static void !class_varname!_free(void *p) {
	!class_map_free_function!(p);
  delete (!c_class_name!*)p;
}

static void !class_varname!_free_map_entry(void *p) {
#ifdef DEBUG      
  fprintf(stderr, "rust: Freeing %p (!class_varname!) \\n", p);
#endif

  T!class_ptrmap!::iterator it, eend = !class_ptrmap!.end();
  for(it = !class_ptrmap!.begin(); it != eend; it++)
     if ( (*it).second == (!c_class_name!*)p ) {
        !class_ptrmap!.erase(it); break;
     }
}

static void !class_varname!_mark(void *p) {
#ifdef DEBUG      
  fprintf(stderr, "rust: Marking %p (!class_varname!) \\n", p);
#endif
}

Version data entries

31 entries across 31 versions & 2 rubygems

Version Path
gecoder-with-gecode-1.1.1.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-1.1.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-1.1.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-1.1.0 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-1.1.0 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-0.8.3-mswin32 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-0.8.2-mswin32 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-0.8.1-mswin32 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-0.8.0-mswin32 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-with-gecode-0.7.1-mswin32 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.8.0 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.8.3 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.8.2 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.8.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.7.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.7.0 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.6.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.9.0 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-0.9.1 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl
gecoder-1.0.0 vendor/rust/rust/templates/CxxStandaloneClassDefinitions.rusttpl