elua_save_history: Declare integer `res'.