lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


struct cookie
{
  struct cookie *next;
  char *name;
  char *value;
  char *domain;
  char *path;
  long expire;
  unsigned int version;
  short secure;
  [
  short session;	/* transient: do not (de)serialize */
  short env;		/* transient: do not (de)serialize */
  short modified;	/* transient: do not (de)serialize */
  ]
};




On Thu, May 6, 2010 at 4:47 PM, Florian Weimer <fw@deneb.enyo.de> wrote:
> * Silence:
>
>> What's the meaning of "[ ]" in the struct ?
>>
>> struct astr
>> {
>>   char *name;
>>   short secure;
>>   [
>>   short sst;
>>   short env;
>>   ]
>> };
>
> In C, that's a syntax error.  What's the context of this code snippet?
> How is it related to Lua?
>