Introduction
Introduction Statistics Contact Development Disclaimer Help
macros.h - ledit - Text editor (WIP)
git clone git://lumidify.org/ledit.git (fast, but not encrypted)
git clone https://lumidify.org/ledit.git (encrypted, but very slow)
git clone git://4kcetb7mo7hj6grozzybxtotsub5bempzo4lirzc3437amof2c2impyd.onion/…
Log
Files
Refs
README
LICENSE
---
macros.h (573B)
---
1 #ifndef _MACROS_H_
2 #define _MACROS_H_
3
4 /* stolen from OpenBSD */
5 #define ledit_timespecsub(tsp, usp, vsp) …
6 do { \
7 (vsp)->tv_sec = (tsp)->tv_sec - (usp)->tv_sec; \
8 (vsp)->tv_nsec = (tsp)->tv_nsec - (usp)->tv_nsec; \
9 if ((vsp)->tv_nsec < 0) { \
10 (vsp)->tv_sec--; \
11 (vsp)->tv_nsec += 1000000000L; \
12 } \
13 } while (0)
14
15 #endif
You are viewing proxied material from lumidify.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.