您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

18 行
468 B

  1. #library "ZMEMORY"
  2. #include "zcommon.acs"
  3. //Simple linked list implementation of malloc
  4. //Memory space
  5. global int 63:memory[];
  6. //NULL "pointer"
  7. #libdefine nullptr 0
  8. //Allocated size bytes in the memory space
  9. function int malloc (int size) {return 0;}
  10. //Frees an allocated block in the memory space.
  11. //There are no safeguards in this function to guess whether or not the free is
  12. // valid, so be careful.
  13. function int free (int p_ptr) {return 0;}