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

Issue 1130843003: Make (and verify) public/ files compile under C. (Closed)

Created:
5 years, 7 months ago by Tom Sepez
Modified:
5 years, 7 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Make (and verify) public/ files compile under C. This involves adding some missing extern "C" { } declarations, using FPDF_ types instead of C++ types, and converting pass by reference arguments into pointers. Test this using fpdfview_embedertest for simplicity. BUG=pdfium:158 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/b2aa54381811383d4a86fbe7b194907c33e8dcc1

Patch Set 1 #

Total comments: 10

Patch Set 2 : Move file, organize by header, fix nits. #

Patch Set 3 : Blank line. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+288 lines, -30 lines) Patch
M BUILD.gn View 1 1 chunk +2 lines, -0 lines 0 comments Download
M fpdfsdk/src/fpdfview.cpp View 2 chunks +6 lines, -6 lines 0 comments Download
A fpdfsdk/src/fpdfview_c_api_test.h View 1 1 chunk +20 lines, -0 lines 0 comments Download
A fpdfsdk/src/fpdfview_c_api_test.c View 1 2 1 chunk +213 lines, -0 lines 0 comments Download
M fpdfsdk/src/fpdfview_embeddertest.cpp View 1 8 chunks +19 lines, -14 lines 0 comments Download
M pdfium.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
M public/fpdf_dataavail.h View 1 chunk +1 line, -1 line 0 comments Download
M public/fpdf_ext.h View 1 chunk +2 lines, -2 lines 0 comments Download
M public/fpdf_fwlevent.h View 2 chunks +8 lines, -0 lines 0 comments Download
M public/fpdf_save.h View 2 chunks +3 lines, -3 lines 0 comments Download
M public/fpdf_transformpage.h View 2 chunks +8 lines, -0 lines 0 comments Download
M public/fpdfview.h View 2 chunks +2 lines, -2 lines 0 comments Download
M samples/pdfium_test.cc View 1 chunk +1 line, -1 line 0 comments Download
M testing/embedder_test.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 6 (1 generated)
Tom Sepez
Lei, just because. Thanks. https://codereview.chromium.org/1130843003/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1130843003/diff/1/BUILD.gn#newcode882 BUILD.gn:882: "testing/c_api_test.c", Q: you want this ...
5 years, 7 months ago (2015-05-12 19:22:51 UTC) #2
Lei Zhang
https://codereview.chromium.org/1130843003/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1130843003/diff/1/BUILD.gn#newcode882 BUILD.gn:882: "testing/c_api_test.c", On 2015/05/12 19:22:50, Tom Sepez wrote: > Q: ...
5 years, 7 months ago (2015-05-12 21:43:03 UTC) #3
Tom Sepez
https://codereview.chromium.org/1130843003/diff/1/BUILD.gn File BUILD.gn (right): https://codereview.chromium.org/1130843003/diff/1/BUILD.gn#newcode882 BUILD.gn:882: "testing/c_api_test.c", On 2015/05/12 21:43:03, Lei Zhang wrote: > On ...
5 years, 7 months ago (2015-05-12 22:36:56 UTC) #4
Lei Zhang
lgtm There's a couple more typos in the commit msg.
5 years, 7 months ago (2015-05-12 23:06:04 UTC) #5
Tom Sepez
5 years, 7 months ago (2015-05-12 23:17:08 UTC) #6
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
b2aa54381811383d4a86fbe7b194907c33e8dcc1 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698