/* Prompt the user, read a line, and push it into the Lua stack.  */
static int pushline(lua_State *L, int firstline)
/* Prompt the user, read a line, and push it into the Lua stack.  */
static int pushline(lua_State *L, int firstline)
{0};
	char *b = buffer;
	size_t l;
	const char *prmt = get_prompt(L, firstline);
	int readstatus = lua_readline(L, b, prmt);
	if (readstatus == 0) {
		return 0;
	}
	lua_pop(L, 1);
	l = strlen(b);
	if (l > 0 && b[l-1] == '\n') {
		b[--l] = '\0';
	}
	if (firstline && b[0] == '=') {
		lua_pushfstring(L, "return %s", b + 1);
	} else {
		lua_pushlstring(L, b, l);
	}
	return 1;
}