PACKAGE_NAME Is already taken :-(.
return XPACKAGE (package)->symbols;
}
+INLINE Lisp_Object
+PACKAGE_NAMEX (Lisp_Object package)
+{
+ return XPACKAGE (package)->name;
+}
+
extern void init_pkg_once (void);
extern void init_pkg (void);
extern void syms_of_pkg (void);
if (EQ (found, Qunbound))
pkg_error ("Symbol '%s' is not accessible in package '%s'",
- SDATA (name), SDATA (XPACKAGE (package)->name));
+ SDATA (name), SDATA (PACKAGE_NAMEX (package)));
/* Check if the symbol is accesible in the package as external
symbol. PKG-FIXME: Check what to do for inherited symbols. */
if (external && EQ (status, QCinternal))
pkg_error ("Symbol '%s' is internal in package '%s'",
- SDATA (name), SDATA (XPACKAGE (package)->name));
+ SDATA (name), SDATA (PACKAGE_NAMEX (package)));
return found;
}
(Lisp_Object package)
{
CHECK_PACKAGE (package);
- return XPACKAGE (package)->name;
+ return PACKAGE_NAMEX (package);
}
DEFUN ("package-%set-name", Fpackage_percent_set_name, Spackage_percent_set_name,
break;
case PVEC_PACKAGE:
- if (STRINGP (XPACKAGE (obj)->name))
+ if (STRINGP (PACKAGE_NAMEX (obj)))
{
print_c_string ("#<package \"", printcharfun);
- print_string (XPACKAGE (obj)->name, printcharfun);
+ print_string (PACKAGE_NAMEX (obj), printcharfun);
print_c_string ("\">", printcharfun);
}
else
const bool accessible = !EQ (found, Qunbound);
if (!accessible || !EQ (found, symbol))
{
- print_symbol_name (XPACKAGE (package)->name,
- printcharfun, escape);
+ print_symbol_name (PACKAGE_NAMEX (package), printcharfun, escape);
const Lisp_Object found = pkg_find_symbol (name, package, &status);
eassert (!EQ (found, Qunbound));
if (EQ (status, QCexternal))