| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc. | 2 * Copyright © 2007,2008,2009,2010 Red Hat, Inc. |
| 3 * Copyright © 2012 Google, Inc. | 3 * Copyright © 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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 hb_blob_t *blob; | 282 hb_blob_t *blob; |
| 283 }; | 283 }; |
| 284 | 284 |
| 285 | 285 |
| 286 | 286 |
| 287 /* Template to sanitize an object. */ | 287 /* Template to sanitize an object. */ |
| 288 template <typename Type> | 288 template <typename Type> |
| 289 struct Sanitizer | 289 struct Sanitizer |
| 290 { | 290 { |
| 291 static hb_blob_t *sanitize (hb_blob_t *blob) { | 291 static hb_blob_t *sanitize (hb_blob_t *blob) { |
| 292 hb_sanitize_context_t c[1] = {{0}}; | 292 hb_sanitize_context_t c[1] = {{0, NULL, NULL, false, 0, NULL}}; |
| 293 bool sane; | 293 bool sane; |
| 294 | 294 |
| 295 /* TODO is_sane() stuff */ | 295 /* TODO is_sane() stuff */ |
| 296 | 296 |
| 297 c->init (blob); | 297 c->init (blob); |
| 298 | 298 |
| 299 retry: | 299 retry: |
| 300 DEBUG_MSG_FUNC (SANITIZE, blob, "start"); | 300 DEBUG_MSG_FUNC (SANITIZE, blob, "start"); |
| 301 | 301 |
| 302 c->start_processing (); | 302 c->start_processing (); |
| (...skipping 648 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 951 } | 951 } |
| 952 return -1; | 952 return -1; |
| 953 } | 953 } |
| 954 }; | 954 }; |
| 955 | 955 |
| 956 | 956 |
| 957 } /* namespace OT */ | 957 } /* namespace OT */ |
| 958 | 958 |
| 959 | 959 |
| 960 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ | 960 #endif /* HB_OPEN_TYPE_PRIVATE_HH */ |
| OLD | NEW |