_info 807 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #include "config.h"
  2. #include <stdio.h>
  3. #include <string.h>
  4. /**
  5. * lpq - Simple, slow priority queue implementation
  6. *
  7. * This code implements a priority queue. This is a trivial linked
  8. * list implementation, which is simple and generally slow.
  9. *
  10. * init: O(1)
  11. * enqueue: O(1)
  12. * front: O(n)
  13. * dequeue: O(n)
  14. * reorder: O(1)
  15. *
  16. * Author: David Gibson <david@gibson.dropbear.id.au>
  17. * License: LGPL (v2.1 or any later version)
  18. */
  19. int main(int argc, char *argv[])
  20. {
  21. /* Expect exactly one argument */
  22. if (argc != 2)
  23. return 1;
  24. if (strcmp(argv[1], "depends") == 0) {
  25. printf("ccan/tcon\n");
  26. printf("ccan/order\n");
  27. printf("ccan/cast\n");
  28. return 0;
  29. }
  30. if (strcmp(argv[1], "testdepends") == 0) {
  31. printf("ccan/permutation\n");
  32. printf("ccan/array_size\n");
  33. return 0;
  34. }
  35. return 1;
  36. }