OLD | NEW |
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. |
(...skipping 28 matching lines...) Expand all Loading... |
39 #include <stdio.h> | 39 #include <stdio.h> |
40 #include <errno.h> | 40 #include <errno.h> |
41 | 41 |
42 | 42 |
43 | 43 |
44 #ifndef HB_DEBUG_BLOB | 44 #ifndef HB_DEBUG_BLOB |
45 #define HB_DEBUG_BLOB (HB_DEBUG+0) | 45 #define HB_DEBUG_BLOB (HB_DEBUG+0) |
46 #endif | 46 #endif |
47 | 47 |
48 | 48 |
49 struct _hb_blob_t { | 49 struct hb_blob_t { |
50 hb_object_header_t header; | 50 hb_object_header_t header; |
51 ASSERT_POD (); | 51 ASSERT_POD (); |
52 | 52 |
53 bool immutable; | 53 bool immutable; |
54 | 54 |
55 const char *data; | 55 const char *data; |
56 unsigned int length; | 56 unsigned int length; |
57 hb_memory_mode_t mode; | 57 hb_memory_mode_t mode; |
58 | 58 |
59 void *user_data; | 59 void *user_data; |
(...skipping 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 _hb_blob_destroy_user_data (blob); | 316 _hb_blob_destroy_user_data (blob); |
317 blob->mode = HB_MEMORY_MODE_WRITABLE; | 317 blob->mode = HB_MEMORY_MODE_WRITABLE; |
318 blob->data = new_data; | 318 blob->data = new_data; |
319 blob->user_data = new_data; | 319 blob->user_data = new_data; |
320 blob->destroy = free; | 320 blob->destroy = free; |
321 | 321 |
322 return true; | 322 return true; |
323 } | 323 } |
324 | 324 |
325 | 325 |
OLD | NEW |