// // This file is generated by fmtgen from "libaegis/cstate.def". // If you want to change the contents of this file // you need to edit libaegis/cstate.def // or you need to enhance fmtgen. // #ifndef LIBAEGIS_CSTATE_H #define LIBAEGIS_CSTATE_H #include #include #include #include #include #include class nstring; // forward #ifndef change_cause_DEF #define change_cause_DEF enum change_cause_ty { change_cause_external_bug, change_cause_external_enhancement, change_cause_external_improvement, change_cause_internal_bug, change_cause_internal_enhancement, change_cause_internal_improvement, change_cause_chain }; #define change_cause_max 7 #endif // change_cause_DEF extern meta_type change_cause_type; void change_cause_write(const output::pointer &fp, const char *name, change_cause_ty value, bool show); void change_cause_write_xml(const output::pointer &fp, const char *name, change_cause_ty value, bool show); const char *change_cause_ename(change_cause_ty); #ifndef file_action_DEF #define file_action_DEF enum file_action_ty { file_action_create, file_action_modify, file_action_remove, file_action_insulate, file_action_transparent }; #define file_action_max 5 #endif // file_action_DEF extern meta_type file_action_type; void file_action_write(const output::pointer &fp, const char *name, file_action_ty value, bool show); void file_action_write_xml(const output::pointer &fp, const char *name, file_action_ty value, bool show); const char *file_action_ename(file_action_ty); #ifndef file_usage_DEF #define file_usage_DEF enum file_usage_ty { file_usage_source, file_usage_config, file_usage_build, file_usage_test, file_usage_manual_test }; #define file_usage_max 5 #endif // file_usage_DEF extern meta_type file_usage_type; void file_usage_write(const output::pointer &fp, const char *name, file_usage_ty value, bool show); void file_usage_write_xml(const output::pointer &fp, const char *name, file_usage_ty value, bool show); const char *file_usage_ename(file_usage_ty); #ifndef metric_DEF #define metric_DEF #define metric_name_mask ((unsigned long)0) #define metric_value_mask ((unsigned long)1 << 0) struct metric_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *name; double value; }; #endif // metric_DEF extern meta_type metric_type; void metric_write(const output::pointer &fp, const char *name, metric_ty *value); void metric_write_xml(const output::pointer &fp, const char *name, metric_ty *value); metric_ty *metric_copy(metric_ty *); metric_ty *metric_clone(metric_ty *); #ifdef DEBUG void metric_trace_real(const char *name, const metric_ty *value); #define metric_trace(x) ((void)(trace_pretest_ && (trace_where_, metric_trace_real(trace_stringize(x), x), 0))) #else #define metric_trace(x) #endif #ifndef metric_list_DEF #define metric_list_DEF struct metric_list_ty { size_t length; size_t maximum; metric_ty **list; }; #endif // metric_list_DEF extern meta_type metric_list_type; metric_list_ty *metric_list_copy(metric_list_ty *); metric_list_ty *metric_list_clone(metric_list_ty *); void metric_list_write(const output::pointer &fp, const char *name, metric_list_ty *value); void metric_list_write_xml(const output::pointer &fp, const char *name, metric_list_ty *value); #ifdef DEBUG void metric_list_trace_real(const char *name, const metric_list_ty *value); #define metric_list_trace(x) ((void)(trace_pretest_ && (trace_where_, metric_list_trace_real(trace_stringize(x), x), 0))) #else #define metric_list_trace(x) #endif #ifndef history_version_encoding_DEF #define history_version_encoding_DEF enum history_version_encoding_ty { history_version_encoding_none, history_version_encoding_quoted_printable, history_version_encoding_base64 }; #define history_version_encoding_max 3 #endif // history_version_encoding_DEF extern meta_type history_version_encoding_type; void history_version_encoding_write(const output::pointer &fp, const char *name, history_version_encoding_ty value, bool show); void history_version_encoding_write_xml(const output::pointer &fp, const char *name, history_version_encoding_ty value, bool show); const char *history_version_encoding_ename(history_version_encoding_ty); #ifndef history_version_DEF #define history_version_DEF #define history_version_revision_mask ((unsigned long)0) #define history_version_encoding_mask ((unsigned long)1 << 0) struct history_version_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *revision; history_version_encoding_ty encoding; }; #endif // history_version_DEF extern meta_type history_version_type; void history_version_write(const output::pointer &fp, const char *name, history_version_ty *value); void history_version_write_xml(const output::pointer &fp, const char *name, history_version_ty *value); history_version_ty *history_version_copy(history_version_ty *); history_version_ty *history_version_clone(history_version_ty *); #ifdef DEBUG void history_version_trace_real(const char *name, const history_version_ty *value); #define history_version_trace(x) ((void)(trace_pretest_ && (trace_where_, history_version_trace_real(trace_stringize(x), x), 0))) #else #define history_version_trace(x) #endif #ifndef attributes_DEF #define attributes_DEF #define attributes_name_mask ((unsigned long)0) #define attributes_value_mask ((unsigned long)0) struct attributes_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *name; string_ty *value; }; #endif // attributes_DEF extern meta_type attributes_type; void attributes_write(const output::pointer &fp, const char *name, attributes_ty *value); void attributes_write_xml(const output::pointer &fp, const char *name, attributes_ty *value); attributes_ty *attributes_copy(attributes_ty *); attributes_ty *attributes_clone(attributes_ty *); #ifdef DEBUG void attributes_trace_real(const char *name, const attributes_ty *value); #define attributes_trace(x) ((void)(trace_pretest_ && (trace_where_, attributes_trace_real(trace_stringize(x), x), 0))) #else #define attributes_trace(x) #endif #ifndef attributes_list_DEF #define attributes_list_DEF struct attributes_list_ty { size_t length; size_t maximum; attributes_ty **list; }; #endif // attributes_list_DEF extern meta_type attributes_list_type; attributes_list_ty *attributes_list_copy(attributes_list_ty *); attributes_list_ty *attributes_list_clone(attributes_list_ty *); void attributes_list_write(const output::pointer &fp, const char *name, attributes_list_ty *value); void attributes_list_write_xml(const output::pointer &fp, const char *name, attributes_list_ty *value); #ifdef DEBUG void attributes_list_trace_real(const char *name, const attributes_list_ty *value); #define attributes_list_trace(x) ((void)(trace_pretest_ && (trace_where_, attributes_list_trace_real(trace_stringize(x), x), 0))) #else #define attributes_list_trace(x) #endif #ifndef cstate_architecture_list_DEF #define cstate_architecture_list_DEF struct cstate_architecture_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // cstate_architecture_list_DEF extern meta_type cstate_architecture_list_type; cstate_architecture_list_ty *cstate_architecture_list_copy(cstate_architecture_list_ty *); cstate_architecture_list_ty *cstate_architecture_list_clone(cstate_architecture_list_ty *); void cstate_architecture_list_write(const output::pointer &fp, const char *name, cstate_architecture_list_ty *value); void cstate_architecture_list_write_xml(const output::pointer &fp, const char *name, cstate_architecture_list_ty *value); #ifdef DEBUG void cstate_architecture_list_trace_real(const char *name, const cstate_architecture_list_ty *value); #define cstate_architecture_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_architecture_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_architecture_list_trace(x) #endif #ifndef cstate_copyright_years_list_DEF #define cstate_copyright_years_list_DEF struct cstate_copyright_years_list_ty { size_t length; size_t maximum; long *list; }; #endif // cstate_copyright_years_list_DEF extern meta_type cstate_copyright_years_list_type; cstate_copyright_years_list_ty *cstate_copyright_years_list_copy(cstate_copyright_years_list_ty *); cstate_copyright_years_list_ty *cstate_copyright_years_list_clone(cstate_copyright_years_list_ty *); void cstate_copyright_years_list_write(const output::pointer &fp, const char *name, cstate_copyright_years_list_ty *value); void cstate_copyright_years_list_write_xml(const output::pointer &fp, const char *name, cstate_copyright_years_list_ty *value); #ifdef DEBUG void cstate_copyright_years_list_trace_real(const char *name, const cstate_copyright_years_list_ty *value); #define cstate_copyright_years_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_copyright_years_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_copyright_years_list_trace(x) #endif #ifndef cstate_state_DEF #define cstate_state_DEF enum cstate_state_ty { cstate_state_awaiting_development, cstate_state_being_developed, cstate_state_awaiting_review, cstate_state_being_reviewed, cstate_state_awaiting_integration, cstate_state_being_integrated, cstate_state_completed }; #define cstate_state_max 7 #endif // cstate_state_DEF extern meta_type cstate_state_type; void cstate_state_write(const output::pointer &fp, const char *name, cstate_state_ty value, bool show); void cstate_state_write_xml(const output::pointer &fp, const char *name, cstate_state_ty value, bool show); const char *cstate_state_ename(cstate_state_ty); #ifndef cstate_architecture_times_DEF #define cstate_architecture_times_DEF #define cstate_architecture_times_variant_mask ((unsigned long)0) #define cstate_architecture_times_node_mask ((unsigned long)0) #define cstate_architecture_times_build_time_mask ((unsigned long)1 << 0) #define cstate_architecture_times_test_time_mask ((unsigned long)1 << 1) #define cstate_architecture_times_test_baseline_time_mask ((unsigned long)1 << 2) #define cstate_architecture_times_regression_test_time_mask ((unsigned long)1 << 3) struct cstate_architecture_times_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *variant; string_ty *node; time_t build_time; time_t test_time; time_t test_baseline_time; time_t regression_test_time; }; #endif // cstate_architecture_times_DEF extern meta_type cstate_architecture_times_type; void cstate_architecture_times_write(const output::pointer &fp, const char *name, cstate_architecture_times_ty *value); void cstate_architecture_times_write_xml(const output::pointer &fp, const char *name, cstate_architecture_times_ty *value); cstate_architecture_times_ty *cstate_architecture_times_copy(cstate_architecture_times_ty *); cstate_architecture_times_ty *cstate_architecture_times_clone(cstate_architecture_times_ty *); #ifdef DEBUG void cstate_architecture_times_trace_real(const char *name, const cstate_architecture_times_ty *value); #define cstate_architecture_times_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_architecture_times_trace_real(trace_stringize(x), x), 0))) #else #define cstate_architecture_times_trace(x) #endif #ifndef cstate_architecture_times_list_DEF #define cstate_architecture_times_list_DEF struct cstate_architecture_times_list_ty { size_t length; size_t maximum; cstate_architecture_times_ty **list; }; #endif // cstate_architecture_times_list_DEF extern meta_type cstate_architecture_times_list_type; cstate_architecture_times_list_ty *cstate_architecture_times_list_copy(cstate_architecture_times_list_ty *); cstate_architecture_times_list_ty *cstate_architecture_times_list_clone(cstate_architecture_times_list_ty *); void cstate_architecture_times_list_write(const output::pointer &fp, const char *name, cstate_architecture_times_list_ty *value); void cstate_architecture_times_list_write_xml(const output::pointer &fp, const char *name, cstate_architecture_times_list_ty *value); #ifdef DEBUG void cstate_architecture_times_list_trace_real(const char *name, const cstate_architecture_times_list_ty *value); #define cstate_architecture_times_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_architecture_times_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_architecture_times_list_trace(x) #endif #ifndef cstate_history_what_DEF #define cstate_history_what_DEF enum cstate_history_what_ty { cstate_history_what_new_change, cstate_history_what_develop_begin, cstate_history_what_develop_begin_undo, cstate_history_what_develop_end, cstate_history_what_develop_end_2ar, cstate_history_what_develop_end_2ai, cstate_history_what_develop_end_undo, cstate_history_what_review_begin, cstate_history_what_review_begin_undo, cstate_history_what_review_pass, cstate_history_what_review_pass_2ar, cstate_history_what_review_pass_2br, cstate_history_what_review_pass_undo, cstate_history_what_review_pass_undo_2ar, cstate_history_what_review_fail, cstate_history_what_integrate_begin, cstate_history_what_integrate_begin_undo, cstate_history_what_integrate_pass, cstate_history_what_integrate_fail }; #define cstate_history_what_max 19 #endif // cstate_history_what_DEF extern meta_type cstate_history_what_type; void cstate_history_what_write(const output::pointer &fp, const char *name, cstate_history_what_ty value, bool show); void cstate_history_what_write_xml(const output::pointer &fp, const char *name, cstate_history_what_ty value, bool show); const char *cstate_history_what_ename(cstate_history_what_ty); #ifndef cstate_history_DEF #define cstate_history_DEF #define cstate_history_when_mask ((unsigned long)1 << 0) #define cstate_history_what_mask ((unsigned long)1 << 1) #define cstate_history_who_mask ((unsigned long)0) #define cstate_history_why_mask ((unsigned long)0) struct cstate_history_ty { long reference_count; unsigned long mask; string_ty *errpos; time_t when; cstate_history_what_ty what; string_ty *who; string_ty *why; }; #endif // cstate_history_DEF extern meta_type cstate_history_type; void cstate_history_write(const output::pointer &fp, const char *name, cstate_history_ty *value); void cstate_history_write_xml(const output::pointer &fp, const char *name, cstate_history_ty *value); cstate_history_ty *cstate_history_copy(cstate_history_ty *); cstate_history_ty *cstate_history_clone(cstate_history_ty *); #ifdef DEBUG void cstate_history_trace_real(const char *name, const cstate_history_ty *value); #define cstate_history_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_history_trace_real(trace_stringize(x), x), 0))) #else #define cstate_history_trace(x) #endif #ifndef cstate_history_list_DEF #define cstate_history_list_DEF struct cstate_history_list_ty { size_t length; size_t maximum; cstate_history_ty **list; }; #endif // cstate_history_list_DEF extern meta_type cstate_history_list_type; cstate_history_list_ty *cstate_history_list_copy(cstate_history_list_ty *); cstate_history_list_ty *cstate_history_list_clone(cstate_history_list_ty *); void cstate_history_list_write(const output::pointer &fp, const char *name, cstate_history_list_ty *value); void cstate_history_list_write_xml(const output::pointer &fp, const char *name, cstate_history_list_ty *value); #ifdef DEBUG void cstate_history_list_trace_real(const char *name, const cstate_history_list_ty *value); #define cstate_history_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_history_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_history_list_trace(x) #endif #ifndef cstate_branch_develop_end_action_DEF #define cstate_branch_develop_end_action_DEF enum cstate_branch_develop_end_action_ty { cstate_branch_develop_end_action_goto_being_reviewed, cstate_branch_develop_end_action_goto_awaiting_review, cstate_branch_develop_end_action_goto_awaiting_integration }; #define cstate_branch_develop_end_action_max 3 #endif // cstate_branch_develop_end_action_DEF extern meta_type cstate_branch_develop_end_action_type; void cstate_branch_develop_end_action_write(const output::pointer &fp, const char *name, cstate_branch_develop_end_action_ty value, bool show); void cstate_branch_develop_end_action_write_xml(const output::pointer &fp, const char *name, cstate_branch_develop_end_action_ty value, bool show); const char *cstate_branch_develop_end_action_ename(cstate_branch_develop_end_action_ty); #ifndef cstate_branch_history_name_list_DEF #define cstate_branch_history_name_list_DEF struct cstate_branch_history_name_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // cstate_branch_history_name_list_DEF extern meta_type cstate_branch_history_name_list_type; cstate_branch_history_name_list_ty *cstate_branch_history_name_list_copy(cstate_branch_history_name_list_ty *); cstate_branch_history_name_list_ty *cstate_branch_history_name_list_clone(cstate_branch_history_name_list_ty *); void cstate_branch_history_name_list_write(const output::pointer &fp, const char *name, cstate_branch_history_name_list_ty *value); void cstate_branch_history_name_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_name_list_ty *value); #ifdef DEBUG void cstate_branch_history_name_list_trace_real(const char *name, const cstate_branch_history_name_list_ty *value); #define cstate_branch_history_name_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_history_name_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_history_name_list_trace(x) #endif #ifndef cstate_branch_history_DEF #define cstate_branch_history_DEF #define cstate_branch_history_delta_number_mask ((unsigned long)1 << 0) #define cstate_branch_history_change_number_mask ((unsigned long)1 << 1) #define cstate_branch_history_name_mask ((unsigned long)0) struct cstate_branch_history_ty { long reference_count; unsigned long mask; string_ty *errpos; long delta_number; long change_number; cstate_branch_history_name_list_ty *name; }; #endif // cstate_branch_history_DEF extern meta_type cstate_branch_history_type; void cstate_branch_history_write(const output::pointer &fp, const char *name, cstate_branch_history_ty *value); void cstate_branch_history_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_ty *value); cstate_branch_history_ty *cstate_branch_history_copy(cstate_branch_history_ty *); cstate_branch_history_ty *cstate_branch_history_clone(cstate_branch_history_ty *); #ifdef DEBUG void cstate_branch_history_trace_real(const char *name, const cstate_branch_history_ty *value); #define cstate_branch_history_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_history_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_history_trace(x) #endif #ifndef cstate_branch_history_list_DEF #define cstate_branch_history_list_DEF struct cstate_branch_history_list_ty { size_t length; size_t maximum; cstate_branch_history_ty **list; }; #endif // cstate_branch_history_list_DEF extern meta_type cstate_branch_history_list_type; cstate_branch_history_list_ty *cstate_branch_history_list_copy(cstate_branch_history_list_ty *); cstate_branch_history_list_ty *cstate_branch_history_list_clone(cstate_branch_history_list_ty *); void cstate_branch_history_list_write(const output::pointer &fp, const char *name, cstate_branch_history_list_ty *value); void cstate_branch_history_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_history_list_ty *value); #ifdef DEBUG void cstate_branch_history_list_trace_real(const char *name, const cstate_branch_history_list_ty *value); #define cstate_branch_history_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_history_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_history_list_trace(x) #endif #ifndef cstate_branch_change_list_DEF #define cstate_branch_change_list_DEF struct cstate_branch_change_list_ty { size_t length; size_t maximum; long *list; }; #endif // cstate_branch_change_list_DEF extern meta_type cstate_branch_change_list_type; cstate_branch_change_list_ty *cstate_branch_change_list_copy(cstate_branch_change_list_ty *); cstate_branch_change_list_ty *cstate_branch_change_list_clone(cstate_branch_change_list_ty *); void cstate_branch_change_list_write(const output::pointer &fp, const char *name, cstate_branch_change_list_ty *value); void cstate_branch_change_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_change_list_ty *value); #ifdef DEBUG void cstate_branch_change_list_trace_real(const char *name, const cstate_branch_change_list_ty *value); #define cstate_branch_change_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_change_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_change_list_trace(x) #endif #ifndef cstate_branch_sub_branch_list_DEF #define cstate_branch_sub_branch_list_DEF struct cstate_branch_sub_branch_list_ty { size_t length; size_t maximum; long *list; }; #endif // cstate_branch_sub_branch_list_DEF extern meta_type cstate_branch_sub_branch_list_type; cstate_branch_sub_branch_list_ty *cstate_branch_sub_branch_list_copy(cstate_branch_sub_branch_list_ty *); cstate_branch_sub_branch_list_ty *cstate_branch_sub_branch_list_clone(cstate_branch_sub_branch_list_ty *); void cstate_branch_sub_branch_list_write(const output::pointer &fp, const char *name, cstate_branch_sub_branch_list_ty *value); void cstate_branch_sub_branch_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_sub_branch_list_ty *value); #ifdef DEBUG void cstate_branch_sub_branch_list_trace_real(const char *name, const cstate_branch_sub_branch_list_ty *value); #define cstate_branch_sub_branch_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_sub_branch_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_sub_branch_list_trace(x) #endif #ifndef cstate_branch_administrator_list_DEF #define cstate_branch_administrator_list_DEF struct cstate_branch_administrator_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // cstate_branch_administrator_list_DEF extern meta_type cstate_branch_administrator_list_type; cstate_branch_administrator_list_ty *cstate_branch_administrator_list_copy(cstate_branch_administrator_list_ty *); cstate_branch_administrator_list_ty *cstate_branch_administrator_list_clone(cstate_branch_administrator_list_ty *); void cstate_branch_administrator_list_write(const output::pointer &fp, const char *name, cstate_branch_administrator_list_ty *value); void cstate_branch_administrator_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_administrator_list_ty *value); #ifdef DEBUG void cstate_branch_administrator_list_trace_real(const char *name, const cstate_branch_administrator_list_ty *value); #define cstate_branch_administrator_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_administrator_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_administrator_list_trace(x) #endif #ifndef cstate_branch_developer_list_DEF #define cstate_branch_developer_list_DEF struct cstate_branch_developer_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // cstate_branch_developer_list_DEF extern meta_type cstate_branch_developer_list_type; cstate_branch_developer_list_ty *cstate_branch_developer_list_copy(cstate_branch_developer_list_ty *); cstate_branch_developer_list_ty *cstate_branch_developer_list_clone(cstate_branch_developer_list_ty *); void cstate_branch_developer_list_write(const output::pointer &fp, const char *name, cstate_branch_developer_list_ty *value); void cstate_branch_developer_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_developer_list_ty *value); #ifdef DEBUG void cstate_branch_developer_list_trace_real(const char *name, const cstate_branch_developer_list_ty *value); #define cstate_branch_developer_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_developer_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_developer_list_trace(x) #endif #ifndef cstate_branch_reviewer_list_DEF #define cstate_branch_reviewer_list_DEF struct cstate_branch_reviewer_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // cstate_branch_reviewer_list_DEF extern meta_type cstate_branch_reviewer_list_type; cstate_branch_reviewer_list_ty *cstate_branch_reviewer_list_copy(cstate_branch_reviewer_list_ty *); cstate_branch_reviewer_list_ty *cstate_branch_reviewer_list_clone(cstate_branch_reviewer_list_ty *); void cstate_branch_reviewer_list_write(const output::pointer &fp, const char *name, cstate_branch_reviewer_list_ty *value); void cstate_branch_reviewer_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_reviewer_list_ty *value); #ifdef DEBUG void cstate_branch_reviewer_list_trace_real(const char *name, const cstate_branch_reviewer_list_ty *value); #define cstate_branch_reviewer_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_reviewer_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_reviewer_list_trace(x) #endif #ifndef cstate_branch_integrator_list_DEF #define cstate_branch_integrator_list_DEF struct cstate_branch_integrator_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // cstate_branch_integrator_list_DEF extern meta_type cstate_branch_integrator_list_type; cstate_branch_integrator_list_ty *cstate_branch_integrator_list_copy(cstate_branch_integrator_list_ty *); cstate_branch_integrator_list_ty *cstate_branch_integrator_list_clone(cstate_branch_integrator_list_ty *); void cstate_branch_integrator_list_write(const output::pointer &fp, const char *name, cstate_branch_integrator_list_ty *value); void cstate_branch_integrator_list_write_xml(const output::pointer &fp, const char *name, cstate_branch_integrator_list_ty *value); #ifdef DEBUG void cstate_branch_integrator_list_trace_real(const char *name, const cstate_branch_integrator_list_ty *value); #define cstate_branch_integrator_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_integrator_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_integrator_list_trace(x) #endif #ifndef cstate_branch_DEF #define cstate_branch_DEF #define cstate_branch_umask_mask ((unsigned long)1 << 0) #define cstate_branch_developer_may_review_mask ((unsigned long)1 << 1) #define cstate_branch_developer_may_integrate_mask ((unsigned long)1 << 2) #define cstate_branch_reviewer_may_integrate_mask ((unsigned long)1 << 3) #define cstate_branch_developers_may_create_changes_mask ((unsigned long)1 << 4) #define cstate_branch_forced_develop_begin_notify_command_mask ((unsigned long)0) #define cstate_branch_develop_end_notify_command_mask ((unsigned long)0) #define cstate_branch_develop_end_undo_notify_command_mask ((unsigned long)0) #define cstate_branch_review_begin_notify_command_mask ((unsigned long)0) #define cstate_branch_review_begin_undo_notify_command_mask ((unsigned long)0) #define cstate_branch_review_pass_notify_command_mask ((unsigned long)0) #define cstate_branch_review_pass_undo_notify_command_mask ((unsigned long)0) #define cstate_branch_review_fail_notify_command_mask ((unsigned long)0) #define cstate_branch_integrate_pass_notify_command_mask ((unsigned long)0) #define cstate_branch_integrate_fail_notify_command_mask ((unsigned long)0) #define cstate_branch_default_test_exemption_mask ((unsigned long)1 << 5) #define cstate_branch_default_test_regression_exemption_mask ((unsigned long)1 << 6) #define cstate_branch_skip_unlucky_mask ((unsigned long)1 << 7) #define cstate_branch_compress_database_mask ((unsigned long)1 << 8) #define cstate_branch_develop_end_action_mask ((unsigned long)1 << 9) #define cstate_branch_history_mask ((unsigned long)0) #define cstate_branch_change_mask ((unsigned long)0) #define cstate_branch_sub_branch_mask ((unsigned long)0) #define cstate_branch_administrator_mask ((unsigned long)0) #define cstate_branch_developer_mask ((unsigned long)0) #define cstate_branch_reviewer_mask ((unsigned long)0) #define cstate_branch_integrator_mask ((unsigned long)0) #define cstate_branch_currently_integrating_change_mask ((unsigned long)1 << 10) #define cstate_branch_default_development_directory_mask ((unsigned long)0) #define cstate_branch_minimum_change_number_mask ((unsigned long)1 << 11) #define cstate_branch_reuse_change_numbers_mask ((unsigned long)1 << 12) #define cstate_branch_minimum_branch_number_mask ((unsigned long)1 << 13) #define cstate_branch_protect_development_directory_mask ((unsigned long)1 << 14) struct cstate_branch_ty { long reference_count; unsigned long mask; string_ty *errpos; long umask; bool developer_may_review; bool developer_may_integrate; bool reviewer_may_integrate; bool developers_may_create_changes; string_ty *forced_develop_begin_notify_command; string_ty *develop_end_notify_command; string_ty *develop_end_undo_notify_command; string_ty *review_begin_notify_command; string_ty *review_begin_undo_notify_command; string_ty *review_pass_notify_command; string_ty *review_pass_undo_notify_command; string_ty *review_fail_notify_command; string_ty *integrate_pass_notify_command; string_ty *integrate_fail_notify_command; bool default_test_exemption; bool default_test_regression_exemption; bool skip_unlucky; bool compress_database; cstate_branch_develop_end_action_ty develop_end_action; cstate_branch_history_list_ty *history; cstate_branch_change_list_ty *change; cstate_branch_sub_branch_list_ty *sub_branch; cstate_branch_administrator_list_ty *administrator; cstate_branch_developer_list_ty *developer; cstate_branch_reviewer_list_ty *reviewer; cstate_branch_integrator_list_ty *integrator; long currently_integrating_change; string_ty *default_development_directory; long minimum_change_number; bool reuse_change_numbers; long minimum_branch_number; bool protect_development_directory; }; #endif // cstate_branch_DEF extern meta_type cstate_branch_type; void cstate_branch_write(const output::pointer &fp, const char *name, cstate_branch_ty *value); void cstate_branch_write_xml(const output::pointer &fp, const char *name, cstate_branch_ty *value); cstate_branch_ty *cstate_branch_copy(cstate_branch_ty *); cstate_branch_ty *cstate_branch_clone(cstate_branch_ty *); #ifdef DEBUG void cstate_branch_trace_real(const char *name, const cstate_branch_ty *value); #define cstate_branch_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_branch_trace_real(trace_stringize(x), x), 0))) #else #define cstate_branch_trace(x) #endif #ifndef cstate_src_DEF #define cstate_src_DEF #define cstate_src_file_name_mask ((unsigned long)0) #define cstate_src_uuid_mask ((unsigned long)0) #define cstate_src_action_mask ((unsigned long)1 << 0) #define cstate_src_edit_number_mask ((unsigned long)0) #define cstate_src_usage_mask ((unsigned long)1 << 1) #define cstate_src_diff_time_mask ((unsigned long)1 << 2) #define cstate_src_diff_file_time_mask ((unsigned long)1 << 3) #define cstate_src_move_mask ((unsigned long)0) #define cstate_src_executable_mask ((unsigned long)1 << 4) #define cstate_src_attribute_mask ((unsigned long)0) struct cstate_src_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *file_name; string_ty *uuid; file_action_ty action; string_ty *edit_number; file_usage_ty usage; time_t diff_time; time_t diff_file_time; string_ty *move; bool executable; attributes_list_ty *attribute; }; #endif // cstate_src_DEF extern meta_type cstate_src_type; void cstate_src_write(const output::pointer &fp, const char *name, cstate_src_ty *value); void cstate_src_write_xml(const output::pointer &fp, const char *name, cstate_src_ty *value); cstate_src_ty *cstate_src_copy(cstate_src_ty *); cstate_src_ty *cstate_src_clone(cstate_src_ty *); #ifdef DEBUG void cstate_src_trace_real(const char *name, const cstate_src_ty *value); #define cstate_src_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_src_trace_real(trace_stringize(x), x), 0))) #else #define cstate_src_trace(x) #endif #ifndef cstate_src_list_DEF #define cstate_src_list_DEF struct cstate_src_list_ty { size_t length; size_t maximum; cstate_src_ty **list; }; #endif // cstate_src_list_DEF extern meta_type cstate_src_list_type; cstate_src_list_ty *cstate_src_list_copy(cstate_src_list_ty *); cstate_src_list_ty *cstate_src_list_clone(cstate_src_list_ty *); void cstate_src_list_write(const output::pointer &fp, const char *name, cstate_src_list_ty *value); void cstate_src_list_write_xml(const output::pointer &fp, const char *name, cstate_src_list_ty *value); #ifdef DEBUG void cstate_src_list_trace_real(const char *name, const cstate_src_list_ty *value); #define cstate_src_list_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_src_list_trace_real(trace_stringize(x), x), 0))) #else #define cstate_src_list_trace(x) #endif #ifndef cstate_DEF #define cstate_DEF #define cstate_brief_description_mask ((unsigned long)0) #define cstate_description_mask ((unsigned long)0) #define cstate_cause_mask ((unsigned long)1 << 0) #define cstate_test_exempt_mask ((unsigned long)1 << 1) #define cstate_test_baseline_exempt_mask ((unsigned long)1 << 2) #define cstate_regression_test_exempt_mask ((unsigned long)1 << 3) #define cstate_architecture_mask ((unsigned long)0) #define cstate_copyright_years_mask ((unsigned long)0) #define cstate_version_previous_mask ((unsigned long)0) #define cstate_attribute_mask ((unsigned long)0) #define cstate_state_mask ((unsigned long)1 << 4) #define cstate_given_test_exemption_mask ((unsigned long)1 << 5) #define cstate_given_regression_test_exemption_mask ((unsigned long)1 << 6) #define cstate_delta_number_mask ((unsigned long)1 << 7) #define cstate_delta_uuid_mask ((unsigned long)0) #define cstate_minimum_integration_mask ((unsigned long)1 << 8) #define cstate_project_file_command_sync_mask ((unsigned long)1 << 9) #define cstate_build_time_mask ((unsigned long)1 << 10) #define cstate_test_time_mask ((unsigned long)1 << 11) #define cstate_test_baseline_time_mask ((unsigned long)1 << 12) #define cstate_regression_test_time_mask ((unsigned long)1 << 13) #define cstate_architecture_times_mask ((unsigned long)0) #define cstate_development_directory_mask ((unsigned long)0) #define cstate_integration_directory_mask ((unsigned long)0) #define cstate_history_mask ((unsigned long)0) #define cstate_uuid_mask ((unsigned long)0) #define cstate_branch_mask ((unsigned long)0) #define cstate_src_mask ((unsigned long)0) struct cstate_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *brief_description; string_ty *description; change_cause_ty cause; bool test_exempt; bool test_baseline_exempt; bool regression_test_exempt; cstate_architecture_list_ty *architecture; cstate_copyright_years_list_ty *copyright_years; string_ty *version_previous; attributes_list_ty *attribute; cstate_state_ty state; bool given_test_exemption; bool given_regression_test_exemption; long delta_number; string_ty *delta_uuid; bool minimum_integration; long project_file_command_sync; time_t build_time; time_t test_time; time_t test_baseline_time; time_t regression_test_time; cstate_architecture_times_list_ty *architecture_times; string_ty *development_directory; string_ty *integration_directory; cstate_history_list_ty *history; string_ty *uuid; cstate_branch_ty *branch; cstate_src_list_ty *src; }; #endif // cstate_DEF extern meta_type cstate_type; void cstate_write(const output::pointer &fp, cstate_ty *value); void cstate_write_xml(const output::pointer &fp, cstate_ty *value); cstate_ty *cstate_copy(cstate_ty *); cstate_ty *cstate_clone(cstate_ty *); #ifdef DEBUG void cstate_trace_real(const char *name, const cstate_ty *value); #define cstate_trace(x) ((void)(trace_pretest_ && (trace_where_, cstate_trace_real(trace_stringize(x), x), 0))) #else #define cstate_trace(x) #endif /** * The cstate_write_file function is used to * write cstate meta data to the named file. * * @param filename * The name of the file to be written. * @param value * The value of the meta-data to be written. * @param comp * true (non-zero) if data should be compressed. * @note * If any errors are encountered, this * function will not return. All errors * will print a fatal error message, and * exit with an exit status of 1. */ void cstate_write_file(string_ty *filename, cstate_ty *value, int comp); /** * The cstate_write_file function is used to * write cstate meta data to the named file. * * @param filnam * The name of the file to be written. * @param value * The value of the meta-data to be written. * @param comp * true if data should be compressed. * @note * If any errors are encountered, this * function will not return. All errors * will print a fatal error message, and * exit with an exit status of 1. */ void cstate_write_file(const nstring &filnam, cstate_ty *value, bool comp); /** * The cstate_read_file function is used to * read cstate meta data from the named file. * * @param filename * The name of the file to be read. * @returns * a pointer to a dynamically allocated * value read from the file. * @note * If any errors are encountered, this * function will not return. All errors * (including syntax errors) will print a * fatal error message, and exit with an * exit status of 1. */ cstate_ty *cstate_read_file(string_ty *filename); /** * The cstate_read_file function is used to * read cstate meta data from the named file. * * @param filename * The name of the file to be read. * @returns * a pointer to a dynamically allocated * value read from the file. * @note * If any errors are encountered, this * function will not return. All errors * (including syntax errors) will print a * fatal error message, and exit with an * exit status of 1. */ cstate_ty *cstate_read_file(const nstring &filename); void cstate__rpt_init(void); #endif // LIBAEGIS_CSTATE_H