Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(33)

Issue 2571113002: Remove unnecessary typedefs in third_party/fips181. (Closed)

Created:
4 years ago by palmer
Modified:
4 years ago
Reviewers:
Will Harris
CC:
chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove unnecessary typedefs in third_party/fips181. Redefining these primitive types can cause problems; e.g. the definition of |UINT32| is redundant, and conflicts with that in windows.h, if windows.h is included before fips181's owntypes.h. These types are already available under standardized names in stdbool.h and stdint.h. BUG= Committed: https://crrev.com/d079621c94ee9e585014d28c02e7fc2df2edd0e7 Cr-Commit-Position: refs/heads/master@{#438657}

Patch Set 1 #

Patch Set 2 : Remove 2 more SHORTs, update the README.chromium. #

Patch Set 3 : More commentary in the README.chromium. #

Patch Set 4 : Solve for MSVC warning C4805. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+127 lines, -170 lines) Patch
M third_party/fips181/BUILD.gn View 1 chunk +0 lines, -1 line 0 comments Download
M third_party/fips181/README.chromium View 1 2 3 1 chunk +10 lines, -1 line 0 comments Download
M third_party/fips181/convert.cc View 1 2 3 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/fips181/fips181.h View 2 chunks +15 lines, -17 lines 0 comments Download
M third_party/fips181/fips181.cc View 1 2 3 35 chunks +91 lines, -91 lines 0 comments Download
D third_party/fips181/owntypes.h View 1 chunk +0 lines, -44 lines 0 comments Download
M third_party/fips181/randpass.h View 1 2 3 1 chunk +2 lines, -6 lines 0 comments Download
M third_party/fips181/randpass.cc View 1 2 3 2 chunks +5 lines, -6 lines 0 comments Download

Messages

Total messages: 21 (9 generated)
palmer
wfh: PTAL. If you think this patch makes sense, I'll contact the upstream developer.
4 years ago (2016-12-14 01:09:17 UTC) #2
Will Harris
lgtm but I would be happy to accept these as local modifications so please update ...
4 years ago (2016-12-14 01:22:25 UTC) #3
palmer
> I think the original library is C so adding bool breaks that compatibility. Not ...
4 years ago (2016-12-14 18:44:26 UTC) #4
Will Harris
On 2016/12/14 18:44:26, palmer wrote: > > I think the original library is C so ...
4 years ago (2016-12-14 18:46:28 UTC) #5
palmer
> did you mean to include stdbool.h then? For our version, which has the files ...
4 years ago (2016-12-14 18:50:14 UTC) #6
Will Harris
okay I'll leave it to your best judgement how to upstream this. I'm happy with ...
4 years ago (2016-12-14 19:09:01 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571113002/40001
4 years ago (2016-12-14 20:36:15 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_compile_dbg_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_compile_dbg_ng/builds/314909)
4 years ago (2016-12-14 21:24:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2571113002/60001
4 years ago (2016-12-14 21:44:21 UTC) #15
Will Harris
On 2016/12/14 21:44:21, commit-bot: I haz the power wrote: > CQ is trying da patch. ...
4 years ago (2016-12-14 21:51:06 UTC) #16
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years ago (2016-12-14 22:55:18 UTC) #19
commit-bot: I haz the power
4 years ago (2016-12-14 22:57:39 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/d079621c94ee9e585014d28c02e7fc2df2edd0e7
Cr-Commit-Position: refs/heads/master@{#438657}

Powered by Google App Engine
This is Rietveld 408576698