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

Side by Side Diff: third_party/harfbuzz-ng/src/hb-private.hh

Issue 1580513002: Roll HarfBuzz to 1.1.3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: build fix Created 4 years, 11 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-ot-tag.cc ('k') | third_party/harfbuzz-ng/src/hb-set.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 © 2007,2008,2009 Red Hat, Inc. 2 * Copyright © 2007,2008,2009 Red Hat, Inc.
3 * Copyright © 2011,2012 Google, Inc. 3 * Copyright © 2011,2012 Google, Inc.
4 * 4 *
5 * This is part of HarfBuzz, a text shaping library. 5 * This is part of HarfBuzz, a text shaping library.
6 * 6 *
7 * Permission is hereby granted, without written agreement and without 7 * Permission is hereby granted, without written agreement and without
8 * license or royalty fees, to use, copy, modify, and distribute this 8 * license or royalty fees, to use, copy, modify, and distribute this
9 * software and its documentation for any purpose, provided that the 9 * software and its documentation for any purpose, provided that the
10 * above copyright notice and the following two paragraphs appear in 10 * above copyright notice and the following two paragraphs appear in
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 # define getenv(Name) NULL 172 # define getenv(Name) NULL
173 # if _WIN32_WCE < 0x800 173 # if _WIN32_WCE < 0x800
174 # define setlocale(Category, Locale) "C" 174 # define setlocale(Category, Locale) "C"
175 static int errno = 0; /* Use something better? */ 175 static int errno = 0; /* Use something better? */
176 # endif 176 # endif
177 # elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI _FAMILY==WINAPI_FAMILY_PHONE_APP) 177 # elif defined(WINAPI_FAMILY) && (WINAPI_FAMILY==WINAPI_FAMILY_PC_APP || WINAPI _FAMILY==WINAPI_FAMILY_PHONE_APP)
178 # define getenv(Name) NULL 178 # define getenv(Name) NULL
179 # endif 179 # endif
180 # if defined(_MSC_VER) && _MSC_VER < 1900 180 # if defined(_MSC_VER) && _MSC_VER < 1900
181 # define snprintf _snprintf 181 # define snprintf _snprintf
182 # elif defined(_MSC_VER) && _MSC_VER >= 1900
183 # /* Covers VC++ Error for strdup being a deprecated POSIX name and to instea d use _strdup instead */
184 # define strdup _strdup
182 # endif 185 # endif
183 #endif 186 #endif
184 187
185 #if HAVE_ATEXIT 188 #if HAVE_ATEXIT
186 /* atexit() is only safe to be called from shared libraries on certain 189 /* atexit() is only safe to be called from shared libraries on certain
187 * platforms. Whitelist. 190 * platforms. Whitelist.
188 * https://bugs.freedesktop.org/show_bug.cgi?id=82246 */ 191 * https://bugs.freedesktop.org/show_bug.cgi?id=82246 */
189 # if defined(__linux) && defined(__GLIBC_PREREQ) 192 # if defined(__linux) && defined(__GLIBC_PREREQ)
190 # if __GLIBC_PREREQ(2,3) 193 # if __GLIBC_PREREQ(2,3)
191 /* From atexit() manpage, it's safe with glibc 2.2.3 on Linux. */ 194 /* From atexit() manpage, it's safe with glibc 2.2.3 on Linux. */
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after
995 998
996 static inline hb_options_t 999 static inline hb_options_t
997 hb_options (void) 1000 hb_options (void)
998 { 1001 {
999 if (unlikely (!_hb_options.i)) 1002 if (unlikely (!_hb_options.i))
1000 _hb_options_init (); 1003 _hb_options_init ();
1001 1004
1002 return _hb_options.opts; 1005 return _hb_options.opts;
1003 } 1006 }
1004 1007
1008 /* Size signifying variable-sized array */
1009 #define VAR 1
1005 1010
1006 #endif /* HB_PRIVATE_HH */ 1011 #endif /* HB_PRIVATE_HH */
OLDNEW
« no previous file with comments | « third_party/harfbuzz-ng/src/hb-ot-tag.cc ('k') | third_party/harfbuzz-ng/src/hb-set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698