// // This file is generated by fmtgen from "libaegis/pconf.def". // If you want to change the contents of this file // you need to edit libaegis/pconf.def // or you need to enhance fmtgen. // #ifndef LIBAEGIS_PCONF_H #define LIBAEGIS_PCONF_H #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 work_area_style_DEF #define work_area_style_DEF #define work_area_style_source_file_link_mask ((unsigned long)1 << 0) #define work_area_style_source_file_symlink_mask ((unsigned long)1 << 1) #define work_area_style_source_file_copy_mask ((unsigned long)1 << 2) #define work_area_style_source_file_whiteout_mask ((unsigned long)1 << 3) #define work_area_style_derived_file_link_mask ((unsigned long)1 << 4) #define work_area_style_derived_file_symlink_mask ((unsigned long)1 << 5) #define work_area_style_derived_file_copy_mask ((unsigned long)1 << 6) #define work_area_style_during_build_only_mask ((unsigned long)1 << 7) #define work_area_style_derived_at_start_only_mask ((unsigned long)1 << 8) struct work_area_style_ty { long reference_count; unsigned long mask; string_ty *errpos; bool source_file_link; bool source_file_symlink; bool source_file_copy; bool source_file_whiteout; bool derived_file_link; bool derived_file_symlink; bool derived_file_copy; bool during_build_only; bool derived_at_start_only; }; #endif // work_area_style_DEF extern meta_type work_area_style_type; void work_area_style_write(const output::pointer &fp, const char *name, work_area_style_ty *value); void work_area_style_write_xml(const output::pointer &fp, const char *name, work_area_style_ty *value); work_area_style_ty *work_area_style_copy(work_area_style_ty *); work_area_style_ty *work_area_style_clone(work_area_style_ty *); #ifdef DEBUG void work_area_style_trace_real(const char *name, const work_area_style_ty *value); #define work_area_style_trace(x) ((void)(trace_pretest_ && (trace_where_, work_area_style_trace_real(trace_stringize(x), x), 0))) #else #define work_area_style_trace(x) #endif #ifndef pconf_integrate_begin_exceptions_list_DEF #define pconf_integrate_begin_exceptions_list_DEF struct pconf_integrate_begin_exceptions_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_integrate_begin_exceptions_list_DEF extern meta_type pconf_integrate_begin_exceptions_list_type; pconf_integrate_begin_exceptions_list_ty *pconf_integrate_begin_exceptions_list_copy(pconf_integrate_begin_exceptions_list_ty *); pconf_integrate_begin_exceptions_list_ty *pconf_integrate_begin_exceptions_list_clone(pconf_integrate_begin_exceptions_list_ty *); void pconf_integrate_begin_exceptions_list_write(const output::pointer &fp, const char *name, pconf_integrate_begin_exceptions_list_ty *value); void pconf_integrate_begin_exceptions_list_write_xml(const output::pointer &fp, const char *name, pconf_integrate_begin_exceptions_list_ty *value); #ifdef DEBUG void pconf_integrate_begin_exceptions_list_trace_real(const char *name, const pconf_integrate_begin_exceptions_list_ty *value); #define pconf_integrate_begin_exceptions_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_integrate_begin_exceptions_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_integrate_begin_exceptions_list_trace(x) #endif #ifndef pconf_symlink_exceptions_list_DEF #define pconf_symlink_exceptions_list_DEF struct pconf_symlink_exceptions_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_symlink_exceptions_list_DEF extern meta_type pconf_symlink_exceptions_list_type; pconf_symlink_exceptions_list_ty *pconf_symlink_exceptions_list_copy(pconf_symlink_exceptions_list_ty *); pconf_symlink_exceptions_list_ty *pconf_symlink_exceptions_list_clone(pconf_symlink_exceptions_list_ty *); void pconf_symlink_exceptions_list_write(const output::pointer &fp, const char *name, pconf_symlink_exceptions_list_ty *value); void pconf_symlink_exceptions_list_write_xml(const output::pointer &fp, const char *name, pconf_symlink_exceptions_list_ty *value); #ifdef DEBUG void pconf_symlink_exceptions_list_trace_real(const char *name, const pconf_symlink_exceptions_list_ty *value); #define pconf_symlink_exceptions_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_symlink_exceptions_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_symlink_exceptions_list_trace(x) #endif #ifndef pconf_history_put_trashes_file_DEF #define pconf_history_put_trashes_file_DEF enum pconf_history_put_trashes_file_ty { pconf_history_put_trashes_file_fatal, pconf_history_put_trashes_file_warn, pconf_history_put_trashes_file_ignore }; #define pconf_history_put_trashes_file_max 3 #endif // pconf_history_put_trashes_file_DEF extern meta_type pconf_history_put_trashes_file_type; void pconf_history_put_trashes_file_write(const output::pointer &fp, const char *name, pconf_history_put_trashes_file_ty value, bool show); void pconf_history_put_trashes_file_write_xml(const output::pointer &fp, const char *name, pconf_history_put_trashes_file_ty value, bool show); const char *pconf_history_put_trashes_file_ename(pconf_history_put_trashes_file_ty); #ifndef pconf_history_content_limitation_DEF #define pconf_history_content_limitation_DEF enum pconf_history_content_limitation_ty { pconf_history_content_limitation_ascii_text, pconf_history_content_limitation_international_text, pconf_history_content_limitation_binary_capable }; #define pconf_history_content_limitation_max 3 #endif // pconf_history_content_limitation_DEF extern meta_type pconf_history_content_limitation_type; void pconf_history_content_limitation_write(const output::pointer &fp, const char *name, pconf_history_content_limitation_ty value, bool show); void pconf_history_content_limitation_write_xml(const output::pointer &fp, const char *name, pconf_history_content_limitation_ty value, bool show); const char *pconf_history_content_limitation_ename(pconf_history_content_limitation_ty); #ifndef pconf_architecture_mode_DEF #define pconf_architecture_mode_DEF enum pconf_architecture_mode_ty { pconf_architecture_mode_required, pconf_architecture_mode_optional, pconf_architecture_mode_forbidden }; #define pconf_architecture_mode_max 3 #endif // pconf_architecture_mode_DEF extern meta_type pconf_architecture_mode_type; void pconf_architecture_mode_write(const output::pointer &fp, const char *name, pconf_architecture_mode_ty value, bool show); void pconf_architecture_mode_write_xml(const output::pointer &fp, const char *name, pconf_architecture_mode_ty value, bool show); const char *pconf_architecture_mode_ename(pconf_architecture_mode_ty); #ifndef pconf_architecture_DEF #define pconf_architecture_DEF #define pconf_architecture_name_mask ((unsigned long)0) #define pconf_architecture_pattern_mask ((unsigned long)0) #define pconf_architecture_mode_mask ((unsigned long)1 << 0) struct pconf_architecture_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *name; string_ty *pattern; pconf_architecture_mode_ty mode; }; #endif // pconf_architecture_DEF extern meta_type pconf_architecture_type; void pconf_architecture_write(const output::pointer &fp, const char *name, pconf_architecture_ty *value); void pconf_architecture_write_xml(const output::pointer &fp, const char *name, pconf_architecture_ty *value); pconf_architecture_ty *pconf_architecture_copy(pconf_architecture_ty *); pconf_architecture_ty *pconf_architecture_clone(pconf_architecture_ty *); #ifdef DEBUG void pconf_architecture_trace_real(const char *name, const pconf_architecture_ty *value); #define pconf_architecture_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_architecture_trace_real(trace_stringize(x), x), 0))) #else #define pconf_architecture_trace(x) #endif #ifndef pconf_architecture_list_DEF #define pconf_architecture_list_DEF struct pconf_architecture_list_ty { size_t length; size_t maximum; pconf_architecture_ty **list; }; #endif // pconf_architecture_list_DEF extern meta_type pconf_architecture_list_type; pconf_architecture_list_ty *pconf_architecture_list_copy(pconf_architecture_list_ty *); pconf_architecture_list_ty *pconf_architecture_list_clone(pconf_architecture_list_ty *); void pconf_architecture_list_write(const output::pointer &fp, const char *name, pconf_architecture_list_ty *value); void pconf_architecture_list_write_xml(const output::pointer &fp, const char *name, pconf_architecture_list_ty *value); #ifdef DEBUG void pconf_architecture_list_trace_real(const char *name, const pconf_architecture_list_ty *value); #define pconf_architecture_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_architecture_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_architecture_list_trace(x) #endif #ifndef pconf_file_template_pattern_list_DEF #define pconf_file_template_pattern_list_DEF struct pconf_file_template_pattern_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_file_template_pattern_list_DEF extern meta_type pconf_file_template_pattern_list_type; pconf_file_template_pattern_list_ty *pconf_file_template_pattern_list_copy(pconf_file_template_pattern_list_ty *); pconf_file_template_pattern_list_ty *pconf_file_template_pattern_list_clone(pconf_file_template_pattern_list_ty *); void pconf_file_template_pattern_list_write(const output::pointer &fp, const char *name, pconf_file_template_pattern_list_ty *value); void pconf_file_template_pattern_list_write_xml(const output::pointer &fp, const char *name, pconf_file_template_pattern_list_ty *value); #ifdef DEBUG void pconf_file_template_pattern_list_trace_real(const char *name, const pconf_file_template_pattern_list_ty *value); #define pconf_file_template_pattern_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_file_template_pattern_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_file_template_pattern_list_trace(x) #endif #ifndef pconf_file_template_DEF #define pconf_file_template_DEF #define pconf_file_template_pattern_mask ((unsigned long)0) #define pconf_file_template_body_mask ((unsigned long)0) #define pconf_file_template_body_command_mask ((unsigned long)0) struct pconf_file_template_ty { long reference_count; unsigned long mask; string_ty *errpos; pconf_file_template_pattern_list_ty *pattern; string_ty *body; string_ty *body_command; }; #endif // pconf_file_template_DEF extern meta_type pconf_file_template_type; void pconf_file_template_write(const output::pointer &fp, const char *name, pconf_file_template_ty *value); void pconf_file_template_write_xml(const output::pointer &fp, const char *name, pconf_file_template_ty *value); pconf_file_template_ty *pconf_file_template_copy(pconf_file_template_ty *); pconf_file_template_ty *pconf_file_template_clone(pconf_file_template_ty *); #ifdef DEBUG void pconf_file_template_trace_real(const char *name, const pconf_file_template_ty *value); #define pconf_file_template_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_file_template_trace_real(trace_stringize(x), x), 0))) #else #define pconf_file_template_trace(x) #endif #ifndef pconf_file_template_list_DEF #define pconf_file_template_list_DEF struct pconf_file_template_list_ty { size_t length; size_t maximum; pconf_file_template_ty **list; }; #endif // pconf_file_template_list_DEF extern meta_type pconf_file_template_list_type; pconf_file_template_list_ty *pconf_file_template_list_copy(pconf_file_template_list_ty *); pconf_file_template_list_ty *pconf_file_template_list_clone(pconf_file_template_list_ty *); void pconf_file_template_list_write(const output::pointer &fp, const char *name, pconf_file_template_list_ty *value); void pconf_file_template_list_write_xml(const output::pointer &fp, const char *name, pconf_file_template_list_ty *value); #ifdef DEBUG void pconf_file_template_list_trace_real(const char *name, const pconf_file_template_list_ty *value); #define pconf_file_template_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_file_template_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_file_template_list_trace(x) #endif #ifndef pconf_whiteout_template_pattern_list_DEF #define pconf_whiteout_template_pattern_list_DEF struct pconf_whiteout_template_pattern_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_whiteout_template_pattern_list_DEF extern meta_type pconf_whiteout_template_pattern_list_type; pconf_whiteout_template_pattern_list_ty *pconf_whiteout_template_pattern_list_copy(pconf_whiteout_template_pattern_list_ty *); pconf_whiteout_template_pattern_list_ty *pconf_whiteout_template_pattern_list_clone(pconf_whiteout_template_pattern_list_ty *); void pconf_whiteout_template_pattern_list_write(const output::pointer &fp, const char *name, pconf_whiteout_template_pattern_list_ty *value); void pconf_whiteout_template_pattern_list_write_xml(const output::pointer &fp, const char *name, pconf_whiteout_template_pattern_list_ty *value); #ifdef DEBUG void pconf_whiteout_template_pattern_list_trace_real(const char *name, const pconf_whiteout_template_pattern_list_ty *value); #define pconf_whiteout_template_pattern_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_whiteout_template_pattern_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_whiteout_template_pattern_list_trace(x) #endif #ifndef pconf_whiteout_template_DEF #define pconf_whiteout_template_DEF #define pconf_whiteout_template_pattern_mask ((unsigned long)0) #define pconf_whiteout_template_body_mask ((unsigned long)0) struct pconf_whiteout_template_ty { long reference_count; unsigned long mask; string_ty *errpos; pconf_whiteout_template_pattern_list_ty *pattern; string_ty *body; }; #endif // pconf_whiteout_template_DEF extern meta_type pconf_whiteout_template_type; void pconf_whiteout_template_write(const output::pointer &fp, const char *name, pconf_whiteout_template_ty *value); void pconf_whiteout_template_write_xml(const output::pointer &fp, const char *name, pconf_whiteout_template_ty *value); pconf_whiteout_template_ty *pconf_whiteout_template_copy(pconf_whiteout_template_ty *); pconf_whiteout_template_ty *pconf_whiteout_template_clone(pconf_whiteout_template_ty *); #ifdef DEBUG void pconf_whiteout_template_trace_real(const char *name, const pconf_whiteout_template_ty *value); #define pconf_whiteout_template_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_whiteout_template_trace_real(trace_stringize(x), x), 0))) #else #define pconf_whiteout_template_trace(x) #endif #ifndef pconf_whiteout_template_list_DEF #define pconf_whiteout_template_list_DEF struct pconf_whiteout_template_list_ty { size_t length; size_t maximum; pconf_whiteout_template_ty **list; }; #endif // pconf_whiteout_template_list_DEF extern meta_type pconf_whiteout_template_list_type; pconf_whiteout_template_list_ty *pconf_whiteout_template_list_copy(pconf_whiteout_template_list_ty *); pconf_whiteout_template_list_ty *pconf_whiteout_template_list_clone(pconf_whiteout_template_list_ty *); void pconf_whiteout_template_list_write(const output::pointer &fp, const char *name, pconf_whiteout_template_list_ty *value); void pconf_whiteout_template_list_write_xml(const output::pointer &fp, const char *name, pconf_whiteout_template_list_ty *value); #ifdef DEBUG void pconf_whiteout_template_list_trace_real(const char *name, const pconf_whiteout_template_list_ty *value); #define pconf_whiteout_template_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_whiteout_template_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_whiteout_template_list_trace(x) #endif #ifndef pconf_filename_pattern_accept_list_DEF #define pconf_filename_pattern_accept_list_DEF struct pconf_filename_pattern_accept_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_filename_pattern_accept_list_DEF extern meta_type pconf_filename_pattern_accept_list_type; pconf_filename_pattern_accept_list_ty *pconf_filename_pattern_accept_list_copy(pconf_filename_pattern_accept_list_ty *); pconf_filename_pattern_accept_list_ty *pconf_filename_pattern_accept_list_clone(pconf_filename_pattern_accept_list_ty *); void pconf_filename_pattern_accept_list_write(const output::pointer &fp, const char *name, pconf_filename_pattern_accept_list_ty *value); void pconf_filename_pattern_accept_list_write_xml(const output::pointer &fp, const char *name, pconf_filename_pattern_accept_list_ty *value); #ifdef DEBUG void pconf_filename_pattern_accept_list_trace_real(const char *name, const pconf_filename_pattern_accept_list_ty *value); #define pconf_filename_pattern_accept_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_filename_pattern_accept_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_filename_pattern_accept_list_trace(x) #endif #ifndef pconf_filename_pattern_reject_list_DEF #define pconf_filename_pattern_reject_list_DEF struct pconf_filename_pattern_reject_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_filename_pattern_reject_list_DEF extern meta_type pconf_filename_pattern_reject_list_type; pconf_filename_pattern_reject_list_ty *pconf_filename_pattern_reject_list_copy(pconf_filename_pattern_reject_list_ty *); pconf_filename_pattern_reject_list_ty *pconf_filename_pattern_reject_list_clone(pconf_filename_pattern_reject_list_ty *); void pconf_filename_pattern_reject_list_write(const output::pointer &fp, const char *name, pconf_filename_pattern_reject_list_ty *value); void pconf_filename_pattern_reject_list_write_xml(const output::pointer &fp, const char *name, pconf_filename_pattern_reject_list_ty *value); #ifdef DEBUG void pconf_filename_pattern_reject_list_trace_real(const char *name, const pconf_filename_pattern_reject_list_ty *value); #define pconf_filename_pattern_reject_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_filename_pattern_reject_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_filename_pattern_reject_list_trace(x) #endif #ifndef pconf_trojan_horse_suspect_list_DEF #define pconf_trojan_horse_suspect_list_DEF struct pconf_trojan_horse_suspect_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_trojan_horse_suspect_list_DEF extern meta_type pconf_trojan_horse_suspect_list_type; pconf_trojan_horse_suspect_list_ty *pconf_trojan_horse_suspect_list_copy(pconf_trojan_horse_suspect_list_ty *); pconf_trojan_horse_suspect_list_ty *pconf_trojan_horse_suspect_list_clone(pconf_trojan_horse_suspect_list_ty *); void pconf_trojan_horse_suspect_list_write(const output::pointer &fp, const char *name, pconf_trojan_horse_suspect_list_ty *value); void pconf_trojan_horse_suspect_list_write_xml(const output::pointer &fp, const char *name, pconf_trojan_horse_suspect_list_ty *value); #ifdef DEBUG void pconf_trojan_horse_suspect_list_trace_real(const char *name, const pconf_trojan_horse_suspect_list_ty *value); #define pconf_trojan_horse_suspect_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_trojan_horse_suspect_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_trojan_horse_suspect_list_trace(x) #endif #ifndef pconf_build_time_adjust_DEF #define pconf_build_time_adjust_DEF enum pconf_build_time_adjust_ty { pconf_build_time_adjust_adjust_and_sleep, pconf_build_time_adjust_adjust_only, pconf_build_time_adjust_dont_adjust }; #define pconf_build_time_adjust_max 3 #endif // pconf_build_time_adjust_DEF extern meta_type pconf_build_time_adjust_type; void pconf_build_time_adjust_write(const output::pointer &fp, const char *name, pconf_build_time_adjust_ty value, bool show); void pconf_build_time_adjust_write_xml(const output::pointer &fp, const char *name, pconf_build_time_adjust_ty value, bool show); const char *pconf_build_time_adjust_ename(pconf_build_time_adjust_ty); #ifndef pconf_unchanged_file_develop_end_policy_DEF #define pconf_unchanged_file_develop_end_policy_DEF enum pconf_unchanged_file_develop_end_policy_ty { pconf_unchanged_file_develop_end_policy_ignore, pconf_unchanged_file_develop_end_policy_warning, pconf_unchanged_file_develop_end_policy_error }; #define pconf_unchanged_file_develop_end_policy_max 3 #endif // pconf_unchanged_file_develop_end_policy_DEF extern meta_type pconf_unchanged_file_develop_end_policy_type; void pconf_unchanged_file_develop_end_policy_write(const output::pointer &fp, const char *name, pconf_unchanged_file_develop_end_policy_ty value, bool show); void pconf_unchanged_file_develop_end_policy_write_xml(const output::pointer &fp, const char *name, pconf_unchanged_file_develop_end_policy_ty value, bool show); const char *pconf_unchanged_file_develop_end_policy_ename(pconf_unchanged_file_develop_end_policy_ty); #ifndef pconf_unchanged_file_integrate_pass_policy_DEF #define pconf_unchanged_file_integrate_pass_policy_DEF enum pconf_unchanged_file_integrate_pass_policy_ty { pconf_unchanged_file_integrate_pass_policy_ignore, pconf_unchanged_file_integrate_pass_policy_warning, pconf_unchanged_file_integrate_pass_policy_remove }; #define pconf_unchanged_file_integrate_pass_policy_max 3 #endif // pconf_unchanged_file_integrate_pass_policy_DEF extern meta_type pconf_unchanged_file_integrate_pass_policy_type; void pconf_unchanged_file_integrate_pass_policy_write(const output::pointer &fp, const char *name, pconf_unchanged_file_integrate_pass_policy_ty value, bool show); void pconf_unchanged_file_integrate_pass_policy_write_xml(const output::pointer &fp, const char *name, pconf_unchanged_file_integrate_pass_policy_ty value, bool show); const char *pconf_unchanged_file_integrate_pass_policy_ename(pconf_unchanged_file_integrate_pass_policy_ty); #ifndef pconf_clean_exceptions_list_DEF #define pconf_clean_exceptions_list_DEF struct pconf_clean_exceptions_list_ty { size_t length; size_t maximum; string_ty **list; }; #endif // pconf_clean_exceptions_list_DEF extern meta_type pconf_clean_exceptions_list_type; pconf_clean_exceptions_list_ty *pconf_clean_exceptions_list_copy(pconf_clean_exceptions_list_ty *); pconf_clean_exceptions_list_ty *pconf_clean_exceptions_list_clone(pconf_clean_exceptions_list_ty *); void pconf_clean_exceptions_list_write(const output::pointer &fp, const char *name, pconf_clean_exceptions_list_ty *value); void pconf_clean_exceptions_list_write_xml(const output::pointer &fp, const char *name, pconf_clean_exceptions_list_ty *value); #ifdef DEBUG void pconf_clean_exceptions_list_trace_real(const char *name, const pconf_clean_exceptions_list_ty *value); #define pconf_clean_exceptions_list_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_clean_exceptions_list_trace_real(trace_stringize(x), x), 0))) #else #define pconf_clean_exceptions_list_trace(x) #endif #ifndef pconf_DEF #define pconf_DEF #define pconf_configuration_directory_mask ((unsigned long)0) #define pconf_build_command_mask ((unsigned long)0) #define pconf_integration_directory_style_mask ((unsigned long)0) #define pconf_development_directory_style_mask ((unsigned long)0) #define pconf_development_build_command_mask ((unsigned long)0) #define pconf_build_time_adjust_notify_command_mask ((unsigned long)0) #define pconf_build_covers_all_architectures_mask ((unsigned long)1 << 0) #define pconf_test_covers_all_architectures_mask ((unsigned long)1 << 1) #define pconf_change_file_command_mask ((unsigned long)0) #define pconf_new_file_command_mask ((unsigned long)0) #define pconf_new_test_command_mask ((unsigned long)0) #define pconf_copy_file_command_mask ((unsigned long)0) #define pconf_remove_file_command_mask ((unsigned long)0) #define pconf_change_file_undo_command_mask ((unsigned long)0) #define pconf_new_file_undo_command_mask ((unsigned long)0) #define pconf_new_test_undo_command_mask ((unsigned long)0) #define pconf_copy_file_undo_command_mask ((unsigned long)0) #define pconf_remove_file_undo_command_mask ((unsigned long)0) #define pconf_make_transparent_command_mask ((unsigned long)0) #define pconf_make_transparent_undo_command_mask ((unsigned long)0) #define pconf_project_file_command_mask ((unsigned long)0) #define pconf_develop_begin_command_mask ((unsigned long)0) #define pconf_develop_begin_undo_command_mask ((unsigned long)0) #define pconf_integrate_begin_command_mask ((unsigned long)0) #define pconf_integrate_begin_undo_command_mask ((unsigned long)0) #define pconf_link_integration_directory_mask ((unsigned long)1 << 2) #define pconf_integrate_begin_exceptions_mask ((unsigned long)0) #define pconf_create_symlinks_before_build_mask ((unsigned long)1 << 3) #define pconf_create_symlinks_before_integration_build_mask ((unsigned long)1 << 4) #define pconf_remove_symlinks_after_build_mask ((unsigned long)1 << 5) #define pconf_remove_symlinks_after_integration_build_mask ((unsigned long)1 << 6) #define pconf_symlink_exceptions_mask ((unsigned long)0) #define pconf_history_create_command_mask ((unsigned long)0) #define pconf_history_get_command_mask ((unsigned long)0) #define pconf_history_put_command_mask ((unsigned long)0) #define pconf_history_query_command_mask ((unsigned long)0) #define pconf_history_transaction_begin_command_mask ((unsigned long)0) #define pconf_history_transaction_end_command_mask ((unsigned long)0) #define pconf_history_transaction_abort_command_mask ((unsigned long)0) #define pconf_history_put_trashes_file_mask ((unsigned long)1 << 7) #define pconf_history_content_limitation_mask ((unsigned long)1 << 8) #define pconf_history_label_command_mask ((unsigned long)0) #define pconf_diff_command_mask ((unsigned long)0) #define pconf_diff3_command_mask ((unsigned long)0) #define pconf_merge_command_mask ((unsigned long)0) #define pconf_patch_diff_command_mask ((unsigned long)0) #define pconf_annotate_diff_command_mask ((unsigned long)0) #define pconf_test_command_mask ((unsigned long)0) #define pconf_development_test_command_mask ((unsigned long)0) #define pconf_batch_test_command_mask ((unsigned long)0) #define pconf_architecture_discriminator_command_mask ((unsigned long)0) #define pconf_architecture_mask ((unsigned long)0) #define pconf_file_template_mask ((unsigned long)0) #define pconf_whiteout_template_mask ((unsigned long)0) #define pconf_maximum_filename_length_mask ((unsigned long)1 << 9) #define pconf_posix_filename_charset_mask ((unsigned long)1 << 10) #define pconf_dos_filename_required_mask ((unsigned long)1 << 11) #define pconf_windows_filename_required_mask ((unsigned long)1 << 12) #define pconf_shell_safe_filenames_mask ((unsigned long)1 << 13) #define pconf_allow_white_space_in_filenames_mask ((unsigned long)1 << 14) #define pconf_allow_non_ascii_filenames_mask ((unsigned long)1 << 15) #define pconf_filename_pattern_accept_mask ((unsigned long)0) #define pconf_filename_pattern_reject_mask ((unsigned long)0) #define pconf_new_test_filename_mask ((unsigned long)0) #define pconf_development_directory_template_mask ((unsigned long)0) #define pconf_metrics_filename_pattern_mask ((unsigned long)0) #define pconf_trojan_horse_suspect_mask ((unsigned long)0) #define pconf_project_specific_mask ((unsigned long)0) #define pconf_build_time_adjust_mask ((unsigned long)1 << 16) #define pconf_signed_off_by_mask ((unsigned long)1 << 17) #define pconf_review_policy_command_mask ((unsigned long)0) #define pconf_develop_end_policy_command_mask ((unsigned long)0) #define pconf_unchanged_file_develop_end_policy_mask ((unsigned long)1 << 18) #define pconf_unchanged_file_integrate_pass_policy_mask ((unsigned long)1 << 19) #define pconf_cache_project_file_list_for_each_delta_mask ((unsigned long)1 << 20) #define pconf_clean_exceptions_mask ((unsigned long)0) struct pconf_ty { long reference_count; unsigned long mask; string_ty *errpos; string_ty *configuration_directory; string_ty *build_command; work_area_style_ty *integration_directory_style; work_area_style_ty *development_directory_style; string_ty *development_build_command; string_ty *build_time_adjust_notify_command; bool build_covers_all_architectures; bool test_covers_all_architectures; string_ty *change_file_command; string_ty *new_file_command; string_ty *new_test_command; string_ty *copy_file_command; string_ty *remove_file_command; string_ty *change_file_undo_command; string_ty *new_file_undo_command; string_ty *new_test_undo_command; string_ty *copy_file_undo_command; string_ty *remove_file_undo_command; string_ty *make_transparent_command; string_ty *make_transparent_undo_command; string_ty *project_file_command; string_ty *develop_begin_command; string_ty *develop_begin_undo_command; string_ty *integrate_begin_command; string_ty *integrate_begin_undo_command; bool link_integration_directory; pconf_integrate_begin_exceptions_list_ty *integrate_begin_exceptions; bool create_symlinks_before_build; bool create_symlinks_before_integration_build; bool remove_symlinks_after_build; bool remove_symlinks_after_integration_build; pconf_symlink_exceptions_list_ty *symlink_exceptions; string_ty *history_create_command; string_ty *history_get_command; string_ty *history_put_command; string_ty *history_query_command; string_ty *history_transaction_begin_command; string_ty *history_transaction_end_command; string_ty *history_transaction_abort_command; pconf_history_put_trashes_file_ty history_put_trashes_file; pconf_history_content_limitation_ty history_content_limitation; string_ty *history_label_command; string_ty *diff_command; string_ty *diff3_command; string_ty *merge_command; string_ty *patch_diff_command; string_ty *annotate_diff_command; string_ty *test_command; string_ty *development_test_command; string_ty *batch_test_command; string_ty *architecture_discriminator_command; pconf_architecture_list_ty *architecture; pconf_file_template_list_ty *file_template; pconf_whiteout_template_list_ty *whiteout_template; long maximum_filename_length; bool posix_filename_charset; bool dos_filename_required; bool windows_filename_required; bool shell_safe_filenames; bool allow_white_space_in_filenames; bool allow_non_ascii_filenames; pconf_filename_pattern_accept_list_ty *filename_pattern_accept; pconf_filename_pattern_reject_list_ty *filename_pattern_reject; string_ty *new_test_filename; string_ty *development_directory_template; string_ty *metrics_filename_pattern; pconf_trojan_horse_suspect_list_ty *trojan_horse_suspect; attributes_list_ty *project_specific; pconf_build_time_adjust_ty build_time_adjust; bool signed_off_by; string_ty *review_policy_command; string_ty *develop_end_policy_command; pconf_unchanged_file_develop_end_policy_ty unchanged_file_develop_end_policy; pconf_unchanged_file_integrate_pass_policy_ty unchanged_file_integrate_pass_policy; bool cache_project_file_list_for_each_delta; pconf_clean_exceptions_list_ty *clean_exceptions; }; #endif // pconf_DEF extern meta_type pconf_type; void pconf_write(const output::pointer &fp, pconf_ty *value); void pconf_write_xml(const output::pointer &fp, pconf_ty *value); pconf_ty *pconf_copy(pconf_ty *); pconf_ty *pconf_clone(pconf_ty *); #ifdef DEBUG void pconf_trace_real(const char *name, const pconf_ty *value); #define pconf_trace(x) ((void)(trace_pretest_ && (trace_where_, pconf_trace_real(trace_stringize(x), x), 0))) #else #define pconf_trace(x) #endif /** * The pconf_write_file function is used to * write pconf 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 pconf_write_file(string_ty *filename, pconf_ty *value, int comp); /** * The pconf_write_file function is used to * write pconf 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 pconf_write_file(const nstring &filnam, pconf_ty *value, bool comp); /** * The pconf_read_file function is used to * read pconf 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. */ pconf_ty *pconf_read_file(string_ty *filename); /** * The pconf_read_file function is used to * read pconf 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. */ pconf_ty *pconf_read_file(const nstring &filename); void pconf__rpt_init(void); #endif // LIBAEGIS_PCONF_H