OLD | NEW |
1 /* | 1 /* |
2 * Copyright © 2009 Red Hat, Inc. | 2 * Copyright © 2009 Red Hat, Inc. |
3 * Copyright © 2011 Codethink Limited | 3 * Copyright © 2011 Codethink Limited |
4 * Copyright © 2010,2011,2012 Google, Inc. | 4 * Copyright © 2010,2011,2012 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 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 * hb_unicode_funcs_make_immutable: | 303 * hb_unicode_funcs_make_immutable: |
304 * @ufuncs: Unicode functions. | 304 * @ufuncs: Unicode functions. |
305 * | 305 * |
306 * | 306 * |
307 * | 307 * |
308 * Since: 1.0 | 308 * Since: 1.0 |
309 **/ | 309 **/ |
310 void | 310 void |
311 hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs) | 311 hb_unicode_funcs_make_immutable (hb_unicode_funcs_t *ufuncs) |
312 { | 312 { |
313 if (hb_object_is_inert (ufuncs)) | 313 if (unlikely (hb_object_is_inert (ufuncs))) |
314 return; | 314 return; |
315 | 315 |
316 ufuncs->immutable = true; | 316 ufuncs->immutable = true; |
317 } | 317 } |
318 | 318 |
319 /** | 319 /** |
320 * hb_unicode_funcs_is_immutable: | 320 * hb_unicode_funcs_is_immutable: |
321 * @ufuncs: Unicode functions. | 321 * @ufuncs: Unicode functions. |
322 * | 322 * |
323 * | 323 * |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
559 230, /* HB_UNICODE_COMBINING_CLASS_ABOVE */ | 559 230, /* HB_UNICODE_COMBINING_CLASS_ABOVE */ |
560 231, | 560 231, |
561 232, /* HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT */ | 561 232, /* HB_UNICODE_COMBINING_CLASS_ABOVE_RIGHT */ |
562 233, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW */ | 562 233, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_BELOW */ |
563 234, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE */ | 563 234, /* HB_UNICODE_COMBINING_CLASS_DOUBLE_ABOVE */ |
564 235, 236, 237, 238, 239, | 564 235, 236, 237, 238, 239, |
565 240, /* HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT */ | 565 240, /* HB_UNICODE_COMBINING_CLASS_IOTA_SUBSCRIPT */ |
566 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, | 566 241, 242, 243, 244, 245, 246, 247, 248, 249, 250, 251, 252, 253, 254, |
567 255, /* HB_UNICODE_COMBINING_CLASS_INVALID */ | 567 255, /* HB_UNICODE_COMBINING_CLASS_INVALID */ |
568 }; | 568 }; |
OLD | NEW |