Changeset 432


Ignore:
Timestamp:
18.08.2011 14:27:49 (8 years ago)
Author:
marcus
Message:

r226 | walther | 2011-08-18 12:31:16 +0200 (Do, 18. Aug 2011) | 2 Zeilen

minor reformatting and renaming

Location:
SH_SHM/trunk/source
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • SH_SHM/trunk/source/infoidx.h

    r341 r432  
    164164/*------------------------------------------------------------------------*/ 
    165165 
     166MEMBLC get_db_root(); 
     167 
     168/* returns root pointer to MEMBLC in memory 
     169 * 
     170 * no parameters 
     171 */ 
     172 
     173int get_db_crelist( MEMBLC *created ); 
     174 
     175/* returns created list pointer 
     176 * 
     177 * parameters of routine 
     178 * MEMBLC  *created (block info pointer) 
     179 */ 
    166180 
    167181void db_newlist( void ); 
  • SH_SHM/trunk/source/shdataba.c

    r341 r432  
    7474/*------------------------------------------------------------------------*/ 
    7575 
    76 MEMBLC db_root() 
     76MEMBLC get_db_root() 
    7777 
    7878/* returns root pointer to MEMBLC in memory 
    7979 * 
    80  * function is only used in shared lib context, since it's the only way to access statically defined variables 
     80 * function is only used in shared lib context, since it's the only way to  
     81 * access statically defined variables. 
    8182 * 
    8283 * no parameters 
     
    8485{ 
    8586        return root_dbv[0]; 
    86  
    8787} /* end of db_root */ 
    8888 
    8989 
    90 int db_crelist(MEMBLC *created) 
     90int get_db_crelist(MEMBLC *created) 
    9191 
    9292/* returns created list pointer 
    9393 * 
    94  * function is only used in shared lib context, since it's the only way to access statically defined variables 
     94 * function is only used in shared lib context, since it's the only way to  
     95 * access statically defined variables. 
    9596 * 
    9697 * parameters of routine 
     
    9899 */ 
    99100{ 
    100     created = (MEMBLC*)crelist_dbv; 
     101        created = (MEMBLC*)crelist_dbv; 
    101102        return crelistlth_dbv; 
    102  
    103103} /* end of db_crelist */ 
    104104 
     
    114114 * no parameters 
    115115 */ 
    116 {  crelistlth_dbv = 0; 
    117  
     116{ 
     117        crelistlth_dbv = 0; 
    118118} /* end of db_newlist */ 
    119119 
     
    154154 
    155155        /* append to basic list */ 
    156     /* mwa: in fact, the first structure is never used */ 
     156        /* mwa: in fact, the first structure is never used */ 
    157157        if  (root_dbv[0].pm[EPN_NEXT] == NULL)  { 
    158158                p->pm[EPN_NEXT] = NULL; 
     
    170170 
    171171        /* mwa: number of traces is cached in root[0]->im */ 
    172     root_dbv[0].im[LISTCNT]++; 
     172        root_dbv[0].im[LISTCNT]++; 
    173173        if  (crelistlth_dbv == SHC_ILISTLTH)  { 
    174174                *status = SHE_TLOVFL; 
     
    176176        } /*endif*/ 
    177177 
    178     /* mwa: addresses of newly created traces are stored separately */ 
     178        /* mwa: addresses of newly created traces are stored separately */ 
    179179        crelist_dbv[crelistlth_dbv++] = p; 
    180180        return p; 
Note: See TracChangeset for help on using the changeset viewer.