Você não pode selecionar mais de 25 tópicos Os tópicos devem começar com uma letra ou um número, podem incluir traços ('-') e podem ter até 35 caracteres.

18 linhas
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;}