|
|
@@ -105,8 +105,8 @@ int py_getattr(const py_Ref self, py_Name name, py_Ref out);
|
|
|
/// Sets the attribute of the object.
|
|
|
int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
|
|
|
|
|
-/// Copies src to dst.
|
|
|
-void py_copyref(const py_Ref src, py_Ref dst);
|
|
|
+/// Copies src's value to dst, equivalent to `*dst = *src`.
|
|
|
+void py_assign(const py_Ref src, py_Ref dst);
|
|
|
|
|
|
/************* Stack Operations *************/
|
|
|
py_Ref py_gettop();
|
|
|
@@ -123,7 +123,7 @@ void py_pop();
|
|
|
void py_shrink(int n);
|
|
|
|
|
|
/// Pushes the object to the stack.
|
|
|
-void py_pushref(const py_Ref src);
|
|
|
+void py_push(const py_Ref src);
|
|
|
|
|
|
/// Get a temporary variable from the stack and returns the reference to it.
|
|
|
py_Ref py_pushtmp();
|