Lines Matching defs:package
1 // unsafe.cc -- Go frontend builtin unsafe package.
13 // Set up the builtin unsafe package. This should probably be driven
23 Package* package = this->add_imported_package("unsafe", local_name,
28 if (package == NULL)
34 package->set_location(location);
35 package->set_is_imported();
37 this->imports_.insert(std::make_pair("unsafe", package));
39 Bindings* bindings = package->bindings();
42 Named_object* no = package->bindings()->lookup("Pointer");
46 no = bindings->add_type("Pointer", package, type,
51 go_assert(no->package() == package);
67 no = bindings->add_function_declaration("Sizeof", package, fntype, bloc);
77 no = bindings->add_function_declaration("Offsetof", package, fntype, bloc);
87 no = bindings->add_function_declaration("Alignof", package, fntype, bloc);