Thread overview | |||||
---|---|---|---|---|---|
|
October 17, 2009 [Issue 3412] New: DMD 1.x svn branch store string literal in mutable char* | ||||
---|---|---|---|---|
| ||||
http://d.puremagic.com/issues/show_bug.cgi?id=3412 Summary: DMD 1.x svn branch store string literal in mutable char* Product: D Version: 1.051 Platform: All OS/Version: All Status: NEW Keywords: patch Severity: trivial Priority: P2 Component: DMD AssignedTo: nobody@puremagic.com ReportedBy: llucax@gmail.com --- Comment #0 from Leandro Lucarella <llucax@gmail.com> 2009-10-17 10:46:49 PDT --- Created an attachment (id=476) Patch against DMD 1.x branch r215 String literals are supposed to be const char* instead of mutable char*, but DMD uses char* in a few places. Attached is a patch that stores the string literals using the right type. As a side effect, it avoids some compiler warnings (at least with GCC). -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
October 17, 2009 [Issue 3412] DMD 1.x svn branch store string literal in mutable char* | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | http://d.puremagic.com/issues/show_bug.cgi?id=3412 --- Comment #1 from Leandro Lucarella <llucax@gmail.com> 2009-10-17 11:49:06 PDT --- I forgot to mention that you can apply the patch with: patch -p2 < 0002-Store-string-literals-in-const-char-variables.patch in the src directory -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
March 28, 2013 [Issue 3412] DMD 1.x svn branch store string literal in mutable char* | ||||
---|---|---|---|---|
| ||||
Posted in reply to Leandro Lucarella | http://d.puremagic.com/issues/show_bug.cgi?id=3412 Leandro Lucarella <leandro.lucarella@sociomantic.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |RESOLVED Resolution| |INVALID --- Comment #2 from Leandro Lucarella <leandro.lucarella@sociomantic.com> 2013-03-28 07:23:26 PDT --- I think this is extremely outdated and eventually was (at least partially) addressed, so better to let it die. -- Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- |
Copyright © 1999-2021 by the D Language Foundation