dotgnu-general
[Top][All Lists]
Advanced

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

[DotGNU]Treecc help required


From: CH Gowri Kumar
Subject: [DotGNU]Treecc help required
Date: Tue, 20 May 2003 18:37:15 +0530 (IST)

Hi all,
Is it possible to add our own code into the *create functions
which are created by the treecc (through some option).

This is what I am trying to do:
I am trying to create a doubly linked list of nodes and have the decl. as 
follows:
(I have ignored the %nocreate  to cut down the complexity)

%node ILNode_Dnode ILNode = 
{
        ILNode* prev;
        ILNode* next;
}

%node ILNode_DList ILNode =
{
        ILNode_Dnode *head;
        ILNode_Dnode *tail;
}

Here I would like to have the initialization in the ILNode_DList_create
function as follows:

head->next = tail;
head->prev = NULL;
tail->prev = head;
tail->next = NULL;

%option no_allocator 

seems to be saying something abt. it, but not too sure
it that's useful here.

Regards,
Gowri Kumar



reply via email to

[Prev in Thread] Current Thread [Next in Thread]