From 18f0d7e8718600bd7e665e0bf9072a245ec0c83b Mon Sep 17 00:00:00 2001 From: Michael Vetter Date: Tue, 8 Nov 2016 10:25:07 +0100 Subject: [PATCH] Remove trailing whitespaces Makes it easier to edit the files. So if we press 'end of line' we are really at the end of line. --- include/trick/ADefParseContext.hh | 2 +- include/trick/CheckPointAgent.hh | 10 +- include/trick/CheckPointRestart.hh | 6 +- include/trick/ChkPtParseContext.hh | 2 +- include/trick/ClassicCheckPointAgent.hh | 26 +- include/trick/CommandLineArguments.hh | 2 +- include/trick/DMTCP.hh | 2 +- include/trick/DRAscii.hh | 12 +- include/trick/DRBinary.hh | 2 +- include/trick/DRHDF5.hh | 4 +- include/trick/IntegAlgorithms.hh | 2 +- include/trick/IntegLoopManager.hh | 2 +- include/trick/Integrator.hh | 4 +- include/trick/Interpolator.hh | 2 +- include/trick/MSSharedMem.hh | 14 +- include/trick/MapStrToPtr.h | 12 +- include/trick/MemoryManager.hh | 28 +- include/trick/MonteCarlo.hh | 36 +-- include/trick/MonteVarCalculated.hh | 2 +- include/trick/MonteVarFile.hh | 6 +- include/trick/MonteVarFixed.hh | 2 +- include/trick/MonteVarRandom.hh | 2 +- include/trick/PythonPrint.hh | 14 +- include/trick/RefParseContext.hh | 2 +- include/trick/Scheduler.hh | 2 +- include/trick/SimObject.hh | 2 +- include/trick/StlRandomGenerator.hh | 36 +-- include/trick/StlRandomGeneratorSub.hh | 130 ++++----- include/trick/attributes.h | 4 +- include/trick/bst.h | 4 +- include/trick/checkpoint_sequence_stl.hh | 2 +- include/trick/dllist.h | 10 +- include/trick/dmtcp_checkpoint_c_intf.hh | 2 +- include/trick/matrix_macros.h | 4 +- include/trick/memorymanager_c_intf.h | 4 +- include/trick/montecarlo_c_intf.h | 12 +- include/trick/outdllist.h | 2 +- include/trick/rand_generator.h | 22 +- include/trick/record_array.h | 10 +- include/trick/reference.h | 6 +- include/trick/reference_frame.h | 6 +- include/trick/regula_falsi.h | 10 +- include/trick/release.h | 4 +- include/trick/sim_mode.h | 2 +- include/trick/sizedata.h | 4 +- include/trick/swig/swig_macros.hh | 18 +- include/trick/tc.h | 6 +- include/trick/tc_proto.h | 4 +- include/trick/trick_error_hndlr.h | 36 +-- include/trick/trick_math_error.h | 2 +- include/trick/trick_math_proto.h | 8 +- include/trick/units_conv.h | 4 +- include/trick/unix_commands.h | 2 +- include/trick/value.h | 4 +- include/trick/variable_server.h | 2 +- include/trick/vector_macros.h | 20 +- include/trick/wave_form.h | 36 +-- test/SIM_stls/models/STLCheckpoint.hh | 4 +- test/SIM_test_dp/models/dp/include/dp.h | 10 +- test/SIM_test_dp/models/dp/src/dp.c | 18 +- test/SIM_test_dr/models/dr/include/DR.hh | 42 +-- test/SIM_test_dr/models/dr/src/DR.cpp | 2 +- .../models/dr/src/DR_default_data.cpp | 2 +- .../test_ip/include/ClassOfEverything.hh | 4 +- .../models/sched/src/sched_amf.c | 4 +- .../models/sched/src/sched_async.c | 2 +- .../models/sched/src/sched_default_data.c | 4 +- .../models/sched/src/sched_effector.c | 2 +- .../models/sched/src/sched_effector_emitter.c | 2 +- .../sched/src/sched_effector_receiver.c | 2 +- .../models/sched/src/sched_init.c | 2 +- .../models/sched/src/sched_logging.c | 2 +- .../models/sched/src/sched_scheduled.c | 2 +- .../models/sched/src/sched_sensor.c | 2 +- .../models/sched/src/sched_sensor_emitter.c | 2 +- .../models/sched/src/sched_sensor_receiver.c | 2 +- .../models/sched/src/sched_sensor_reflector.c | 2 +- .../models/varserv/include/VS.hh | 8 +- .../models/varserv/src/VS.cpp | 2 +- .../models/varserv/src/VS_default_data.cpp | 2 +- .../models/varserv/src/VS_init.cpp | 4 +- .../models/varserv/src/VS_shutdown.cpp | 6 +- .../models/varserv/src/VS_tests.cpp | 22 +- .../models/varserv/src/VS_unittests.cpp | 4 +- .../cannon/aero/src/cannon_impact_monte.c | 6 +- .../cannon/aero/src/cannon_jet_control.c | 6 +- .../aero/src/cannon_monte_default_data.c | 2 +- .../cannon/gravity/src/cannon_analytic.c | 10 +- .../cannon/gravity/src/cannon_default_data.c | 2 +- .../models/cannon/gravity/src/cannon_deriv.c | 2 +- .../models/cannon/gravity/src/cannon_impact.c | 2 +- .../models/cannon/gravity/src/cannon_init.c | 10 +- .../models/cannon/optim/include/amoeba.h | 16 +- .../cannon/optim/include/amoeba_proto.h | 2 +- .../Cannon/models/cannon/optim/src/amoeba.c | 92 +++--- .../cannon/optim/src/cannon_init_amoeba.c | 4 +- .../models/cannon/optim/src/monte_shutdown.c | 2 +- .../SIM_Ball++_L1/models/BallStateInteg.cpp | 2 +- .../models/Satellite/graphics/Ball.c | 14 +- .../models/Satellite/graphics/Camera.hh | 2 +- .../Satellite/graphics/SatelliteModel.c | 18 +- .../models/Satellite/graphics/Scene.cpp | 6 +- .../Satellite/graphics/SceneElement.cpp | 6 +- .../models/Satellite/src/Planet.cpp | 2 +- .../SIM_sun/models/Sun/include/lh_coords.h | 2 +- .../SIM_sun/models/Sun/include/sun_pos.h | 2 +- trick_sims/SIM_sun/models/Sun/src/lh_coords.c | 4 +- trick_sims/SIM_sun/models/Sun/src/sidereal.c | 6 +- trick_sims/SIM_sun/models/Sun/src/sun_pos.c | 4 +- .../SIM_sun/models/Sun/src/sun_pred_cyclic.c | 10 +- .../models/Battery/src/DCBattery.cpp | 2 +- .../models/Battery/test/DCBatteryTest.cpp | 6 +- .../models/Guidance/test/ArenaTest.cpp | 96 +++---- .../models/Guidance/test/FindPathTest.cpp | 102 +++---- .../models/Guidance/test/NavigatorTest.cpp | 24 +- .../models/Motor/include/Motor.hh | 4 +- .../Motor/include/ServoSpeedController.hh | 4 +- .../models/Motor/src/ServoMotor.cpp | 4 +- .../models/Motor/src/ServoSpeedController.cpp | 32 +-- .../models/Motor/test/DCMotorTest.cpp | 12 +- .../Interface_Code_Gen/FieldVisitor.cpp | 2 +- .../Apps/ExternalPrograms/dp_lvlh.c | 2 +- .../ExternalPrograms/dp_quat_inrtl_attitude.c | 6 +- .../data_products/Apps/Trk2csv/trk2ascii.cpp | 8 +- .../data_products/DPX/APPS/FXPLOT/fxplot.cpp | 6 +- .../DPX/APPS/FXPLOT/page_view_node.cpp | 2 +- .../DPX/APPS/FXPLOT/plot_view_node.cpp | 2 +- .../DPX/APPS/GXPLOT/gp_utilities.cpp | 2 +- .../DPX/APPS/GXPLOT/gp_view_curve_node.cpp | 2 +- .../data_products/DPX/APPS/GXPLOT/gxplot.cpp | 10 +- .../DPX/DPC/DPC_TimeCstrDataStream.cpp | 2 +- .../DPX/DPC/DPC_UnitConvDataStream.cpp | 4 +- .../data_products/DPX/DPC/DPC_column_info.hh | 2 +- .../DPX/DPC/DPC_datastream_supplier.cpp | 18 +- .../data_products/DPX/DPC/DPC_delta_curve.cpp | 24 +- .../data_products/DPX/DPC/DPC_page.cpp | 2 +- .../data_products/DPX/DPC/DPC_page.hh | 4 +- .../data_products/DPX/DPC/DPC_plot.hh | 4 +- .../data_products/DPX/DPC/DPC_product.cpp | 2 +- .../data_products/DPX/DPC/DPC_product.hh | 4 +- .../data_products/DPX/DPC/DPC_std_curve.cpp | 16 +- .../data_products/DPX/DPC/DPC_table.cpp | 2 +- .../data_products/DPX/DPM/DPM_column.cpp | 2 +- .../data_products/DPX/DPM/DPM_curve.cpp | 22 +- .../data_products/DPX/DPM/DPM_extfn.cpp | 10 +- .../data_products/DPX/DPM/DPM_page.cpp | 6 +- .../data_products/DPX/DPM/DPM_parse_tree.cpp | 4 +- .../data_products/DPX/DPM/DPM_product.cpp | 14 +- .../data_products/DPX/DPM/DPM_relation.cpp | 12 +- .../data_products/DPX/DPM/DPM_table.cpp | 4 +- .../DPX/DPM/DPM_time_constraints.cpp | 2 +- .../data_products/DPX/DPM/DPM_var.cpp | 2 +- .../DPX/TESTING/DPC_TEST/test_view.cpp | 14 +- .../DPX/TESTING/DPC_TEST/test_view.hh | 8 +- .../DPX/TESTING/DS_exercisor/DS_exercisor.cpp | 8 +- .../DPX/test/unit_test/DPC_test.cpp | 50 ++-- .../DPX/test/unit_test/DPM_test.cpp | 26 +- .../DPX/test/unit_test/DS_test.cpp | 78 ++--- .../DPX/test/unit_test/test_view.cpp | 34 +-- .../DPX/test/unit_test/test_view.hh | 4 +- .../data_products/EQParse/eqparse_evaluate.c | 4 +- .../data_products/EQParse/eqparse_math.c | 72 ++--- .../data_products/EQParse/eqparse_stack.c | 2 +- .../data_products/EQParse/eqparse_test.c | 74 ++--- trick_source/data_products/Log/Csv.cpp | 4 +- trick_source/data_products/Log/DataStream.cpp | 6 +- .../data_products/Log/DataStreamFactory.cpp | 2 +- .../data_products/Log/DataStreamFactory.hh | 6 +- .../data_products/Log/DataStreamGroup.cpp | 70 ++--- trick_source/data_products/Log/Delta.cpp | 14 +- .../data_products/Log/ExternalProgram.cpp | 14 +- .../data_products/Log/ExternalProgram.hh | 12 +- trick_source/data_products/Log/MatLab.cpp | 150 +++++----- trick_source/data_products/Log/MatLab4.cpp | 20 +- .../data_products/Log/TrickBinary.cpp | 18 +- trick_source/data_products/Log/log.cpp | 160 +++++------ trick_source/data_products/Log/multiLog.cpp | 38 +-- .../data_products/Log/parseLogHeader.cpp | 10 +- .../data_products/Log/trick_byteswap.cpp | 10 +- .../data_products/Log/trick_byteswap.h | 4 +- trick_source/data_products/Var/var.cpp | 272 +++++++++--------- trick_source/data_products/Var/var.h | 10 +- .../ClassicCheckPointerAgent.cpp | 2 +- .../CheckPointRestart/CheckPointRestart.cpp | 2 +- .../Clock/test/BC635Clock_test.cpp | 6 +- trick_source/sim_services/Collect/collect.cpp | 4 +- .../CommandLineArguments.cpp | 10 +- trick_source/sim_services/DMTCP/DMTCP.cpp | 10 +- .../DataTypes/include/NormalStructMember.hh | 2 +- .../DataTypes/include/PointerDataType.hh | 2 +- .../DataTypes/include/PointerValue.hh | 2 +- .../sim_services/DataTypes/src/AllocInfo.cpp | 2 +- .../DataTypes/src/ArrayDataType.cpp | 2 +- .../DataTypes/src/TypeDictionary.cpp | 2 +- .../DataTypes/testing/EnumDeclarationTest.cpp | 2 +- .../Environment/Environment_c_intf.cpp | 4 +- .../sim_services/Executive/Executive.cpp | 2 +- .../Executive_add_depends_on_job.cpp | 14 +- .../Executive_add_scheduled_job_class.cpp | 8 +- .../Executive/Executive_add_sim_object.cpp | 2 +- .../Executive/Executive_c_intf.cpp | 2 +- .../Executive_check_all_jobs_handled.cpp | 2 +- .../Executive/Executive_checkpoint.cpp | 2 +- .../Executive/Executive_get_process_id.cpp | 2 +- .../Executive/Executive_loop_multi_thread.cpp | 2 +- .../Executive_loop_single_thread.cpp | 2 +- .../Executive_set_simobject_onoff.cpp | 2 +- .../Executive/Executive_shutdown.cpp | 2 +- .../Executive_write_s_job_execution.cpp | 2 +- .../sim_services/Executive/Threads_child.cpp | 2 +- .../Executive/test/Executive_test.cpp | 2 +- .../sim_services/InputProcessor/IPPython.cpp | 2 +- .../InputProcessor/IPPythonEvent.cpp | 14 +- .../InputProcessor/InputProcessor.cpp | 2 +- .../Integrator/src/IntegLoopManager.cpp | 2 +- .../Integrator/src/IntegLoopScheduler.cpp | 12 +- .../Integrator/src/Integrator.cpp | 24 +- .../Integrator/src/Integrator_C_Intf.cpp | 18 +- .../Integrator/src/regula_falsi.c | 2 +- .../trick_algorithms/RKF45_Integrator.cpp | 2 +- .../trick_algorithms/RKF78_Integrator.cpp | 4 +- .../Integrator/unittest/IBall.cpp | 4 +- .../Integrator/unittest/IRFBall.cpp | 12 +- .../sim_services/Integrator/unittest/ISat.cpp | 6 +- .../sim_services/Integrator/unittest/rftest.c | 6 +- .../sim_services/MasterSlave/MSSharedMem.cpp | 14 +- .../sim_services/MasterSlave/MSSocket.cpp | 28 +- .../sim_services/MasterSlave/Slave.cpp | 14 +- .../MemoryManager/MemoryManager.cpp | 2 +- .../MemoryManager/MemoryManager_C_Intf.cpp | 26 +- .../MemoryManager_add_attr_info.cpp | 10 +- .../MemoryManager_alloc_depends.cpp | 14 +- .../MemoryManager_clear_memory.cpp | 26 +- .../MemoryManager_declare_var.cpp | 2 +- .../MemoryManager/MemoryManager_get_size.cpp | 2 +- .../MemoryManager_io_src_intf.cpp | 6 +- .../MemoryManager_is_alloced.cpp | 2 +- .../MemoryManager_map_external_object.cpp | 4 +- .../MemoryManager/MemoryManager_realloc.cpp | 6 +- .../MemoryManager_ref_allocate.cpp | 2 +- .../MemoryManager_ref_assignment.cpp | 14 +- .../MemoryManager/MemoryManager_ref_name.cpp | 6 +- .../MemoryManager/MemoryManager_ref_var.cpp | 2 +- .../MemoryManager/MemoryManager_restore.cpp | 4 +- .../MemoryManager/MemoryManager_strdup.cpp | 2 +- .../MemoryManager/RefParseContext.cpp | 8 +- .../MemoryManager/extract_bitfield.c | 30 +- .../MemoryManager/extract_unsigned_bitfield.c | 8 +- .../MemoryManager/insert_bitfield.c | 32 +-- .../MemoryManager/parameter_types.c | 2 +- .../sim_services/MemoryManager/ref_to_value.c | 8 +- .../MemoryManager/test/Bitfield_tests.cpp | 60 ++-- .../MemoryManager/test/MM_alloc_deps.hh | 2 +- .../test/MM_ref_name_from_address.hh | 4 +- .../MemoryManager/test/MM_write_checkpoint.hh | 2 +- .../sim_services/MemoryManager/vval.c | 2 +- .../sim_services/MemoryManager/wcs_ext.c | 4 +- .../sim_services/Message/MessageCout.cpp | 6 +- .../sim_services/Message/MessagePublisher.cpp | 2 +- .../Message/message_publish_standalone.cpp | 2 +- .../MonteCarlo/MonteCarlo_funcs.cpp | 14 +- .../MonteCarlo/MonteCarlo_master_shutdown.cpp | 2 +- .../MonteCarlo/MonteCarlo_receive_results.cpp | 2 +- .../MonteCarlo_receive_slave_results.cpp | 22 +- .../MonteCarlo/MonteCarlo_run_queue.cpp | 2 +- .../MonteCarlo_slave_process_run.cpp | 2 +- .../MonteCarlo/MonteCarlo_spawn_slaves.cpp | 12 +- .../sim_services/MonteCarlo/MonteVarFile.cpp | 4 +- .../MonteCarlo/MonteVarRandom.cpp | 30 +- .../MonteCarlo/StlRandomGenerator.cpp | 112 ++++---- .../MonteCarlo/test/MonteCarlo_test.cpp | 148 +++++----- .../RealtimeSync/RealtimeSync_c_intf.cpp | 4 +- .../ScheduledJobQueue/ScheduledJobQueue.cpp | 10 +- .../test/ScheduledJobQueue_test.cpp | 96 +++---- trick_source/sim_services/SimTime/SimTime.cpp | 12 +- .../sim_services/ThreadBase/ThreadBase.cpp | 6 +- .../sim_services/Timer/test/ITimer_test.cpp | 20 +- .../VariableServerThread_write_data.cpp | 2 +- trick_source/trick_swig/swig_global_vars.cpp | 12 +- trick_source/trick_utils/comm/src/tc_accept.c | 4 +- .../trick_utils/comm/src/tc_clock_init.c | 2 +- .../trick_utils/comm/src/tc_connect.c | 20 +- .../trick_utils/comm/src/tc_dev_copy.c | 2 +- .../comm/src/tc_init_mcast_client.c | 4 +- .../trick_utils/comm/src/tc_isValid.c | 2 +- .../trick_utils/comm/src/tc_multiconnect.c | 18 +- trick_source/trick_utils/comm/src/tc_read.c | 22 +- .../trick_utils/comm/src/tc_read_byteswap.c | 2 +- trick_source/trick_utils/comm/src/tc_write.c | 4 +- .../trick_utils/comm/src/tc_write_byteswap.c | 2 +- .../trick_utils/comm/src/trick_byteswap.c | 4 +- .../trick_utils/comm/src/trick_error_hndlr.c | 4 +- .../trick_utils/comm/test/TCBlockioTest.cpp | 12 +- .../trick_utils/comm/test/TCConnectTest.cpp | 4 +- .../trick_utils/comm/test/TCDevCopyTest.cpp | 8 +- .../comm/test/TCDisconnectTest.cpp | 6 +- .../trick_utils/comm/test/TCErrorTest.cpp | 10 +- .../trick_utils/comm/test/TCIsValidTest.cpp | 8 +- .../trick_utils/comm/test/TCPendingTest.cpp | 6 +- .../comm/test/TCReadByteSwapTest.cpp | 2 +- .../comm/test/TCSetBlockIOTest.cpp | 6 +- .../comm/test_programs/dr_client.c | 26 +- .../comm/test_programs/tc_client.c | 6 +- .../test_programs/tc_multi_client_example.c | 18 +- .../test_programs/tc_multi_serv_example.c | 14 +- .../comm/test_programs/tc_server.c | 4 +- .../math/Unittest/euler_quat_test.cpp | 26 +- .../math/Unittest/euler_quat_test.hh | 8 +- trick_source/trick_utils/math/src/LUD_inv.c | 2 +- .../trick_utils/math/src/dLU_solver.c | 2 +- .../trick_utils/math/src/dS_function.c | 2 +- .../trick_utils/math/src/deuler_123.c | 6 +- .../trick_utils/math/src/deuler_123_quat.c | 20 +- .../trick_utils/math/src/deuler_132.c | 10 +- .../trick_utils/math/src/deuler_132_quat.c | 18 +- .../trick_utils/math/src/deuler_213.c | 10 +- .../trick_utils/math/src/deuler_213_quat.c | 26 +- .../trick_utils/math/src/deuler_231.c | 8 +- .../trick_utils/math/src/deuler_231_quat.c | 8 +- .../trick_utils/math/src/deuler_312.c | 4 +- .../trick_utils/math/src/deuler_312_quat.c | 28 +- .../trick_utils/math/src/deuler_321.c | 4 +- .../trick_utils/math/src/deuler_321_quat.c | 30 +- trick_source/trick_utils/math/src/dmtxm.c | 2 +- trick_source/trick_utils/math/src/dmxm.c | 2 +- .../trick_utils/math/src/gauss_rnd_bell.c | 2 +- .../trick_utils/math/src/gauss_rnd_pseudo.c | 2 +- trick_source/trick_utils/math/src/rand_num.c | 2 +- .../trick_utils/math/src/uniform_rnd_1.c | 2 +- .../math/test/UnitTestEulerQuat.cpp | 44 +-- trick_source/trick_utils/shm/src/tsm_init.c | 4 +- .../trick_utils/trick_adt/test_program/test.c | 10 +- .../units/Unittest/unit_cpp_test.cpp | 74 ++--- .../units/Unittest/units_conv_c_test.c | 6 +- trick_source/trick_utils/units/src/Unit.cpp | 4 +- .../trick_utils/units/src/units_conv.c | 10 +- .../units/test/UnitConvTestSuite.cpp | 2 +- 337 files changed, 2186 insertions(+), 2186 deletions(-) diff --git a/include/trick/ADefParseContext.hh b/include/trick/ADefParseContext.hh index 5355a1dc..f686ebd4 100644 --- a/include/trick/ADefParseContext.hh +++ b/include/trick/ADefParseContext.hh @@ -15,7 +15,7 @@ namespace Trick { class ADefParseContext { - public: + public: int debug ; /**< -- Debug level */ std::istream *is; /**< ** Input Stream */ diff --git a/include/trick/CheckPointAgent.hh b/include/trick/CheckPointAgent.hh index ea3948a9..7bd191ad 100644 --- a/include/trick/CheckPointAgent.hh +++ b/include/trick/CheckPointAgent.hh @@ -21,11 +21,11 @@ namespace Trick { typedef struct { VarNameElementType type; int index; - std::string name; + std::string name; } VarNameElement; /** - Base Class for dumping a checkpoint. + Base Class for dumping a checkpoint. */ class CheckPointAgent { @@ -60,7 +60,7 @@ namespace Trick { Push struct element name onto the left-side name stack. */ virtual void push_struct_elem( const char* name) ; - + /** Push array element index onto the left-side name stack. */ @@ -76,8 +76,8 @@ namespace Trick { object to the name on the left-side stack. */ virtual void assign_rvalue( std::ostream& chkpnt_os, - void* address, - ATTRIBUTES* attr, + void* address, + ATTRIBUTES* attr, int curr_dim, int offset )=0; diff --git a/include/trick/CheckPointRestart.hh b/include/trick/CheckPointRestart.hh index d08f869d..8feec31e 100644 --- a/include/trick/CheckPointRestart.hh +++ b/include/trick/CheckPointRestart.hh @@ -218,7 +218,7 @@ namespace Trick { @par Python Usage: @code trick.checkpoint() @endcode @param file_name - optional: name of checkpoint file to dump (default is "chkpnt_