Bug 27076 - [WINCE] Move date related symbols to DateExtras.h
Summary: [WINCE] Move date related symbols to DateExtras.h
Status: RESOLVED INVALID
Alias: None
Product: WebKit
Classification: Unclassified
Component: JavaScriptCore (show other bugs)
Version: 528+ (Nightly build)
Hardware: Other Other
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-07-08 04:14 PDT by Kwang Yul Seo
Modified: 2012-12-08 15:40 PST (History)
2 users (show)

See Also:


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

Note You need to log in before you can comment on or make changes to this bug.
Description Kwang Yul Seo 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.
Comment 1 Kwang Yul Seo 2009-07-08 04:23:40 PDT
Created attachment 32446 [details]
DateExtras

DateExtras
Comment 2 Kwang Yul Seo 2009-07-08 04:35:26 PDT
Created attachment 32448 [details]
DateExtras

coding convention.
Comment 3 Eric Seidel (no email) 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/
Comment 4 Kwang Yul Seo 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
Comment 5 George Staikos 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.
Comment 6 Kwang Yul Seo 2009-07-17 08:42:57 PDT
Okay. I will wait. Do you have a timeline when the merge is finished?
Comment 7 George Staikos 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
Comment 8 Patrick R. Gansterer 2012-12-08 15:40:58 PST
The dependencies on time, gmtime, localtime, mktime and strftime have been removed for WinCE in the meantime.