mirror of
https://github.com/pocketpy/pocketpy
synced 2025-10-20 03:20:18 +00:00
some rename
This commit is contained in:
parent
6956631c61
commit
57563d4e40
@ -105,8 +105,8 @@ int py_getattr(const py_Ref self, py_Name name, py_Ref out);
|
|||||||
/// Sets the attribute of the object.
|
/// Sets the attribute of the object.
|
||||||
int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
int py_setattr(py_Ref self, py_Name name, const py_Ref val);
|
||||||
|
|
||||||
/// Copies src to dst.
|
/// Copies src's value to dst, equivalent to `*dst = *src`.
|
||||||
void py_copyref(const py_Ref src, py_Ref dst);
|
void py_assign(const py_Ref src, py_Ref dst);
|
||||||
|
|
||||||
/************* Stack Operations *************/
|
/************* Stack Operations *************/
|
||||||
py_Ref py_gettop();
|
py_Ref py_gettop();
|
||||||
@ -123,7 +123,7 @@ void py_pop();
|
|||||||
void py_shrink(int n);
|
void py_shrink(int n);
|
||||||
|
|
||||||
/// Pushes the object to the stack.
|
/// 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.
|
/// Get a temporary variable from the stack and returns the reference to it.
|
||||||
py_Ref py_pushtmp();
|
py_Ref py_pushtmp();
|
||||||
|
@ -27,7 +27,7 @@ void py_setslot(py_Ref self, int i, const py_Ref val){
|
|||||||
PyObject__slots(self->_obj)[i] = *val;
|
PyObject__slots(self->_obj)[i] = *val;
|
||||||
}
|
}
|
||||||
|
|
||||||
void py_copyref(const py_Ref src, py_Ref dst){
|
void py_assign(const py_Ref src, py_Ref dst){
|
||||||
*dst = *src;
|
*dst = *src;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -75,7 +75,7 @@ void py_shrink(int n){
|
|||||||
vm->stack.sp -= n;
|
vm->stack.sp -= n;
|
||||||
}
|
}
|
||||||
|
|
||||||
void py_pushref(const py_Ref src){
|
void py_push(const py_Ref src){
|
||||||
pk_VM* vm = pk_current_vm;
|
pk_VM* vm = pk_current_vm;
|
||||||
*vm->stack.sp++ = *src;
|
*vm->stack.sp++ = *src;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user