Move 2.6x versioning code to own file

Summary:
Makes readfile.c more clear and easier to navigate in.
We would need to do such a move when we'll do 2.70 bump
anyway. So better be prepared.

In fact, as soon 2.70 bumo is done i would think we'd
better create versioning_270 file and do version code
there. Otherwise readfile.c will grow up dramatically
again.

Reviewers: brecht, campbellbarton

Reviewed By: brecht

Differential Revision: http://developer.blender.org/D60
This commit is contained in:
Sergey Sharybin 2013-11-29 23:16:13 +06:00
parent cedc90b607
commit 0d24c6f0d0
4 changed files with 2551 additions and 2456 deletions

View File

@ -46,6 +46,7 @@ set(SRC
intern/runtime.c
intern/undofile.c
intern/versioning_250.c
intern/versioning_260.c
intern/versioning_defaults.c
intern/versioning_legacy.c
intern/writefile.c

File diff suppressed because it is too large Load Diff

View File

@ -34,6 +34,7 @@
#define __READFILE_H__
#include "zlib.h"
#include "DNA_windowmanager_types.h" /* for ReportType */
struct OldNewMap;
struct MemFile;
@ -43,6 +44,7 @@ struct Object;
struct PartEff;
struct View3D;
struct bNodeTree;
struct Key;
typedef struct FileData {
// linked list of BHeadN's
@ -145,6 +147,8 @@ char *bhead_id_name(FileData *fd, BHead *bhead);
/* do versions stuff */
void blo_reportf_wrap(struct ReportList *reports, ReportType type, const char *format, ...) ATTR_PRINTF_FORMAT(3, 4);
void blo_do_versions_oldnewmap_insert(struct OldNewMap *onm, void *oldaddr, void *newaddr, int nr);
void *blo_do_versions_newlibadr(struct FileData *fd, void *lib, void *adr);
void *blo_do_versions_newlibadr_us(struct FileData *fd, void *lib, void *adr);
@ -152,9 +156,11 @@ void *blo_do_versions_newlibadr_us(struct FileData *fd, void *lib, void *adr);
struct PartEff *blo_do_version_give_parteff_245(struct Object *ob);
void blo_do_version_old_trackto_to_constraints(struct Object *ob);
void blo_do_versions_view3d_split_250(struct View3D *v3d, struct ListBase *regions);
void blo_do_versions_key_uidgen(struct Key *key);
void blo_do_versions_pre250(struct FileData *fd, struct Library *lib, struct Main *main);
void blo_do_versions_250(struct FileData *fd, struct Library *lib, struct Main *main);
void blo_do_versions_260(struct FileData *fd, struct Library *lib, struct Main *main);
#endif

File diff suppressed because it is too large Load Diff