emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/oldXMenu/XCrAssoc.c


From: Juanma Barranquero
Subject: [Emacs-diffs] Changes to emacs/oldXMenu/XCrAssoc.c
Date: Tue, 04 Feb 2003 09:19:16 -0500

Index: emacs/oldXMenu/XCrAssoc.c
diff -c emacs/oldXMenu/XCrAssoc.c:1.1 emacs/oldXMenu/XCrAssoc.c:1.2
*** emacs/oldXMenu/XCrAssoc.c:1.1       Sun Oct  3 15:35:17 1999
--- emacs/oldXMenu/XCrAssoc.c   Tue Feb  4 09:19:01 2003
***************
*** 37,50 ****
        register XAssocTable *table;    /* XAssocTable to be initialized. */
        register XAssoc *buckets;       /* Pointer to the first bucket in */
                                        /* the bucket array. */
!       
        /* Malloc the XAssocTable. */
        if ((table = (XAssocTable *)malloc(sizeof(XAssocTable))) == NULL) {
                /* malloc call failed! */
                errno = ENOMEM;
                return(NULL);
        }
!       
        /* calloc the buckets (actually just their headers). */
        buckets = (XAssoc *)calloc((unsigned)size, (unsigned)sizeof(XAssoc));
        if (buckets == NULL) {
--- 37,50 ----
        register XAssocTable *table;    /* XAssocTable to be initialized. */
        register XAssoc *buckets;       /* Pointer to the first bucket in */
                                        /* the bucket array. */
! 
        /* Malloc the XAssocTable. */
        if ((table = (XAssocTable *)malloc(sizeof(XAssocTable))) == NULL) {
                /* malloc call failed! */
                errno = ENOMEM;
                return(NULL);
        }
! 
        /* calloc the buckets (actually just their headers). */
        buckets = (XAssoc *)calloc((unsigned)size, (unsigned)sizeof(XAssoc));
        if (buckets == NULL) {




reply via email to

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