NetworkManager/shared
Thomas Haller dec3a7e58d shared: add nm_streq() and nm_streq0() macro
Using strcmp() to test for string equality is a well known pattern.
However the inverse logic still is still hard to grasp especially in
more complex expressions.

nm_streq() should is an alternative to use strcmp(). And there is a counterpart
nm_streq0() which is based on g_strcmp0().

Kernel and systemd have also similar streq() macros.

https://mail.gnome.org/archives/networkmanager-list/2016-February/msg00047.html
2016-02-15 23:47:14 +01:00
..
gsystem-local-alloc.h build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
Makefile.am build: add "shared" files to EXTRA_DIST 2016-01-27 11:51:17 +01:00
nm-dbus-compat.h build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00
nm-default.h build: cleanup default includes 2016-02-12 15:36:01 +01:00
nm-glib.h build: define g_assert_cmpmem() for glib < 2.46 2016-02-11 12:40:18 -06:00
nm-macros-internal.h shared: add nm_streq() and nm_streq0() macro 2016-02-15 23:47:14 +01:00
nm-test-libnm-utils.h libnm/tests: add test code driving python test service 2015-12-26 16:43:49 +01:00
nm-test-utils-impl.c libnm/tests: add test code driving python test service 2015-12-26 16:43:49 +01:00
nm-test-utils.h nmtst: drop deprecated test helper macro ASSERT() 2016-02-15 14:27:45 +01:00
nm-version-macros.h.in build: rename directory "include" to "shared" 2015-12-24 11:42:37 +01:00