[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/xeft 1c1b449d21 25/55: Add semicolon after macro
From: |
ELPA Syncer |
Subject: |
[elpa] externals/xeft 1c1b449d21 25/55: Add semicolon after macro |
Date: |
Fri, 13 Jan 2023 23:58:37 -0500 (EST) |
branch: externals/xeft
commit 1c1b449d21854b64a14f74457c5be720bf6fa5ff
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>
Add semicolon after macro
* xeft-module.cc (CHECK_EXIT): Add semicolon.
(Fxeft_reindex_file): Add semicolon.
(Fxeft_query_term): Add semicolon.
---
xeft-module.cc | 16 +++++++---------
1 file changed, 7 insertions(+), 9 deletions(-)
diff --git a/xeft-module.cc b/xeft-module.cc
index 80be2a47d4..92a5442a87 100644
--- a/xeft-module.cc
+++ b/xeft-module.cc
@@ -33,7 +33,7 @@ int plugin_is_GPL_compatible;
#define CHECK_EXIT(env) \
if (env->non_local_exit_check (env) \
!= emacs_funcall_exit_return) \
- return NULL;
+ { return NULL; }
/* A few notes: The database we use, WritableDatabase, will not throw
DatabaseModifiedError, so we don’t need to handle that. For query,
@@ -210,8 +210,7 @@ query_term
/*** Module definition */
-/**** Copied from Philipp’s documents */
-
+/* Copied from Philipp’s documents */
static bool
copy_string_contents
(emacs_env *env, emacs_value value, char **buffer, size_t *size)
@@ -241,6 +240,7 @@ copy_string_contents
return true;
}
+/* Copied from Philipp’s documents */
static void
provide (emacs_env *env, const char *feature)
{
@@ -251,8 +251,6 @@ provide (emacs_env *env, const char *feature)
env->funcall (env, Qprovide, 1, args);
}
-/**** Convenient functions */
-
static emacs_value
intern (emacs_env *env, const char *name)
{
@@ -386,10 +384,10 @@ Fxeft_reindex_file
string path = copy_string (env, lisp_path);
string dbpath = copy_string (env, lisp_dbpath);
bool force = !NILP (env, lisp_force);
- CHECK_EXIT (env)
+ CHECK_EXIT (env);
string lang = NILP (env, lisp_lang) ?
"en" : copy_string (env, lisp_lang);
- CHECK_EXIT (env)
+ CHECK_EXIT (env);
// Do the work.
bool indexed;
@@ -467,7 +465,7 @@ Fxeft_query_term
string dbpath = copy_string (env, lisp_dbpath);
int offset = env->extract_integer (env, lisp_offset);
int page_size = env->extract_integer (env, lisp_page_size);
- CHECK_EXIT (env)
+ CHECK_EXIT (env);
vector<string> result;
try
@@ -492,7 +490,7 @@ Fxeft_query_term
env->make_string
(env, it->c_str(), strlen(it->c_str())),
ret);
- CHECK_EXIT (env)
+ CHECK_EXIT (env);
}
return funcall (env, "reverse", 1, ret);
}
- [elpa] externals/xeft 974520af0a 43/55: * Makefile (SOEXT): Fix if condition., (continued)
- [elpa] externals/xeft 974520af0a 43/55: * Makefile (SOEXT): Fix if condition., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 11cf93d3aa 06/55: Refactor the module, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 2b2c8e5925 09/55: Double-buffering, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 71d13999a7 13/55: Various fixes and improvements, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 6c94f7bdb4 18/55: * xeft.el (xeft-refresh): Fix to show the "create note" prompt., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft a3050c1596 20/55: * xeft.el (xeft-ignore-extension): Explain the option more clearly., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 035ae7f3d0 22/55: * xeft.el: Update commentary about 'xeft-recursive'., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft ad2d7b259d 23/55: Don't highlight short keywords., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 7646d9d254 24/55: * xeft-module.cc (copy_string): Remember to free string buffer., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 71febb833f 26/55: Improve latency, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 1c1b449d21 25/55: Add semicolon after macro,
ELPA Syncer <=
- [elpa] externals/xeft 8b8c4bd37a 27/55: Improve README, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 2b515faf2e 29/55: * xeft-module.cc (copy_string): Fix free statement;, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft b980aac44f 45/55: Pull xapian-lite from GitHub, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft ea43335993 35/55: Extend handled query syntax and document it, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft e694278a16 53/55: Improve auto-compile/download commands, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft cb4b595b6a 50/55: Update gitignore, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 3a60ed7639 36/55: Provide option to download dynamic module automatically, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft 39430a861a 47/55: Update to v3.0, ELPA Syncer, 2023/01/13
- [elpa] externals/xeft dd14e69939 33/55: * README.md: Remove text about the dynamic mocule., ELPA Syncer, 2023/01/13
- [elpa] externals/xeft f05eca90f6 46/55: * Makefile (CXXFLAGS): Remove -stdlib=libc++, ELPA Syncer, 2023/01/13