OpenCores
URL https://opencores.org/ocsvn/raptor64/raptor64/trunk

Subversion Repositories raptor64

[/] [raptor64/] [trunk/] [software/] [c64/] [source/] [MemoryManagement.c] - Diff between revs 37 and 51

Show entire file | Details | Blame | View Log

Rev 37 Rev 51
Line 122... Line 122...
{
{
        struct blk      *bp1, *bp2;
        struct blk      *bp1, *bp2;
    int             blkcnt;
    int             blkcnt;
    bp1 = glbblk;
    bp1 = glbblk;
    blkcnt = 0;
    blkcnt = 0;
    while( bp1 != 0 ) {
    while( bp1 != NULL ) {
        bp2 = bp1->next;
        bp2 = bp1->next;
        free(bp1);
        free(bp1);
        ++blkcnt;
        ++blkcnt;
        bp1 = bp2;
        bp1 = bp2;
    }
    }
Line 134... Line 134...
    glbsize = 0;
    glbsize = 0;
//    gsyms.head = NULL;         /* clear global symbol table */
//    gsyms.head = NULL;         /* clear global symbol table */
//      gsyms.tail = NULL;
//      gsyms.tail = NULL;
        memset(gsyms,0,sizeof(gsyms));
        memset(gsyms,0,sizeof(gsyms));
    printf(" releasing %d bytes global tables.\n",blkcnt * BLKSIZE);
    printf(" releasing %d bytes global tables.\n",blkcnt * BLKSIZE);
    strtab = 0;             /* clear literal table */
    strtab = NULL;             /* clear literal table */
}
}
 
 
SYM *allocSYM() { return (SYM *)xalloc(sizeof(SYM)); };
SYM *allocSYM() { return (SYM *)xalloc(sizeof(SYM)); };
TYP *allocTYP() { return (TYP *)xalloc(sizeof(TYP)); };
TYP *allocTYP() { return (TYP *)xalloc(sizeof(TYP)); };
struct snode *allocSnode() { return (struct snode *)xalloc(sizeof(struct snode)); };
struct snode *allocSnode() { return (struct snode *)xalloc(sizeof(struct snode)); };

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.