main.c 981 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <stdio.h>
  2. #include <stdint.h>
  3. #include <stdlib.h>
  4. #include "./RyanJson/RyanJson.h"
  5. #include "./valloc/valloc.h"
  6. void printfTitle(char *title)
  7. {
  8. printf("\r\n");
  9. printf("\r\n");
  10. printf("*****************************************************************************\r\n");
  11. printf("*************************** %s **************************\r\n", title);
  12. printf("*****************************************************************************\r\n");
  13. }
  14. extern int RyanJsonExample();
  15. extern int RyanJsonTest();
  16. extern int RyanJsonMemoryFootprintTest();
  17. extern int RFC8259JsonTest();
  18. int main(void)
  19. {
  20. printfTitle("RyanJson 示例程序");
  21. RyanJsonExample();
  22. printfTitle("RyanJson 接口测试程序");
  23. RyanJsonTest();
  24. printfTitle("RyanJson / cJSON / yyjson 内存对比程序");
  25. RyanJsonMemoryFootprintTest();
  26. printfTitle("RyanJson / cJSON / yyjson RFC8259标准测试");
  27. RFC8259JsonTest();
  28. displayMem();
  29. return 0;
  30. }