-
Notifications
You must be signed in to change notification settings - Fork 11
/
grovel.lisp
33 lines (33 loc) · 963 Bytes
/
grovel.lisp
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
(in-package #:pzmq)
(include "zmq.h")
(ctype size "size_t")
(cstruct %msg "zmq_msg_t")
(bitfield (events :base-type :short)
((:pollin "ZMQ_POLLIN"))
((:pollout "ZMQ_POLLOUT"))
((:pollerr "ZMQ_POLLERR")))
(cstruct pollitem "zmq_pollitem_t"
(socket "socket" :type :pointer)
(events "events" :type events)
(revents "revents" :type events))
(constantenum
c-errors
;;; awk -F '[*:]' '/\*E.+\*::/ {print $2}' doc/* | sort | uniq | awk '{print " ((:" tolower($1), "\"" $1 "\"))"}' | xclip
((:eaddrinuse "EADDRINUSE"))
((:eaddrnotavail "EADDRNOTAVAIL"))
((:eagain "EAGAIN"))
((:efault "EFAULT"))
((:efsm "EFSM"))
((:ehostunreach "EHOSTUNREACH"))
((:eintr "EINTR"))
((:einval "EINVAL"))
((:emfile "EMFILE"))
((:emthread "EMTHREAD"))
((:enocompatproto "ENOCOMPATPROTO"))
((:enodev "ENODEV"))
((:enoent "ENOENT"))
((:enomem "ENOMEM"))
((:enotsock "ENOTSOCK"))
((:enotsup "ENOTSUP"))
((:eprotonosupport "EPROTONOSUPPORT"))
((:eterm "ETERM")))