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

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

Issue 935333002: Update from https://crrev.com/316786 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 10 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-glib.cc ('k') | third_party/harfbuzz-ng/src/hb-mutex-private.hh » ('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 * Copyright © 2009 Keith Stribley 3 * Copyright © 2009 Keith Stribley
4 * Copyright © 2011 Google, Inc. 4 * Copyright © 2011 Google, Inc.
5 * 5 *
6 * This is part of HarfBuzz, a text shaping library. 6 * This is part of HarfBuzz, a text shaping library.
7 * 7 *
8 * Permission is hereby granted, without written agreement and without 8 * Permission is hereby granted, without written agreement and without
9 * license or royalty fees, to use, copy, modify, and distribute this 9 * license or royalty fees, to use, copy, modify, and distribute this
10 * software and its documentation for any purpose, provided that the 10 * software and its documentation for any purpose, provided that the
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
356 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_icu_unicode_##name, 356 #define HB_UNICODE_FUNC_IMPLEMENT(name) hb_icu_unicode_##name,
357 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS 357 HB_UNICODE_FUNCS_IMPLEMENT_CALLBACKS
358 #undef HB_UNICODE_FUNC_IMPLEMENT 358 #undef HB_UNICODE_FUNC_IMPLEMENT
359 } 359 }
360 }; 360 };
361 361
362 #if U_ICU_VERSION_MAJOR_NUM >= 49 362 #if U_ICU_VERSION_MAJOR_NUM >= 49
363 if (!hb_atomic_ptr_get (&normalizer)) { 363 if (!hb_atomic_ptr_get (&normalizer)) {
364 UErrorCode icu_err = U_ZERO_ERROR; 364 UErrorCode icu_err = U_ZERO_ERROR;
365 /* We ignore failure in getNFCInstace(). */ 365 /* We ignore failure in getNFCInstace(). */
366 hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu_err)); 366 (void) hb_atomic_ptr_cmpexch (&normalizer, NULL, unorm2_getNFCInstance (&icu _err));
367 } 367 }
368 #endif 368 #endif
369 return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs); 369 return const_cast<hb_unicode_funcs_t *> (&_hb_icu_unicode_funcs);
370 } 370 }
371
372
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-glib.cc ('k') | third_party/harfbuzz-ng/src/hb-mutex-private.hh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698