WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED INVALID
27076
[WINCE] Move date related symbols to DateExtras.h
https://bugs.webkit.org/show_bug.cgi?id=27076
Summary
[WINCE] Move date related symbols to DateExtras.h
Kwang Yul Seo
Reported
2009-07-08 04:14:28 PDT
Currently, date related symbols are imported from libce as described in
https://bugs.webkit.org/show_bug.cgi?id=26558
. DateConstructor, DatePrototype and DateMath requires 'localtime', 'strftime' and 'time'. The better solution is to put these kinds of wordarounds into header files. We should put date related symbols into DateExtra.h, so it can be used for other platforms which also lack these symbols. I copied the implementation of 'mktime', 'gmtime', 'localtime', 'strftime' and 'time' from libce and put them into DateExtras.cpp. I see no license problem with strftime because it is from OpenBSD, but other small functions are from public domain without license documentation. Please let me know if they are not acceptable. Anyway, I think it is better to get rid of libce dependency.
Attachments
DateExtras
(24.78 KB, patch)
2009-07-08 04:23 PDT
,
Kwang Yul Seo
no flags
Details
Formatted Diff
Diff
DateExtras
(24.78 KB, patch)
2009-07-08 04:35 PDT
,
Kwang Yul Seo
eric
: review-
Details
Formatted Diff
Diff
DateExtras
(24.90 KB, patch)
2009-07-14 08:09 PDT
,
Kwang Yul Seo
staikos
: review-
Details
Formatted Diff
Diff
Show Obsolete
(2)
View All
Add attachment
proposed patch, testcase, etc.
Kwang Yul Seo
Comment 1
2009-07-08 04:23:40 PDT
Created
attachment 32446
[details]
DateExtras DateExtras
Kwang Yul Seo
Comment 2
2009-07-08 04:35:26 PDT
Created
attachment 32448
[details]
DateExtras coding convention.
Eric Seidel (no email)
Comment 3
2009-07-10 23:21:05 PDT
Comment on
attachment 32448
[details]
DateExtras Is JavaScriptCore/wtf/DateExtras.cpp all code you wrote? Where can we validate the license if not? There are lots of style errors. Try using the new cpplint in WebKitTools/Scripts/
Kwang Yul Seo
Comment 4
2009-07-14 08:09:45 PDT
Created
attachment 32712
[details]
DateExtras Okay. I removed the code from the public without license. Instead, I copied the implementation of WinCE time functions from wxWidgets-2.8.10 and modified them accordingly. wxWidgets is licensed under wxWindows Licence which is essentially LGPL, so I think there is no license problem here now.
http://www.wxwidgets.org/about/newlicen.htm
I also run the new lint tool and fixed some style errors. I am still not accustomed to the WebKit coding convention, there might be more errors. cpplint.py DateExtras.* Done processing DateExtras.cpp Done processing DateExtras.h Total errors found: 0
George Staikos
Comment 5
2009-07-14 12:40:57 PDT
Comment on
attachment 32712
[details]
DateExtras This patch directly conflicts with the WinCE port that is in the process of being merged right now. I don't think we need two conflicting ports - it's counterproductive. If you would like to merge patches from our existing port you can find them online at
http://code.staikos.net/
. Otherwise I'd ask you to be patient and allow that work to continue instead of creating conflicts.
Kwang Yul Seo
Comment 6
2009-07-17 08:42:57 PDT
Okay. I will wait. Do you have a timeline when the merge is finished?
George Staikos
Comment 7
2009-07-17 09:24:09 PDT
It's in progress but hard to predict. There is a master bug:
https://bugs.webkit.org/show_bug.cgi?id=23154
Patrick R. Gansterer
Comment 8
2012-12-08 15:40:58 PST
The dependencies on time, gmtime, localtime, mktime and strftime have been removed for WinCE in the meantime.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug