mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tools, tests: Use "guestfs-internal-frontend.h" header.
Instead of redefining STREQ, etc.
This commit is contained in:
@@ -34,19 +34,7 @@
|
||||
#include <libintl.h>
|
||||
|
||||
#include <guestfs.h>
|
||||
|
||||
#define _(str) dgettext(PACKAGE, (str))
|
||||
//#define N_(str) dgettext(PACKAGE, (str))
|
||||
|
||||
#define STREQ(a,b) (strcmp((a),(b)) == 0)
|
||||
//#define STRCASEEQ(a,b) (strcasecmp((a),(b)) == 0)
|
||||
//#define STRNEQ(a,b) (strcmp((a),(b)) != 0)
|
||||
//#define STRCASENEQ(a,b) (strcasecmp((a),(b)) != 0)
|
||||
//#define STREQLEN(a,b,n) (strncmp((a),(b),(n)) == 0)
|
||||
//#define STRCASEEQLEN(a,b,n) (strncasecmp((a),(b),(n)) == 0)
|
||||
//#define STRNEQLEN(a,b,n) (strncmp((a),(b),(n)) != 0)
|
||||
//#define STRCASENEQLEN(a,b,n) (strncasecmp((a),(b),(n)) != 0)
|
||||
#define STRPREFIX(a,b) (strncmp((a),(b),strlen((b))) == 0)
|
||||
#include "guestfs-internal-frontend.h"
|
||||
|
||||
#ifndef P_tmpdir
|
||||
#define P_tmpdir "/tmp"
|
||||
|
||||
Reference in New Issue
Block a user