multiqueue.c 477 B

1234567891011121314151617181920
  1. // This is an open source non-commercial project. Dear PVS-Studio, please check
  2. // it. PVS-Studio Static Code Analyzer for C, C++ and C#: http://www.viva64.com
  3. #include <string.h>
  4. #include <stdlib.h>
  5. #include "nvim/event/multiqueue.h"
  6. #include "multiqueue.h"
  7. void ut_multiqueue_put(MultiQueue *this, const char *str)
  8. {
  9. multiqueue_put(this, NULL, 1, str);
  10. }
  11. const char *ut_multiqueue_get(MultiQueue *this)
  12. {
  13. Event event = multiqueue_get(this);
  14. return event.argv[0];
  15. }