#! /bin/sed -f
# Last edited on 2005-02-21 12:00:47 by stolfi
# 
# s/dgbasic/dg_basic/g
# s/dgbasis/dg_basis/g
# s/dgbezier/dg_bezier/g
# s/dgbezpatch/dg_bezpatch/g
# s/dgcolortable/dg_colortable/g
# s/dgfindbasis/dg_findbasis/g
# s/dgintegral/dg_integral/g
# s/dgitemmap/dg_itemmap/g
# s/dglimits/dg_limits/g
# s/dglocus/dg_locus/g
# s/dgmakegrid/dg_makegrid/g
# s/dgplot-claudio/dg_plot-claudio/g
# s/dgplotextra/dg_plotextra/g
# s/dgplot/dg_plot/g
# s/dgpulse_H/dg_pulse_H/g
# s/dgpulse/dg_pulse/g
# s/dgshape/dg_shape/g
# s/dgspline-extra/dg_spline-extra/g
# s/dgspline-old/dg_spline-old/g
# s/dgspline/dg_spline/g
# s/dgtent/dg_tent/g
# s/dgtesttents/dg_testtents/g
# s/dgtreespline/dg_treespline/g
# s/dgtree/dg_tree/g
# s/testapprox/test_approx/g
# s/testdgbezier/test_dg_bezier/g
# s/testdgplot/test_dg_plot/g
# s/testdgspline/test_dg_spline/g
# s/testinterp/test_interp/g

s/dg_mother_H_pulse/dg_pulse_H_mother/g
s/dg_mother_B_pulse/dg_pulse_B_mother/g
s/dg_mother_pulse/dg_pulse_mother/g
s/dg_bezier/bz_basic/g
s/dg_bezpatch/bz_patch/g
s/test_dg_bezier/test_bz/g
s/dg_BezIndex/bz_index_t/g
s/dg_interval/interval/g
s/dg_Interval/interval_t/g

s/dg_box/box/g
s/dg_WingIndex/dg_wing_index_t/g
s/dg_Tree/dg_tree_t/g
s/dg_Tent_vec/dg_tent_vec/g
s/dg_TentKind/dg_tent_kind_t/g
s/dg_TentIndex/dg_tent_index_t/g
s/dg_Tent/dg_tent_t/g
s/dg_SplitLocusDataProc/dg_split_locus_data_proc_t/g
s/dg_SignedDir/box_signed_dir_t/g
s/dg_ShrinkLocusDataProc/dg_shrink_locus_data_proc_t/g
s/dg_RootLocusDataProc/dg_root_locus_data_proc_t/g
s/dg_Rank/dg_rank_t/g
s/dg_PulseKind/dg_pulse_kind_t/g
s/dg_PulseIndex/dg_pulse_index_t/g  
s/dg_NodeStar/dg_node_star_t/g
s/dg_NodeRef_vec/dg_node_ref_vec/g
s/dg_NodeRef/dg_node_ref_t/g
s/dg_NodeCount/dg_node_count_t/g
s/dg_Node/dg_node_t/g
s/dg_Locus_vec/dg_locus_vec/g
s/dg_LocusVisitProc/dg_locus_visit_proc_t/g
s/dg_LocusData/dg_locus_data_t/g
s/dg_Locus/dg_locus_t/g
s/dg_ItemMap/dg_item_map_t/g
s/dg_InterpData/dg_interp_data_t/g
s/dg_GridSize/dg_grid_size_t/g
s/dg_GridPos/dg_grid_pos_t/g
s/dg_FreeLocusDataProc/dg_free_locus_data_proc_t/g
s/dg_FaceIndex/box_face_index_t/g
s/dg_Dim/dg_dim_t/g
s/dg_Degree/dg_degree_t/g
s/dg_Cont/dg_cont_t/g
s/dg_CellIndex_vec/dg_cell_index_vec/g
s/dg_CellIndex/dg_cell_index_t/g
s/dg_AxisIndex/dg_axis_index_t/g
s/dg_Axis/dg_axis_t/g
s/dg_Axes/dg_axes_t/g
s/dg_CellPredicate/dg_cell_predicate_t/g

