We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add homebrew formula now
brew install cxwx/cxbrew/libhv
but it need the test part for merge to homebrew-core like
test
test do (testpath/"test.c").write <<~C /* Wait for stdin to become readable, then read and echo the first line. */ #include <stdio.h> #include <stdlib.h> #include <unistd.h> #include <ev.h> ev_io stdin_watcher; static void stdin_cb (EV_P_ ev_io *watcher, int revents) { char *buf; size_t nbytes = 255; buf = (char *)malloc(nbytes + 1); getline(&buf, &nbytes, stdin); printf("%s", buf); ev_io_stop(EV_A_ watcher); ev_break(EV_A_ EVBREAK_ALL); } int main() { ev_io_init(&stdin_watcher, stdin_cb, STDIN_FILENO, EV_READ); ev_io_start(EV_DEFAULT, &stdin_watcher); ev_run(EV_DEFAULT, 0); return 0; } C system ENV.cc, "test.c", "-I#{include}", "-L#{lib}", "-lev", "-o", "test" input = "hello, world\n" assert_equal input, pipe_output("./test", input, 0) end end
can somebody help?
The text was updated successfully, but these errors were encountered:
No branches or pull requests
add homebrew formula now
but it need the
test
part for merge to homebrew-corelike
can somebody help?
The text was updated successfully, but these errors were encountered: