[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: String allocation
From: |
Eli Zaretskii |
Subject: |
Re: String allocation |
Date: |
Sun, 13 Nov 2011 01:42:44 -0500 |
> From: qiang <address@hidden>
> Date: Sat, 12 Nov 2011 23:01:50 -0700
>
> #define NEXT_FREE_LISP_STRING(S) (*(struct Lisp_String **) (S))
>
> I understand S is a pointer to a Lisp_String, how can the following code
> construct a free_list ?
>
> for (i = STRING_BLOCK_SIZE - 1; i >= 0; --i)
> {
> s = b->strings + i;
> NEXT_FREE_LISP_STRING (s) = string_free_list;
> string_free_list = s;
> }
After this loop is done, what will be in each element of the array
b->strings?