return 1;
}
-/* This function gets a struct field and convert it in Lua
- * variable. The variable is pushed at the top of the stak.
+/* This function gets a struct field and converts it in Lua
+ * variable. The variable is pushed at the top of the stack.
*/
int hlua_fcn_pushfield(lua_State *L, struct field *field)
{
/* The lua_Integer is always signed. Its length depends on
- * compilation opions, so the followinfg code is conditionned
+ * compilation options, so the following code is conditioned
* by some macros. Windows maros are not supported.
* If the number cannot be represented as integer, we try to
* convert to float.
lua_rawset(L, -3);
}
-/* This function returns a string containg the HAProxy object name. */
+/* This function returns a string containing the HAProxy object name. */
int hlua_dump_object(struct lua_State *L)
{
const char *name = (const char *)lua_tostring(L, lua_upvalueindex(1));