mu: cosmetic
This commit is contained in:
@ -26,7 +26,7 @@ AM_CPPFLAGS=$(XAPIAN_CXXFLAGS) $(GMIME_CFLAGS) $(GLIB_CFLAGS) $(GUILE_CFLAGS)
|
|||||||
# use -Wno-unused-parameters, because some callbacks may not
|
# use -Wno-unused-parameters, because some callbacks may not
|
||||||
# really need all the params they get
|
# really need all the params they get
|
||||||
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter \
|
AM_CFLAGS=-Wall -Wextra -Wno-unused-parameter \
|
||||||
-Wdeclaration-after-statement -pedantic -Wno-variadic-macros
|
-Wdeclaration-after-statement -Wno-variadic-macros
|
||||||
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
|
AM_CXXFLAGS=-Wall -Wextra -Wno-unused-parameter
|
||||||
|
|
||||||
noinst_LTLIBRARIES= \
|
noinst_LTLIBRARIES= \
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
/* -*-mode: c; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
** Copyright (C) 2008-2013 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
** Copyright (C) 2008-2016 Dirk-Jan C. Binnema <djcb@djcbsoftware.nl>
|
||||||
**
|
**
|
||||||
** This program is free software; you can redistribute it and/or modify
|
** This program is free software; you can redistribute it and/or modify
|
||||||
** it under the terms of the GNU General Public License as published by
|
** it under the terms of the GNU General Public License as published by
|
||||||
|
|||||||
@ -70,7 +70,7 @@ char* mu_util_guess_maildir (void)
|
|||||||
* when no longer needed.
|
* when no longer needed.
|
||||||
*/
|
*/
|
||||||
gchar* mu_util_guess_mu_homedir (void)
|
gchar* mu_util_guess_mu_homedir (void)
|
||||||
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* if path exists, check that's a read/writeable dir; otherwise try to
|
* if path exists, check that's a read/writeable dir; otherwise try to
|
||||||
@ -254,7 +254,7 @@ GQuark mu_util_error_quark (void) G_GNUC_CONST;
|
|||||||
* @return a newly allocated string
|
* @return a newly allocated string
|
||||||
*/
|
*/
|
||||||
gchar* mu_util_str_from_strv (const gchar **params)
|
gchar* mu_util_str_from_strv (const gchar **params)
|
||||||
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
G_GNUC_MALLOC G_GNUC_WARN_UNUSED_RESULT;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* for OSs with out support for direntry->d_type, like Solaris
|
* for OSs with out support for direntry->d_type, like Solaris
|
||||||
@ -262,30 +262,30 @@ gchar* mu_util_str_from_strv (const gchar **params)
|
|||||||
#ifndef DT_UNKNOWN
|
#ifndef DT_UNKNOWN
|
||||||
enum {
|
enum {
|
||||||
DT_UNKNOWN = 0,
|
DT_UNKNOWN = 0,
|
||||||
# define DT_UNKNOWN DT_UNKNOWN
|
#define DT_UNKNOWN DT_UNKNOWN
|
||||||
DT_FIFO = 1,
|
DT_FIFO = 1,
|
||||||
# define DT_FIFO DT_FIFO
|
#define DT_FIFO DT_FIFO
|
||||||
DT_CHR = 2,
|
DT_CHR = 2,
|
||||||
# define DT_CHR DT_CHR
|
#define DT_CHR DT_CHR
|
||||||
DT_DIR = 4,
|
DT_DIR = 4,
|
||||||
# define DT_DIR DT_DIR
|
#define DT_DIR DT_DIR
|
||||||
DT_BLK = 6,
|
DT_BLK = 6,
|
||||||
# define DT_BLK DT_BLK
|
#define DT_BLK DT_BLK
|
||||||
DT_REG = 8,
|
DT_REG = 8,
|
||||||
# define DT_REG DT_REG
|
#define DT_REG DT_REG
|
||||||
DT_LNK = 10,
|
DT_LNK = 10,
|
||||||
# define DT_LNK DT_LNK
|
#define DT_LNK DT_LNK
|
||||||
DT_SOCK = 12,
|
DT_SOCK = 12,
|
||||||
# define DT_SOCK DT_SOCK
|
#define DT_SOCK DT_SOCK
|
||||||
DT_WHT = 14
|
DT_WHT = 14
|
||||||
# define DT_WHT DT_WHT
|
#define DT_WHT DT_WHT
|
||||||
};
|
};
|
||||||
#endif /*DT_UNKNOWN*/
|
#endif /*DT_UNKNOWN*/
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* get the d_type (as in direntry->d_type) for the file at path, using
|
* get the d_type (as in direntry->d_type) for the file at path, using
|
||||||
* lstat(3)
|
* lstat(3)
|
||||||
*
|
*
|
||||||
* @param path full path
|
* @param path full path
|
||||||
*
|
*
|
||||||
@ -429,6 +429,9 @@ enum _MuError {
|
|||||||
MU_ERROR_INTERNAL = 3,
|
MU_ERROR_INTERNAL = 3,
|
||||||
MU_ERROR_NO_MATCHES = 4,
|
MU_ERROR_NO_MATCHES = 4,
|
||||||
|
|
||||||
|
/* not really an error; for callbacks */
|
||||||
|
MU_IGNORE = 5,
|
||||||
|
|
||||||
MU_ERROR_SCRIPT_NOT_FOUND = 8,
|
MU_ERROR_SCRIPT_NOT_FOUND = 8,
|
||||||
|
|
||||||
/* general xapian related error */
|
/* general xapian related error */
|
||||||
|
|||||||
Reference in New Issue
Block a user