Changeset 436 for libmpc/trunk/libmpcdec
- Timestamp:
- 03/07/09 12:42:23 (16 years ago)
- Location:
- libmpc/trunk/libmpcdec
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
libmpc/trunk/libmpcdec/internal.h
r431 r436 84 84 }; 85 85 86 /** 87 * checks if a block key is valid 88 * @param key the two caracters key to check 89 * @return MPC_STATUS_INVALIDSV if the key is invalid, MPC_STATUS_OK else 90 */ 91 static mpc_inline mpc_status mpc_check_key(char * key) 92 { 93 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90) 94 return MPC_STATUS_INVALIDSV; 95 return MPC_STATUS_OK; 96 } 97 86 98 /// helper functions used by multiple files 87 99 mpc_uint32_t mpc_random_int(mpc_decoder *d); // in synth_filter.c -
libmpc/trunk/libmpcdec/mpc_demux.c
r425 r436 112 112 113 113 return (mpc_uint32_t) -1; 114 }115 116 /**117 * checks if a block key is valid118 * @param key the two caracters key to check119 * @return MPC_STATUS_INVALIDSV if the key is invalid, MPC_STATUS_OK else120 */121 static mpc_inline mpc_status mpc_check_key(char * key)122 {123 if (key[0] < 65 || key[0] > 90 || key[1] < 65 || key[1] > 90)124 return MPC_STATUS_INVALIDSV;125 return MPC_STATUS_OK;126 114 } 127 115
Note: See TracChangeset
for help on using the changeset viewer.