mirror of
https://github.com/troglobit/libuev.git
synced 2026-10-23 11:24:34 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5c7a6f1163 | ||
|
|
618480140c | ||
|
|
55f92d25ba | ||
|
|
82d0b0dcb8 | ||
|
|
b0aec77056 |
No files matched your search
+22
@@ -0,0 +1,22 @@
|
|||||||
|
# Travis CI integration -- https://travis-ci.org/troglobit/libuev
|
||||||
|
language: c
|
||||||
|
compiler:
|
||||||
|
- gcc
|
||||||
|
- clang
|
||||||
|
|
||||||
|
env:
|
||||||
|
global:
|
||||||
|
# The next declaration is the encrypted COVERITY_SCAN_TOKEN, created
|
||||||
|
# via the "travis encrypt" command using the project repo's public key
|
||||||
|
- secure: "ikQcWMCLFoxq0+wMiqrNT5HRn0d4e3AxuF8VzNUNFrk6jUvHIufC/OKvr8VWPTjCaAQXZjWfdQAAARUXzJV10WZ7xpiv5qt4bt26Qih2AwMPMJeUOYrqXgQqhTPBp05iLYpo4ybICteXRI3zKKUA1wkdDC0jyu3rl+Fbveekbe0="
|
||||||
|
|
||||||
|
addons:
|
||||||
|
coverity_scan:
|
||||||
|
project:
|
||||||
|
name: "troglobit/libuev"
|
||||||
|
description: "libuEv | Simple asynchronous event loop for Linux."
|
||||||
|
notification_email: troglobit@gmail.com
|
||||||
|
build_command: "make"
|
||||||
|
branch_pattern: master
|
||||||
|
|
||||||
|
script: make
|
||||||
@@ -1,24 +1,20 @@
|
|||||||
Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
|
|
||||||
Permission is hereby granted, free of charge, to any person obtaining
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||||
a copy of this software and associated documentation files (the
|
of this software and associated documentation files (the "Software"), to deal
|
||||||
"Software"), to deal in the Software without restriction, including
|
in the Software without restriction, including without limitation the rights
|
||||||
without limitation the rights to use, copy, modify, merge, publish,
|
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||||
distribute, sublicense, and/or sell copies of the Software, and to
|
copies of the Software, and to permit persons to whom the Software is
|
||||||
permit persons to whom the Software is furnished to do so, subject to
|
furnished to do so, subject to the following conditions:
|
||||||
the following conditions:
|
|
||||||
|
|
||||||
The above copyright notice and this permission notice shall be
|
The above copyright notice and this permission notice shall be included in
|
||||||
included in all copies or substantial portions of the Software.
|
all copies or substantial portions of the Software.
|
||||||
|
|
||||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||||
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||||
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||||
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||||
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
THE SOFTWARE.
|
||||||
|
|
||||||
For an explanation and background of the MIT license, see the Wikipedia
|
|
||||||
article https://en.wikipedia.org/wiki/MIT_License
|
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
# -*-Makefile-*- for libuEv
|
# -*-Makefile-*- for libuEv
|
||||||
#
|
#
|
||||||
# Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
# Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
# Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
# Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
#
|
#
|
||||||
# Permission is hereby granted, free of charge, to any person obtaining
|
# Permission is hereby granted, free of charge, to any person obtaining
|
||||||
# a copy of this software and associated documentation files (the
|
# a copy of this software and associated documentation files (the
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
.PHONY: all test clean
|
.PHONY: all test clean
|
||||||
|
|
||||||
#VERSION = $(shell git tag -l | tail -1)
|
#VERSION = $(shell git tag -l | tail -1)
|
||||||
VERSION ?= 1.0.2
|
VERSION ?= 1.0.3
|
||||||
NAME = libuev
|
NAME = libuev
|
||||||
PKG = $(NAME)-$(VERSION)
|
PKG = $(NAME)-$(VERSION)
|
||||||
ARCHIVE = $(PKG).tar.xz
|
ARCHIVE = $(PKG).tar.xz
|
||||||
@@ -33,13 +33,9 @@ ARCHIVE = $(PKG).tar.xz
|
|||||||
CC ?= $(CROSS)gcc
|
CC ?= $(CROSS)gcc
|
||||||
AR ?= $(CROSS)ar
|
AR ?= $(CROSS)ar
|
||||||
STRIP ?= $(CROSS)strip
|
STRIP ?= $(CROSS)strip
|
||||||
CHECK ?= sparse
|
|
||||||
CFLAGS += -fPIC -Os
|
CFLAGS += -fPIC -Os
|
||||||
CPPFLAGS += -W -Wall -Werror
|
CPPFLAGS += -W -Wall -Werror
|
||||||
ARFLAGS = crus
|
ARFLAGS = crus
|
||||||
CHECK_FLAGS = -Wcast-to-as -Wdefault-bitfield-sign -Wdo-while -Wparen-string \
|
|
||||||
-Wptr-subtraction-blows -Wreturn-void -Wshadow -Wtypesign -Wbitwise \
|
|
||||||
-std=gnu99 -D__x86_64__ -D__LP64__ -I/usr/include/x86_64-linux-gnu
|
|
||||||
JUNK = *~ *.bak *.map .*.d DEADJOE *.gdb *.elf core core.*
|
JUNK = *~ *.bak *.map .*.d DEADJOE *.gdb *.elf core core.*
|
||||||
|
|
||||||
LIBNAME = $(NAME)
|
LIBNAME = $(NAME)
|
||||||
@@ -115,11 +111,12 @@ joystick: Makefile joystick.o $(STATICLIB)
|
|||||||
@printf " JOTST %s\n" $(STATICLIB)
|
@printf " JOTST %s\n" $(STATICLIB)
|
||||||
@$(CC) $(CPPFLAGS) -g -o joystick joystick.c $(STATICLIB) && ./joystick
|
@$(CC) $(CPPFLAGS) -g -o joystick joystick.c $(STATICLIB) && ./joystick
|
||||||
|
|
||||||
check:
|
# Runs Clang scan-build on the whole tree
|
||||||
@$(CHECK) $(CHECK_FLAGS) $(CPPFLAGS) $(SRCS) bench.c
|
check: clean
|
||||||
|
@scan-build $(MAKE) all
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
-@$(RM) $(TARGET) *.o test
|
-@$(RM) $(TARGET) *.o test joystick bench
|
||||||
|
|
||||||
distclean: clean
|
distclean: clean
|
||||||
-@$(RM) $(DEPS) $(JUNK)
|
-@$(RM) $(DEPS) $(JUNK)
|
||||||
|
|||||||
@@ -1,5 +1,7 @@
|
|||||||
libuEv | Simple event loop for Linux
|
libuEv | Simple event loop for Linux
|
||||||
====================================
|
====================================
|
||||||
|
[](https://travis-ci.org/troglobit/libuev)
|
||||||
|
[](https://scan.coverity.com/projects/3846)
|
||||||
|
|
||||||
> “Why an event loop, why not use threads?”
|
> “Why an event loop, why not use threads?”
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
/* Simple example of how to use libuEv with Linux joystick API
|
/* Simple example of how to use libuEv with Linux joystick API
|
||||||
*
|
*
|
||||||
* Copyright (c) 2014 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2014-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* Test libuEv event library
|
/* Test libuEv event library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
/* libuEv - Micro event loop library
|
/* libuEv - Micro event loop library
|
||||||
*
|
*
|
||||||
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
* Copyright (c) 2012 Flemming Madsen <flemming!madsen()madsensoft!dk>
|
||||||
* Copyright (c) 2013 Joachim Nilsson <troglobit()gmail!com>
|
* Copyright (c) 2013-2015 Joachim Nilsson <troglobit()gmail!com>
|
||||||
*
|
*
|
||||||
* Permission is hereby granted, free of charge, to any person obtaining
|
* Permission is hereby granted, free of charge, to any person obtaining
|
||||||
* a copy of this software and associated documentation files (the
|
* a copy of this software and associated documentation files (the
|
||||||
|
|||||||
Reference in new issue
Block a user