Home | History | Annotate | Download | only in libasm

Lines Matching refs:buffer

57   /* If we have not yet initialized the buffer do it now.  */
62 /* We have a key. Use it to get the thread-specific buffer. */
63 int *buffer = getspecific (key);
64 if (buffer == NULL)
66 /* No buffer allocated so far. */
67 buffer = (int *) malloc (sizeof (int));
68 if (buffer == NULL)
69 /* No more memory available. We use the static buffer. */
70 buffer = &global_error;
72 setspecific (key, buffer);
74 *buffer = 0;
77 result = *buffer;
78 *buffer = ASM_E_NOERROR;
92 /* If we have not yet initialized the buffer do it now. */
97 /* We have a key. Use it to get the thread-specific buffer. */
98 int *buffer = getspecific (key);
99 if (buffer == NULL)
101 /* No buffer allocated so far. */
102 buffer = malloc (sizeof (int));
103 if (buffer == NULL)
104 /* No more memory available. We use the static buffer. */
105 buffer = &global_error;
107 setspecific (key, buffer);
110 *buffer = value;
138 /* If we have not yet initialized the buffer do it now. */
143 /* We have a key. Use it to get the thread-specific buffer. */
144 int *buffer = (int *) getspecific (key);
145 if (buffer == NULL)
147 /* No buffer allocated so far. */
148 buffer = (int *) malloc (sizeof (int));
149 if (buffer == NULL)
150 /* No more memory available. We use the static buffer. */
151 buffer = &global_error;
153 setspecific (key, buffer);
154 *buffer = 0;
157 last_error = *buffer;