"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "plugins/MidiImport/portsmf/allegro.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

allegro.cpp  (lmms-1.2.0-rc7):allegro.cpp  (lmms-1.2.0-rc8)
skipping to change at line 55 skipping to change at line 55
strcpy(h, s); strcpy(h, s);
return h; return h;
} }
void Alg_atoms::expand() void Alg_atoms::expand()
{ {
maxlen = (maxlen + 5); // extra growth for small sizes maxlen = (maxlen + 5); // extra growth for small sizes
maxlen += (maxlen >> 2); // add 25% maxlen += (maxlen >> 2); // add 25%
char **new_atoms = new Alg_attribute[maxlen]; char **new_atoms = new Alg_attribute[maxlen];
// now do copy // now do copy
memcpy(new_atoms, atoms, len * sizeof(Alg_attribute)); if (atoms) {
if (atoms) delete[] atoms; memcpy(new_atoms, atoms, len * sizeof(Alg_attribute));
delete[] atoms;
}
atoms = new_atoms; atoms = new_atoms;
} }
// insert_new -- insert an attribute name and type // insert_new -- insert an attribute name and type
// //
// attributes are stored as a string consisting of the type // attributes are stored as a string consisting of the type
// (a char) followed by the attribute name. This makes it // (a char) followed by the attribute name. This makes it
// easy to retrieve the type or the name or both. // easy to retrieve the type or the name or both.
// //
Alg_attribute Alg_atoms::insert_new(const char *name, char attr_type) Alg_attribute Alg_atoms::insert_new(const char *name, char attr_type)
 End of changes. 1 change blocks. 
2 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)