monotone-commits-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Monotone-commits-diffs] net.venge.monotone.lua-5.2: 8a08d01a6fa7af676d5


From: code
Subject: [Monotone-commits-diffs] net.venge.monotone.lua-5.2: 8a08d01a6fa7af676d5ce14acc81428f437ccaf1
Date: Wed, 25 Apr 2012 14:54:54 +0200 (CEST)

revision:            8a08d01a6fa7af676d5ce14acc81428f437ccaf1
date:                2012-04-25T11:04:38
author:              Richard Levitte <address@hidden>
branch:              net.venge.monotone.lua-5.2
changelog:
* src/luaext_parse_basic_io.cc (LUAEXT(parse_basic_io)): With Lua 5.2,
  `lua_strlen' is deprecated.  It exists as a macro of the compatibility
  flag macro is defined, but the recommended way is to use `lua_rawlen'
  instead.

manifest:
format_version "1"

new_manifest [61f063aa381fae3a7c4bf558751f8a680bc3f51d]

old_revision [539432e5c6c4d9e269c7fb4cdfdeb5e2b9117ca3]

patch "src/luaext_parse_basic_io.cc"
 from [995b37d3cc3eb58a3c6be6db06e38f997ba6845e]
   to [ae840132e7608cdc4423abafb69c7e78fb8e1f6e]
============================================================
--- src/luaext_parse_basic_io.cc	995b37d3cc3eb58a3c6be6db06e38f997ba6845e
+++ src/luaext_parse_basic_io.cc	ae840132e7608cdc4423abafb69c7e78fb8e1f6e
@@ -23,7 +23,7 @@ LUAEXT(parse_basic_io, )
   // followed by one or more string or hex values. It returns a table of
   // lines.
   vector<pair<string, vector<string> > > res;
-  const string str(luaL_checkstring(LS, -1), lua_strlen(LS, -1));
+  const string str(luaL_checkstring(LS, -1), lua_rawlen(LS, -1));
   basic_io::input_source in(str, "monotone_parse_basic_io_for_lua");
   in.made_from = origin::user;
   basic_io::tokenizer tok(in);

reply via email to

[Prev in Thread] Current Thread [Next in Thread]