s/dg_point_box_map/box_point_map/g
s/dg_point_box_unmap/box_point_unmap/g
s/dg_axis_belongs/box_axis_belongs/g
s/dg_axis_include/box_axis_include/g
s/dg_axis_exclude/box_axis_exclude/g
s/dg_axes_count/box_axes_count/g
s/dg_axes_complement/box_axes_complement/g
s/dg_find_axis/box_find_axis/g
s/dg_face_dimension/box_face_dimension/g
s/dg_face_position/box_face_position/g
s/dg_face_signature/box_face_signature/g
s/dg_face_rel_box/box_face_rel_box/g
s/dg_face_print/box_face_print/g

s/dg_tent_get_pulse_indices/dg_tent_pulse_indices/g
s/DG_MAX_PULSE_DEGREE/DG_PULSE_MAX_DEGREE/g
s/DG_MAX_PULSE_DIFF_ORD/DG_PULSE_MAX_DIFF_ORD/g
s/dg_tent_t/dg_tent_id_t/g
s/dg_node_tIndex/dg_node_index_t/g
s/dg_locus_tProc/dg_locus_proc_t/g
s/dg_cell_index_in_star/???dg_block_find_cell/g
s/dg_cell_intersects_star/???dg_cell_intersects_block/g
s/dg_star_box_root_relative/???dg_block_box_root_relative/g

s/dg_node_star_t/dg_tree_vec_t/g
s/dg_node_ref_vec/dg_tree_vec/g
s/dg_node_/dg_tree_node_/g
s/DG_ROOT_CELL/dg_ROOT_CELL/g

# These are dangerous:
# s/dg_pulse_B/dg_pulse_N/g
# s/dg_pulse_S/dg_pulse_B/g

s/int dg_pulse_B_max_index/unsigned int dg_pulse_B_num_mothers/g
s/int dg_pulse_H_max_index/unsigned int dg_pulse_H_num_mothers/g
s/int dg_pulse_N_max_index/unsigned int dg_pulse_N_num_mothers/g

s/dg_pulse_index/dg_pulse_mother/g


s/dg_tree_node_ref_/dg_tree_/g
s/dg_tree_node_pack/dg_tree_pack/g
s/dg_free_subtree/dg_tree_free/g
s/dg_axes_t/dg_axis_set_t/g
s/box_axis_belongs/set32_belongs/g
s/box_axis_include/set32_include/g
s/box_axes_count/set32_count/g
s/box_axes_complement/dg_axis_set_complement/g
s/box_find_axis/set32_index_from_elem[SWAPARGS]/g

s/bz_Patch/bz_patch_t/g
s/bz_patch_t_facet_new/bz_patch_facet_new/g
s/bz_patch_t_new/bz_patch_new/g
s/bz_patch_t_free/bz_patch_free/g
s/bz_RDim/bz_patch_rdim_t/g
s/bz_DDim/bz_patch_ddim_t/g
s/bz_Degrees/bz_patch_degrees_t/g
s/bz_Degree/bz_degree_t/g
s/bz_compute_bbox/bz_patch_compute_bbox/g
s/bz_get_facet/bz_patch_get_facet/g

s/BLO/0/g
s/BHI/1/g

s/\([A-Za-z][][A-Za-z0-9_]*\)[.]end\[0\]/LO(\1)/g
s/\([A-Za-z][][A-Za-z0-9_]*\)[.]end\[1\]/HI(\1)/g

s/\([A-Za-z][][A-Za-z0-9_]*\)[-][>]end\[0\]/LO(*\1)/g
s/\([A-Za-z][][A-Za-z0-9_]*\)[-][>]end\[1\]/HI(*\1)/g

s/\([A-Za-z][][A-Za-z0-9_]*\)[.]ch\[0\]/LOCH(\1)/g
s/\([A-Za-z][][A-Za-z0-9_]*\)[.]ch\[1\]/HICH(\1)/g

s/\([A-Za-z][][A-Za-z0-9_]*\)[-][>]ch\[0\]/LOCH(*\1)/g
s/\([A-Za-z][][A-Za-z0-9_]*\)[-][>]ch\[1\]/HICH(*\1)/g
 
