Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(1591)

Issue 176073: Fix loading python26.bc from drives other than C: (Issue 96) (Closed)

Can't Edit
Can't Publish+Mail
Start Review
Created:
15 years, 5 months ago by James Abbatiello
Modified:
15 years, 5 months ago
CC:
unladen-swallow_googlegroups.com
Base URL:
http://unladen-swallow.googlecode.com/svn/trunk/
Visibility:
Public.

Description

Split sys_path on the correct platform-specific delimiter. See http://code.google.com/p/unladen-swallow/issues/detail?id=96

Patch Set 1 #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -1 line) Patch
Python/global_llvm_data.cc View 2 chunks +4 lines, -1 line 4 comments Download

Messages

Total messages: 4
James Abbatiello
15 years, 5 months ago (2009-12-14 04:43:02 UTC) #1
Jeffrey Yasskin
Oops. LGTM. http://codereview.appspot.com/176073/diff/1/2 File Python/global_llvm_data.cc (right): http://codereview.appspot.com/176073/diff/1/2#newcode5 Python/global_llvm_data.cc:5: #undef MAXPATHLEN Why #undef MAXPATHLEN? Does it ...
15 years, 5 months ago (2009-12-14 05:38:49 UTC) #2
James Abbatiello
Committing http://codereview.appspot.com/176073/diff/1/2 File Python/global_llvm_data.cc (right): http://codereview.appspot.com/176073/diff/1/2#newcode5 Python/global_llvm_data.cc:5: #undef MAXPATHLEN On 2009/12/14 05:38:49, Jeffrey Yasskin wrote: ...
15 years, 5 months ago (2009-12-14 06:03:00 UTC) #3
Jeffrey Yasskin (google)
15 years, 5 months ago (2009-12-14 06:08:08 UTC) #4
On Sun, Dec 13, 2009 at 10:03 PM,  <abbeyj@gmail.com> wrote:
> Committing
>
>
>
> http://codereview.appspot.com/176073/diff/1/2
> File Python/global_llvm_data.cc (right):
>
> http://codereview.appspot.com/176073/diff/1/2#newcode5
> Python/global_llvm_data.cc:5: #undef MAXPATHLEN
> On 2009/12/14 05:38:49, Jeffrey Yasskin wrote:
>>
>> Why #undef MAXPATHLEN? Does it break llvm somewhere?
>
> You get duplicate defintion warnings since config.h also defines
> MAXPATHLEN but with a different value.

Ah

> http://codereview.appspot.com/176073/diff/1/2#newcode87
> Python/global_llvm_data.cc:87: StringRef(Py_GetPath()).split(sys_path,
> delim);
> On 2009/12/14 05:38:49, Jeffrey Yasskin wrote:
>>
>> StringRef::split() has an overload taking a char, so you should be
>
> able to pass
>>
>> just DELIM. I'm not sure why I didn't use a char in the first place.
>
> The version taking a char has different semantics (only splits the
> string into at most two pieces).

Oops, you're right.
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b