mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-22 02:27:36 +03:00
Clean up CSTYLEDs
69 CSTYLED BEGINs remain, appx. 30 of which can be removed if cstyle(1) had a useful policy regarding CALL(ARG1, ARG2, ARG3); above 2 lines. As it stands, it spits out *both* sysctl_os.c: 385: continuation line should be indented by 4 spaces sysctl_os.c: 385: indent by spaces instead of tabs which is very cool Another >10 could be fixed by removing "ulong" &al. handling. I don't foresee anyone actually using it intentionally (does it even exist in modern headers? why did it in the first place?). Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Ahelenia Ziemiańska <nabijaczleweli@nabijaczleweli.xyz> Closes #12993
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lapi.c,v 2.171.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lua API
|
||||
@@ -1296,7 +1295,6 @@ module_init(lua_init);
|
||||
module_exit(lua_fini);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
ZFS_MODULE_DESCRIPTION("Lua Interpreter for ZFS");
|
||||
ZFS_MODULE_AUTHOR("Lua.org");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lapi.h,v 2.7.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Auxiliary functions from Lua API
|
||||
@@ -23,4 +22,3 @@
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lauxlib.c,v 1.248.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Auxiliary functions for building Lua libraries
|
||||
@@ -797,4 +796,3 @@ EXPORT_SYMBOL(luaL_newmetatable);
|
||||
EXPORT_SYMBOL(luaL_traceback);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lbaselib.c,v 1.276.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Basic library
|
||||
@@ -293,4 +292,3 @@ LUAMOD_API int luaopen_base (lua_State *L) {
|
||||
EXPORT_SYMBOL(luaopen_base);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lcode.c,v 2.62.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Code generator for Lua
|
||||
@@ -885,4 +884,3 @@ void luaK_setlist (FuncState *fs, int base, int nelems, int tostore) {
|
||||
luaX_syntaxerror(fs->ls, "constructor too long");
|
||||
fs->freereg = base + 1; /* free registers with list values */
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lcode.h,v 1.58.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Code generator for Lua
|
||||
@@ -82,4 +81,3 @@ LUAI_FUNC void luaK_setlist (FuncState *fs, int base, int nelems, int tostore);
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lcorolib.c,v 1.5.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Coroutine Library
|
||||
@@ -156,4 +155,3 @@ LUAMOD_API int luaopen_coroutine (lua_State *L) {
|
||||
EXPORT_SYMBOL(luaopen_coroutine);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lctype.c,v 1.11.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** 'ctype' functions for Lua
|
||||
@@ -49,4 +48,3 @@ LUAI_DDEF const lu_byte luai_ctype_[UCHAR_MAX + 2] = {
|
||||
};
|
||||
|
||||
#endif /* } */
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lctype.h,v 1.12.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** 'ctype' functions for Lua
|
||||
@@ -91,4 +90,3 @@ LUAI_DDEC const lu_byte luai_ctype_[UCHAR_MAX + 2];
|
||||
#endif /* } */
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ldebug.c,v 2.90.1.4 2015/02/19 17:05:13 roberto Exp $
|
||||
** Debug Interface
|
||||
@@ -605,4 +604,3 @@ l_noret luaG_runerror (lua_State *L, const char *fmt, ...) {
|
||||
luaG_errormsg(L);
|
||||
L->runerror--;
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ldebug.h,v 2.7.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Auxiliary functions from Debug Interface module
|
||||
@@ -33,4 +32,3 @@ LUAI_FUNC l_noret luaG_runerror (lua_State *L, const char *fmt, ...);
|
||||
LUAI_FUNC l_noret luaG_errormsg (lua_State *L);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ldo.c,v 2.108.1.3 2013/11/08 18:22:50 roberto Exp $
|
||||
** Stack and Call structure of Lua
|
||||
@@ -746,4 +745,3 @@ int luaD_protectedparser (lua_State *L, ZIO *z, const char *name,
|
||||
L->nny--;
|
||||
return status;
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ldo.h,v 2.20.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Stack and Call structure of Lua
|
||||
@@ -44,4 +43,3 @@ LUAI_FUNC l_noret luaD_throw (lua_State *L, int errcode);
|
||||
LUAI_FUNC int luaD_rawrunprotected (lua_State *L, Pfunc f, void *ud);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lfunc.c,v 2.30.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Auxiliary functions to manipulate prototypes and closures
|
||||
@@ -157,4 +156,3 @@ const char *luaF_getlocalname (const Proto *f, int local_number, int pc) {
|
||||
}
|
||||
return NULL; /* not found */
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lfunc.h,v 2.8.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Auxiliary functions to manipulate prototypes and closures
|
||||
@@ -32,4 +31,3 @@ LUAI_FUNC const char *luaF_getlocalname (const Proto *func, int local_number,
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lgc.c,v 2.140.1.3 2014/09/01 16:55:08 roberto Exp $
|
||||
** Garbage Collector
|
||||
@@ -1215,4 +1214,3 @@ void luaC_fullgc (lua_State *L, int isemergency) {
|
||||
}
|
||||
|
||||
/* }====================================================== */
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lgc.h,v 2.58.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Garbage Collector
|
||||
@@ -156,4 +155,3 @@ LUAI_FUNC void luaC_checkupvalcolor (global_State *g, UpVal *uv);
|
||||
LUAI_FUNC void luaC_changemode (lua_State *L, int mode);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: llex.c,v 2.63.1.3 2015/02/09 17:56:34 roberto Exp $
|
||||
** Lexical Analyzer
|
||||
@@ -528,4 +527,3 @@ int luaX_lookahead (LexState *ls) {
|
||||
ls->lookahead.token = llex(ls, &ls->lookahead.seminfo);
|
||||
return ls->lookahead.token;
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: llex.h,v 1.72.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lexical Analyzer
|
||||
@@ -80,4 +79,3 @@ LUAI_FUNC const char *luaX_token2str (LexState *ls, int token);
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: llimits.h,v 1.103.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Limits, basic types, and some other `installation-dependent' definitions
|
||||
@@ -311,4 +310,3 @@ union luai_Cast { double l_d; LUA_INT32 l_p[2]; };
|
||||
#endif
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lmem.c,v 1.84.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Interface to Memory Manager
|
||||
@@ -95,4 +94,3 @@ void *luaM_realloc_ (lua_State *L, void *block, size_t osize, size_t nsize) {
|
||||
g->GCdebt = (g->GCdebt + nsize) - realosize;
|
||||
return newblock;
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lmem.h,v 1.40.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Interface to Memory Manager
|
||||
@@ -53,4 +52,3 @@ LUAI_FUNC void *luaM_growaux_ (lua_State *L, void *block, int *size,
|
||||
const char *what);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lobject.c,v 2.58.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Some generic functions over Lua objects
|
||||
@@ -279,4 +278,3 @@ void luaO_chunkid (char *out, const char *source, size_t bufflen) {
|
||||
memcpy(out, POS, (LL(POS) + 1) * sizeof(char));
|
||||
}
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lobject.h,v 2.71.1.2 2014/05/07 14:14:58 roberto Exp $
|
||||
** Type definitions for Lua objects
|
||||
@@ -602,4 +601,3 @@ LUAI_FUNC void luaO_chunkid (char *out, const char *source, size_t len);
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lopcodes.c,v 1.49.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Opcodes for Lua virtual machine
|
||||
@@ -105,4 +104,3 @@ LUAI_DDEF const lu_byte luaP_opmodes[NUM_OPCODES] = {
|
||||
,opmode(0, 1, OpArgU, OpArgN, iABC) /* OP_VARARG */
|
||||
,opmode(0, 0, OpArgU, OpArgU, iAx) /* OP_EXTRAARG */
|
||||
};
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lopcodes.h,v 1.142.1.2 2014/10/20 18:32:09 roberto Exp $
|
||||
** Opcodes for Lua virtual machine
|
||||
@@ -287,4 +286,3 @@ LUAI_DDEC const char *const luaP_opnames[NUM_OPCODES+1]; /* opcode names */
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lparser.c,v 2.130.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lua Parser
|
||||
@@ -1640,4 +1639,3 @@ Closure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
|
||||
lua_assert(dyd->actvar.n == 0 && dyd->gt.n == 0 && dyd->label.n == 0);
|
||||
return cl; /* it's on the stack too */
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lparser.h,v 1.70.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lua Parser
|
||||
@@ -118,4 +117,3 @@ LUAI_FUNC Closure *luaY_parser (lua_State *L, ZIO *z, Mbuffer *buff,
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lstate.c,v 2.99.1.2 2013/11/08 17:45:31 roberto Exp $
|
||||
** Global State
|
||||
@@ -317,4 +316,3 @@ LUA_API void lua_close (lua_State *L) {
|
||||
lua_lock(L);
|
||||
close_state(L);
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lstate.h,v 2.82.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Global State
|
||||
@@ -227,4 +226,3 @@ LUAI_FUNC void luaE_freeCI (lua_State *L);
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lstring.c,v 2.26.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** String table (keeps all strings handled by Lua)
|
||||
@@ -183,4 +182,3 @@ Udata *luaS_newudata (lua_State *L, size_t s, Table *e) {
|
||||
u->uv.env = e;
|
||||
return u;
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lstring.h,v 1.49.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** String table (keep all strings handled by Lua)
|
||||
@@ -45,4 +44,3 @@ LUAI_FUNC TString *luaS_new (lua_State *L, const char *str);
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lstrlib.c,v 1.178.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Standard library for string operations and pattern-matching
|
||||
@@ -1037,4 +1036,3 @@ LUAMOD_API int luaopen_string (lua_State *L) {
|
||||
EXPORT_SYMBOL(luaopen_string);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ltable.c,v 2.72.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lua tables (hash)
|
||||
@@ -589,4 +588,3 @@ Node *luaH_mainposition (const Table *t, const TValue *key) {
|
||||
int luaH_isdummy (Node *n) { return isdummy(n); }
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ltable.h,v 2.16.1.2 2013/08/30 15:49:41 roberto Exp $
|
||||
** Lua tables (hash)
|
||||
@@ -44,4 +43,3 @@ LUAI_FUNC int luaH_isdummy (Node *n);
|
||||
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ltablib.c,v 1.65.1.2 2014/05/07 16:32:55 roberto Exp $
|
||||
** Library for Table Manipulation
|
||||
@@ -286,4 +285,3 @@ LUAMOD_API int luaopen_table (lua_State *L) {
|
||||
EXPORT_SYMBOL(luaopen_table);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ltm.c,v 2.14.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Tag methods
|
||||
@@ -73,4 +72,3 @@ const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o, TMS event) {
|
||||
}
|
||||
return (mt ? luaH_getstr(mt, G(L)->tmname[event]) : luaO_nilobject);
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: ltm.h,v 2.11.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Tag methods
|
||||
@@ -56,4 +55,3 @@ LUAI_FUNC const TValue *luaT_gettmbyobj (lua_State *L, const TValue *o,
|
||||
LUAI_FUNC void luaT_init (lua_State *L);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lvm.c,v 2.155.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lua virtual machine
|
||||
@@ -928,5 +927,3 @@ void luaV_execute (lua_State *L) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lvm.h,v 2.18.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Lua virtual machine
|
||||
@@ -43,4 +42,3 @@ LUAI_FUNC void luaV_arith (lua_State *L, StkId ra, const TValue *rb,
|
||||
LUAI_FUNC void luaV_objlen (lua_State *L, StkId ra, const TValue *rb);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lzio.c,v 1.35.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Buffered streams
|
||||
@@ -71,4 +70,3 @@ char *luaZ_openspace (lua_State *L, Mbuffer *buff, size_t n) {
|
||||
}
|
||||
return buff->buffer;
|
||||
}
|
||||
/* END CSTYLED */
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* BEGIN CSTYLED */
|
||||
/*
|
||||
** $Id: lzio.h,v 1.26.1.1 2013/04/12 18:48:47 roberto Exp $
|
||||
** Buffered streams
|
||||
@@ -64,4 +63,3 @@ struct Zio {
|
||||
LUAI_FUNC int luaZ_fill (ZIO *z);
|
||||
|
||||
#endif
|
||||
/* END CSTYLED */
|
||||
|
||||
Reference in New Issue
Block a user