aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-02-03libabc: Make things hold a reference to their contextHEADmasterJosh Triplett1-1/+2
The sample libabc includes functions to get a "thing", as a sample sub-object of the overall library context. Each "thing" has a reference to the parent library context, and a function to return that reference. Given that, abc_thing_new_from_string should call abc_ref, and abc_thing_unref should call abc_unref when freeing a thing.
2015-01-08autogen: restore executable bitKay Sievers1-0/+0
2015-01-08README: fix typoAskar Safin2-1/+1
2014-12-25autogen: restore executable bitKay Sievers1-0/+0
2014-12-25Remove FSF mailing addressJosh Triplett4-16/+0
It has changed in the past, and these days, anyone can get a copy of the LGPL via the web rather than by post.
2014-12-25m4/.gitignore: Remove stray blank line.Josh Triplett1-1/+0
2014-12-25autogen.sh: set -e separately, rather than putting -e in the shebang lineJosh Triplett1-1/+3
Otherwise, if someone uses "sh autogen.sh", the -e will get ignored.
2014-12-25Makefile.am: Don't define LIBEXECDIRJosh Triplett1-1/+0
As README points out, the library should not execute out-of-process tools. Thus, it should never need to know LIBEXECDIR.
2014-12-25Makefile.am: Don't add abc subdirectory to include pathJosh Triplett1-1/+0
Source files, including those in the library itself, should include <abc/example.h>, not <example.h>.
2014-08-11remove redundant redeclarationsSami Kerola1-3/+0
All three functions gave similar warning, here is a sample who the message text looked. src/libabc.c:236:24: warning: redundant redeclaration of 'abc_list_entry_get_next' [-Wredundant-decls] struct abc_list_entry *abc_list_entry_get_next(struct abc_list_entry *list_entry); ^ In file included from src/libabc.c:30:0: ./src/abc/libabc.h:55:24: note: previous declaration of 'abc_list_entry_get_next' was here struct abc_list_entry *abc_list_entry_get_next(struct abc_list_entry *list_entry);
2014-02-03update mailing list addressKay Sievers1-2/+2
2014-02-03README: typo fixesThomas Hindoe Paaboel Andersen1-6/+6
2014-01-06prefer vertical lists rather than horizontalSami Kerola1-9/+33
Vertical lists, e.g., one string per line, can be version controlled individually. This commit also removes -Wpointer-arith duplicate from my_CFLAGS variable.
2013-11-28always return NULL in _unref() APIsKay Sievers1-4/+3
Returning anything else but NULL would suggest the caller's reference might still be valid, but it isn't, because the caller just invoked _unref() after all. This turns the return value into a typesafe shortcut that allows unreffing and resetting a reference in one line. In contrast to solutions for this which take a pointer to a pointer to accomplish the same this solution is just syntactic sugar the developer can make use of but doesn't have to, and this is particularly useful when immediately unreffing objects returned by function calls.
2013-03-11Fix gold linker warningCristian Rodríguez1-2/+0
There must be only one wildcard local in the linker script, otherwise gold warns: warning: wildcard match appears in both version 'LIBABC_1' and 'LIBABC_3' in script
2013-03-05fix HAVE___SECURE_GETENV checkTanu Kaskinen1-1/+1
2013-02-27improve the recommendations on byteswapping callsCristian Rodríguez1-2/+4
It is very frequent to find userspace code including <asm/byteorder.h> and/or using/redefining cpu_to_*, *_to_cpu, swabxx from the linux kernel headers. Add a note asking people to stick to the glibc API.
2013-02-27libraries should use secure_getenv if possibleCristian Rodríguez3-1/+11
2012-01-10replace tabs with spacesKay Sievers9-920/+581
2012-01-09autogen.sh: add CFLAGS and print entire line, so that mouse copy/paste worksKay Sievers1-1/+1
2012-01-06rename project to 'abc', move to 'src/' dir, rename include to '<abc/*>'Kay Sievers11-35/+31
2012-01-05autogen.sh: enable git pre-commitKay Sievers1-0/+6
2012-01-02Remove end-of-line markings from licence headersPhilipp Wagner4-5/+5
2011-12-23autogen.sh: print common ./configure optionsKay Sievers1-1/+7
2011-12-23build: check for sed and mkdir -pLucas De Marchi1-0/+3
2011-12-21version 4Kay Sievers2-1/+7
2011-12-21move test program to libabc subdirKay Sievers2-4/+4
2011-12-21move header back to source directoryKay Sievers2-2/+2
2011-12-21add mkdirKay Sievers1-1/+1
2011-12-21do not (mis-)use the config file generator for non-autobuild stuffKay Sievers2-1/+14
"Similarly, you should not rely on AC_CONFIG_FILES to replace bindir and friends in your shell scripts and other files; instead, let make manage their replacement." http://www.gnu.org/software/autoconf/manual/autoconf.html#Makefile-Substitutions
2011-12-21src: use a separate include directoryJan Engelhardt5-6/+5
Reduces name clash potential, and is clearer once one's project starts to accumulate more header files.
2011-12-21build: use dist-xzJan Engelhardt2-3/+2
It's 2011 already.
2011-12-21gitignore: only ignore build system files in the top directoryJan Engelhardt1-11/+10
2011-12-21build: define project CFLAGS inside main autotools configsJan Engelhardt3-9/+10
Good projects should always use these flag combinations -- not just when autogen.sh is called, but also when ./configure is run.
2011-12-20symbol file: include older symbols in newer versionsLucas De Marchi1-12/+12
2011-11-22do not ship autogen.sh in the tarballKay Sievers1-3/+2
2011-11-21build: add version map file to build dependenciesJan Engelhardt1-0/+1
When the version map changes, we want to have a re-link occur, of course.
2011-11-21autogen: use "$@" and exec last programJan Engelhardt1-1/+1
2011-11-16update READMEKay Sievers1-5/+5
2011-11-16update README with public domain statementKay Sievers1-98/+129
2011-11-16update READMEKay Sievers1-5/+10
2011-11-10misc fixesCristian Rodríguez1-1/+2
- Tell the compiler to go in C99 mode - Prefer PIC code only Signed-off-by: Cristian Rodríguez <crrodriguez@opensuse.org>
2011-11-08print log_fn address instead of ctx when setting logging functionJiri Pirko1-1/+1
Signed-off-by: Jiri Pirko <jpirko@redhat.com>
2011-11-03misc fixesDiego Elio Pettenò5-13/+13
- Remove SUBDIRS variable on top-level Makefile.am; using SUBDIRS=. is only meaningful to ask automake an explicit ordering of the sub-directory processing. - Add $(AM_LDFLAGS) to the library's LDFLAGS; this is important because one of the most common mistake is forgetting that the variable is an override. - check_PROGRAMS only build the programs, but doesn't run them; TESTS run the command; this way it is possible to execute a script, but build a binary that the script uses. - Pass CFLAGS in ./configure command line when using ./autogen.sh. - Use M4sh syntax instead of sh syntax for conditionals (AS_IF rather than if); when you don't use M4sh, AC_REQUIRE does not behave correctly, leading to a common mistake when using PKG_CHECK_MODULES. - Add [default=(enabled|disabled)] comments in options description; this makes them behave a lot more like autoconf's own descriptions. - Correct a warning in libabc.c (return with no value in function returning non-void). - Fix path mistakes in pkg-config data file. Signed-off-by: Diego Elio Pettenò <flameeyes@flameeyes.eu>
2011-11-02README: Fix typosJosh Triplett1-16/+16
2011-11-02README: Fix license exampleJosh Triplett1-2/+2
LGPL2-only (and LGPL2.1-only) works with GPL3, because of clause 3 of the LGPL, which says "If a newer version than version 2 of the ordinary GNU General Public License has appeared, then you can specify that version instead if you wish.". The case that doesn't work: GPL2-only with LGPL3 or later, because the LGPL3 only allows conversion to the GPL3, not the GPL2.
2011-11-02configure.ac: Replace hard-coded libabc in summary with $PACKAGEJosh Triplett1-1/+1
This reduces the number of edits needed when using this project as a template.
2011-11-02Replace deprecated AC_DISABLE_STATIC with the disable-static option to LT_INITJosh Triplett1-2/+1
2011-11-02.gitignore: Ignore the tarballs created by "make distcheck"Josh Triplett1-0/+2
2011-11-02.gitignore: SortJosh Triplett1-1/+1
2011-10-25initial releaseKay Sievers16-0/+1738