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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-blob.cc

Issue 396393005: Roll HarfBuzz to 0.9.32 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix for include order presubmit issue Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-blob.h ('k') | third_party/harfbuzz-ng/src/hb-buffer.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright © 2009 Red Hat, Inc. 2 * Copyright © 2009 Red Hat, Inc.
3 * 3 *
4 * This is part of HarfBuzz, a text shaping library. 4 * This is part of HarfBuzz, a text shaping library.
5 * 5 *
6 * Permission is hereby granted, without written agreement and without 6 * Permission is hereby granted, without written agreement and without
7 * license or royalty fees, to use, copy, modify, and distribute this 7 * license or royalty fees, to use, copy, modify, and distribute this
8 * software and its documentation for any purpose, provided that the 8 * software and its documentation for any purpose, provided that the
9 * above copyright notice and the following two paragraphs appear in 9 * above copyright notice and the following two paragraphs appear in
10 * all copies of this software. 10 * all copies of this software.
11 * 11 *
12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR 12 * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR
13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES 13 * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES
14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN 14 * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN
15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH 15 * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
16 * DAMAGE. 16 * DAMAGE.
17 * 17 *
18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, 18 * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING,
19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND 19 * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS 20 * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS
21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO 21 * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO
22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. 22 * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS.
23 * 23 *
24 * Red Hat Author(s): Behdad Esfahbod 24 * Red Hat Author(s): Behdad Esfahbod
25 */ 25 */
26 26
27 /* http://www.oracle.com/technetwork/articles/servers-storage-dev/standardheader files-453865.html */ 27 /* http://www.oracle.com/technetwork/articles/servers-storage-dev/standardheader files-453865.html */
28 #if defined(_POSIX_C_SOURCE) 28 #ifndef _POSIX_C_SOURCE
29 #undef _POSIX_C_SOURCE 29 #define _POSIX_C_SOURCE 199309L
30 #endif 30 #endif
31 #define _POSIX_C_SOURCE 199309L
32 31
33 #include "hb-private.hh" 32 #include "hb-private.hh"
34 33
35 #include "hb-object-private.hh" 34 #include "hb-object-private.hh"
36 35
37 #ifdef HAVE_SYS_MMAN_H 36 #ifdef HAVE_SYS_MMAN_H
38 #ifdef HAVE_UNISTD_H 37 #ifdef HAVE_UNISTD_H
39 #include <unistd.h> 38 #include <unistd.h>
40 #endif /* HAVE_UNISTD_H */ 39 #endif /* HAVE_UNISTD_H */
41 #include <sys/mman.h> 40 #include <sys/mman.h>
(...skipping 426 matching lines...) Expand 10 before | Expand all | Expand 10 after
468 467
469 memcpy (new_data, blob->data, blob->length); 468 memcpy (new_data, blob->data, blob->length);
470 _hb_blob_destroy_user_data (blob); 469 _hb_blob_destroy_user_data (blob);
471 blob->mode = HB_MEMORY_MODE_WRITABLE; 470 blob->mode = HB_MEMORY_MODE_WRITABLE;
472 blob->data = new_data; 471 blob->data = new_data;
473 blob->user_data = new_data; 472 blob->user_data = new_data;
474 blob->destroy = free; 473 blob->destroy = free;
475 474
476 return true; 475 return true;
477 } 476 }
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-blob.h ('k') | third_party/harfbuzz-ng/src/hb-buffer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698