Home
last modified time | relevance | path

Searched refs:narg (Results 1 – 24 of 24) sorted by relevance

/third_party/grpc/third_party/upb/upb/bindings/lua/
Dupb.c136 bool lupb_checkbool(lua_State *L, int narg) { in lupb_checkbool() argument
137 if (!lua_isboolean(L, narg)) { in lupb_checkbool()
140 return lua_toboolean(L, narg); in lupb_checkbool()
145 const char *lupb_checkstring(lua_State *L, int narg, size_t *len) { in lupb_checkstring() argument
146 if (lua_type(L, narg) != LUA_TSTRING) { in lupb_checkstring()
150 return lua_tolstring(L, narg, len); in lupb_checkstring()
157 ctype lupb_check##type(lua_State *L, int narg) { \
160 if (lua_isinteger(L, narg)) { \
161 return lua_tointeger(L, narg); \
165 luaL_checktype(L, narg, LUA_TNUMBER); \
[all …]
Dupb.h51 int64_t lupb_checkint64(lua_State *L, int narg);
52 int32_t lupb_checkint32(lua_State *L, int narg);
53 uint64_t lupb_checkuint64(lua_State *L, int narg);
54 uint32_t lupb_checkuint32(lua_State *L, int narg);
55 double lupb_checkdouble(lua_State *L, int narg);
56 float lupb_checkfloat(lua_State *L, int narg);
57 bool lupb_checkbool(lua_State *L, int narg);
58 const char *lupb_checkstring(lua_State *L, int narg, size_t *len);
59 const char *lupb_checkname(lua_State *L, int narg);
68 const upb_msgdef *lupb_msgdef_check(lua_State *L, int narg);
[all …]
Dmsg.c94 static void lupb_msg_newmsgwrapper(lua_State *L, int narg, upb_msgval val);
95 static upb_msg *lupb_msg_check(lua_State *L, int narg);
97 static upb_fieldtype_t lupb_checkfieldtype(lua_State *L, int narg) { in lupb_checkfieldtype() argument
98 uint32_t n = lupb_checkuint32(L, narg); in lupb_checkfieldtype()
100 luaL_argcheck(L, ok, narg, "invalid field type"); in lupb_checkfieldtype()
169 static upb_arena *lupb_arena_check(lua_State *L, int narg) { in lupb_arena_check() argument
170 lupb_arena *a = luaL_checkudata(L, narg, LUPB_ARENA); in lupb_arena_check()
213 static upb_arena *lupb_arenaget(lua_State *L, int narg) { in lupb_arenaget() argument
215 lua_getiuservalue(L, narg, LUPB_ARENA_INDEX); in lupb_arenaget()
237 static upb_msgval lupb_tomsgval(lua_State *L, upb_fieldtype_t type, int narg, in lupb_tomsgval() argument
[all …]
Ddef.c18 static void lupb_symtab_pushwrapper(lua_State *L, int narg, const void *def,
32 static const void *lupb_wrapper_check(lua_State *L, int narg, in lupb_wrapper_check() argument
34 lupb_wrapper *w = luaL_checkudata(L, narg, type); in lupb_wrapper_check()
38 static void lupb_wrapper_pushsymtab(lua_State *L, int narg) { in lupb_wrapper_pushsymtab() argument
39 lua_getiuservalue(L, narg, LUPB_SYMTAB_INDEX); in lupb_wrapper_pushsymtab()
46 static void lupb_wrapper_pushwrapper(lua_State *L, int narg, const void *def, in lupb_wrapper_pushwrapper() argument
48 lupb_wrapper_pushsymtab(L, narg); in lupb_wrapper_pushwrapper()
68 const upb_fielddef *lupb_fielddef_check(lua_State *L, int narg) { in lupb_fielddef_check() argument
69 return lupb_wrapper_check(L, narg, LUPB_FIELDDEF); in lupb_fielddef_check()
217 const upb_oneofdef *lupb_oneofdef_check(lua_State *L, int narg) { in lupb_oneofdef_check() argument
[all …]
/third_party/openssl/crypto/perlasm/
Dx86_64-xlate.pl402 my $narg = $current_function->{narg};
403 $narg=6 if (!defined($narg));
404 $func .= " movq %rcx,%rdi\n" if ($narg>0);
405 $func .= " movq %rdx,%rsi\n" if ($narg>1);
406 $func .= " movq %r8,%rdx\n" if ($narg>2);
407 $func .= " movq %r9,%rcx\n" if ($narg>3);
408 $func .= " movq 40(%rsp),%r8\n" if ($narg>4);
409 $func .= " movq 48(%rsp),%r9\n" if ($narg>5);
426 my $narg = $current_function->{narg};
427 $narg=6 if (!defined($narg));
[all …]
/third_party/mesa3d/src/mesa/drivers/dri/r200/
Dradeon_fog.c57 #define NEG_EXP( result, narg ) \ argument
59 GLfloat f = (GLfloat) (narg * (1.0/FOG_INCR)); \
67 #define NEG_EXP( result, narg ) \ argument
69 result = exp(-narg); \
/third_party/mesa3d/src/mesa/drivers/dri/radeon/
Dradeon_fog.c57 #define NEG_EXP( result, narg ) \ argument
59 GLfloat f = (GLfloat) (narg * (1.0/FOG_INCR)); \
67 #define NEG_EXP( result, narg ) \ argument
69 result = exp(-narg); \
/third_party/mesa3d/src/mesa/tnl/
Dt_vb_fog.c56 #define NEG_EXP( result, narg ) \ argument
58 GLfloat f = (GLfloat) (narg * (1.0F / FOG_INCR)); \
66 #define NEG_EXP( result, narg ) \ argument
68 result = exp(-narg); \
/third_party/ltp/testcases/kernel/firmware/fw_load_user/
Dfw_load.c62 static char *narg; variable
67 {"n:", &nflag, &narg},
109 if (sscanf(narg, "%i", &fw_size) != 1) in setup()
/third_party/python/Modules/_sqlite/clinic/
Dconnection.c.h107 const char *name, int narg,
119 int narg; in pysqlite_connection_create_function() local
140 narg = _PyLong_AsInt(args[1]); in pysqlite_connection_create_function()
141 if (narg == -1 && PyErr_Occurred()) { in pysqlite_connection_create_function()
153 return_value = pysqlite_connection_create_function_impl(self, name, narg, func, deterministic); in pysqlite_connection_create_function()
/third_party/ltp/testcases/kernel/controllers/cgroup_xattr/
Dcgroup_xattr.c95 static char *narg; variable
100 {"n:", &nflag, &narg},
168 if (sscanf(narg, "%i", &value_size) != 1) in setup()
/third_party/alsa-utils/bat/
Dbat.c85 duration_f = strtof(bat->narg, &ptrf); in get_duration()
91 duration_i = strtol(bat->narg, &ptri, 10); in get_duration()
451 bat->narg = optarg; in parse_arguments()
551 if (bat->narg) { in bat_init()
Dcommon.h223 char *narg; /* argument string of duration */ member
/third_party/ltp/testcases/kernel/syscalls/kill/
Dkill10.c204 char *narg, *garg, *darg; variable
208 {"n:", &nflag, &narg}, /* -n #procs */
222 if (sscanf(narg, "%i", &num_procs) != 1) { in main()
/third_party/ltp/testcases/network/netstress/
Dnetstress.c117 static char *narg, *Narg, *qarg, *rarg, *Rarg, *aarg, *Targ, *barg, *targ, variable
852 if (tst_parse_int(narg, &init_cln_msg_len, min_msg_len, max_msg_len)) in setup()
853 tst_brk(TBROK, "Invalid client msg size '%s'", narg); in setup()
1016 {"n:", &narg, "Client message size"},
/third_party/alsa-utils/amixer/
Damixer.c1754 int narg; in exec_stdin() local
1762 narg = split_line(buf, args, MAX_ARGS); in exec_stdin()
1763 if (narg > 0) { in exec_stdin()
1765 err = sset(narg - 1, args + 1, 0, 1); in exec_stdin()
1767 err = cset(narg - 1, args + 1, 0, 1); in exec_stdin()
/third_party/openssl/ssl/
Dt1_lib.c385 nid_cb_st *narg = arg; in nid_cb() local
391 if (narg->nidcnt == MAX_CURVELIST) in nid_cb()
404 for (i = 0; i < narg->nidcnt; i++) in nid_cb()
405 if (narg->nid_arr[i] == nid) in nid_cb()
407 narg->nid_arr[narg->nidcnt++] = nid; in nid_cb()
/third_party/node/deps/npm/node_modules/yargs-parser/
DREADME.md75 * `opts.narg`: specify that a key requires `n` arguments: `{narg: {x: 2}}`.
Dindex.js103 Object.keys(opts.narg || {}).forEach(function (k) {
104 flags.nargs[k] = opts.narg[k]
DCHANGELOG.md26 * eatNargs() for 'opt.narg === 0' and boolean typed options ([#188](https://github.com/yargs/yargs-…
238 * narg arguments no longer consume flag arguments ([#114](https://github.com/yargs/yargs-parser/iss…
/third_party/mksh/
Dedit.c2287 size_t ndel, narg; in x_kill() local
2289 if (x_arg_defaulted || (narg = x_arg) > lastcol) in x_kill()
2290 narg = lastcol; in x_kill()
2291 if (narg < col) { in x_kill()
2292 x_goto(xbuf + narg); in x_kill()
2293 ndel = col - narg; in x_kill()
2295 ndel = narg - col; in x_kill()
/third_party/python/Modules/_sqlite/
Dconnection.c894 const char *name, int narg, in pysqlite_connection_create_function_impl() argument
921 narg, in pysqlite_connection_create_function_impl()
/third_party/ltp/tools/sparse/sparse-src/
Dpre-process.c2307 int narg = 0; in dump_macro() local
2316 args[narg++] = token; in dump_macro()
/third_party/ffmpeg/
Dconfigure1312 narg=$2
1314 test $narg = 2 && args="f, g" || args="f * I"
1327 narg=$2
1329 test $narg = 2 && args="f, g" || args="f"