tree: add clang-format off labels
When I figure out how to make clang-format ignore struct array initialisers, I'll get rid of this.
This commit is contained in:
parent
3c53685e4a
commit
669eb3fd28
5 changed files with 11 additions and 1 deletions
2
lcl.c
2
lcl.c
|
@ -286,6 +286,8 @@ cl_options(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
static const luaL_Reg cllib[] = {
|
||||
{"mesg", cl_mesg},
|
||||
{"error", cl_error},
|
||||
|
|
|
@ -94,6 +94,8 @@ environ_newindex(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
static const luaL_Reg mt[] = {
|
||||
{"__index", environ_index},
|
||||
{"__newindex", environ_newindex},
|
||||
|
|
2
lextra.c
2
lextra.c
|
@ -54,6 +54,8 @@ extra_sleep(lua_State *L)
|
|||
return 0;
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
static const luaL_Reg extlib[] = {
|
||||
{"sleep", extra_sleep},
|
||||
{NULL, NULL}
|
||||
|
|
2
lfs.c
2
lfs.c
|
@ -535,6 +535,8 @@ fs_workdir(lua_State *L)
|
|||
return lfail(L);
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
static const luaL_Reg fslib[] = {
|
||||
{"basename", fs_basename},
|
||||
{"copy", fs_copy},
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
#define PID_MAX 8 /* rounded to the nearest even number */
|
||||
#define PROCESS_MAX 256
|
||||
|
||||
/* signals */
|
||||
/* clang-format off */
|
||||
static const int signals[] = {
|
||||
SIGHUP,
|
||||
SIGINT,
|
||||
|
@ -357,6 +357,8 @@ process_terminate(lua_State *L)
|
|||
return sigsend(L, pid, "SIGTERM");
|
||||
}
|
||||
|
||||
/* clang-format off */
|
||||
|
||||
static const luaL_Reg proclib[] = {
|
||||
{"kill", process_kill},
|
||||
{"pid", process_pid},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue