Changeset 432
- Timestamp:
- 08/18/2011 02:27:49 PM (11 years ago)
- Location:
- SH_SHM/trunk/source
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
SH_SHM/trunk/source/infoidx.h
r341 r432 164 164 /*------------------------------------------------------------------------*/ 165 165 166 MEMBLC get_db_root(); 167 168 /* returns root pointer to MEMBLC in memory 169 * 170 * no parameters 171 */ 172 173 int get_db_crelist( MEMBLC *created ); 174 175 /* returns created list pointer 176 * 177 * parameters of routine 178 * MEMBLC *created (block info pointer) 179 */ 166 180 167 181 void db_newlist( void ); -
SH_SHM/trunk/source/shdataba.c
r341 r432 74 74 /*------------------------------------------------------------------------*/ 75 75 76 MEMBLC db_root()76 MEMBLC get_db_root() 77 77 78 78 /* returns root pointer to MEMBLC in memory 79 79 * 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. 81 82 * 82 83 * no parameters … … 84 85 { 85 86 return root_dbv[0]; 86 87 87 } /* end of db_root */ 88 88 89 89 90 int db_crelist(MEMBLC *created)90 int get_db_crelist(MEMBLC *created) 91 91 92 92 /* returns created list pointer 93 93 * 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. 95 96 * 96 97 * parameters of routine … … 98 99 */ 99 100 { 100 101 created = (MEMBLC*)crelist_dbv; 101 102 return crelistlth_dbv; 102 103 103 } /* end of db_crelist */ 104 104 … … 114 114 * no parameters 115 115 */ 116 { crelistlth_dbv = 0;117 116 { 117 crelistlth_dbv = 0; 118 118 } /* end of db_newlist */ 119 119 … … 154 154 155 155 /* append to basic list */ 156 156 /* mwa: in fact, the first structure is never used */ 157 157 if (root_dbv[0].pm[EPN_NEXT] == NULL) { 158 158 p->pm[EPN_NEXT] = NULL; … … 170 170 171 171 /* mwa: number of traces is cached in root[0]->im */ 172 172 root_dbv[0].im[LISTCNT]++; 173 173 if (crelistlth_dbv == SHC_ILISTLTH) { 174 174 *status = SHE_TLOVFL; … … 176 176 } /*endif*/ 177 177 178 178 /* mwa: addresses of newly created traces are stored separately */ 179 179 crelist_dbv[crelistlth_dbv++] = p; 180 180 return p;
Note: See TracChangeset
for help on using the changeset viewer.