diff --git a/COPYING b/COPYING index 5ab7695a..602bfc94 100644 --- a/COPYING +++ b/COPYING @@ -146,7 +146,7 @@ such a program is covered only if its contents constitute a work based on the Library (independent of the use of the Library in a tool for writing it). Whether that is true depends on what the Library does and what the program that uses the Library does. - + 1. You may copy and distribute verbatim copies of the Library's complete source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an diff --git a/examples/mares_nemo_test.c b/examples/mares_nemo_test.c index 6a0d1181..4028762b 100644 --- a/examples/mares_nemo_test.c +++ b/examples/mares_nemo_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/mares_puck_test.c b/examples/mares_puck_test.c index c27a87a4..c6e37e22 100644 --- a/examples/mares_puck_test.c +++ b/examples/mares_puck_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2009 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/oceanic_atom2_test.c b/examples/oceanic_atom2_test.c index 63ec51e1..60aac1a2 100644 --- a/examples/oceanic_atom2_test.c +++ b/examples/oceanic_atom2_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/oceanic_veo250_test.c b/examples/oceanic_veo250_test.c index d0b08a77..c26de855 100644 --- a/examples/oceanic_veo250_test.c +++ b/examples/oceanic_veo250_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/oceanic_vtpro_test.c b/examples/oceanic_vtpro_test.c index 8493ce6d..d360059d 100644 --- a/examples/oceanic_vtpro_test.c +++ b/examples/oceanic_vtpro_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/reefnet_sensus_test.c b/examples/reefnet_sensus_test.c index dc6a3453..9d7d29eb 100644 --- a/examples/reefnet_sensus_test.c +++ b/examples/reefnet_sensus_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/reefnet_sensuspro_test.c b/examples/reefnet_sensuspro_test.c index 0115708b..a8735896 100644 --- a/examples/reefnet_sensuspro_test.c +++ b/examples/reefnet_sensuspro_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/reefnet_sensusultra_test.c b/examples/reefnet_sensusultra_test.c index 96b55860..9ac9826f 100644 --- a/examples/reefnet_sensusultra_test.c +++ b/examples/reefnet_sensusultra_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/suunto_d9_test.c b/examples/suunto_d9_test.c index 20b88c2e..49a0ad36 100644 --- a/examples/suunto_d9_test.c +++ b/examples/suunto_d9_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/suunto_eon_test.c b/examples/suunto_eon_test.c index 141848bc..d5821b98 100644 --- a/examples/suunto_eon_test.c +++ b/examples/suunto_eon_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/suunto_vyper2_test.c b/examples/suunto_vyper2_test.c index b7daeb0c..368aae33 100644 --- a/examples/suunto_vyper2_test.c +++ b/examples/suunto_vyper2_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/suunto_vyper_test.c b/examples/suunto_vyper_test.c index 85b2295d..aaf9927d 100644 --- a/examples/suunto_vyper_test.c +++ b/examples/suunto_vyper_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/utils.c b/examples/utils.c index 5206bc00..9d0768f4 100644 --- a/examples/utils.c +++ b/examples/utils.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/utils.h b/examples/utils.h index ff22a455..e43c06ce 100644 --- a/examples/utils.h +++ b/examples/utils.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/uwatec_memomouse_test.c b/examples/uwatec_memomouse_test.c index d482ecdb..e27cdac2 100644 --- a/examples/uwatec_memomouse_test.c +++ b/examples/uwatec_memomouse_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/examples/uwatec_smart_test.c b/examples/uwatec_smart_test.c index fc9ba4f0..c6ee6881 100644 --- a/examples/uwatec_smart_test.c +++ b/examples/uwatec_smart_test.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/device.h b/include/libdivecomputer/device.h index 5dc57b35..7ba4bd6d 100644 --- a/include/libdivecomputer/device.h +++ b/include/libdivecomputer/device.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/mares.h b/include/libdivecomputer/mares.h index 2aa11284..c7af850b 100644 --- a/include/libdivecomputer/mares.h +++ b/include/libdivecomputer/mares.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/mares_nemo.h b/include/libdivecomputer/mares_nemo.h index 33891f3b..4ced926b 100644 --- a/include/libdivecomputer/mares_nemo.h +++ b/include/libdivecomputer/mares_nemo.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/mares_puck.h b/include/libdivecomputer/mares_puck.h index 4a45f833..67064743 100644 --- a/include/libdivecomputer/mares_puck.h +++ b/include/libdivecomputer/mares_puck.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2009 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/oceanic.h b/include/libdivecomputer/oceanic.h index 7f3a9d54..f8891206 100644 --- a/include/libdivecomputer/oceanic.h +++ b/include/libdivecomputer/oceanic.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/oceanic_atom2.h b/include/libdivecomputer/oceanic_atom2.h index c8cce4f1..4c52420a 100644 --- a/include/libdivecomputer/oceanic_atom2.h +++ b/include/libdivecomputer/oceanic_atom2.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/oceanic_veo250.h b/include/libdivecomputer/oceanic_veo250.h index 53df7b24..aaeee46f 100644 --- a/include/libdivecomputer/oceanic_veo250.h +++ b/include/libdivecomputer/oceanic_veo250.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/oceanic_vtpro.h b/include/libdivecomputer/oceanic_vtpro.h index e8626940..ba693f67 100644 --- a/include/libdivecomputer/oceanic_vtpro.h +++ b/include/libdivecomputer/oceanic_vtpro.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/parser.h b/include/libdivecomputer/parser.h index 16ca2b3f..65b18c9b 100644 --- a/include/libdivecomputer/parser.h +++ b/include/libdivecomputer/parser.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/reefnet.h b/include/libdivecomputer/reefnet.h index e574c605..ad3fb36f 100644 --- a/include/libdivecomputer/reefnet.h +++ b/include/libdivecomputer/reefnet.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/reefnet_sensus.h b/include/libdivecomputer/reefnet_sensus.h index ec7dfcd0..96ff5ba6 100644 --- a/include/libdivecomputer/reefnet_sensus.h +++ b/include/libdivecomputer/reefnet_sensus.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/reefnet_sensuspro.h b/include/libdivecomputer/reefnet_sensuspro.h index fc5571f2..e092fef5 100644 --- a/include/libdivecomputer/reefnet_sensuspro.h +++ b/include/libdivecomputer/reefnet_sensuspro.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/reefnet_sensusultra.h b/include/libdivecomputer/reefnet_sensusultra.h index 0eaf7218..4cff9024 100644 --- a/include/libdivecomputer/reefnet_sensusultra.h +++ b/include/libdivecomputer/reefnet_sensusultra.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/suunto.h b/include/libdivecomputer/suunto.h index 8872ea01..337dffd6 100644 --- a/include/libdivecomputer/suunto.h +++ b/include/libdivecomputer/suunto.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/suunto_d9.h b/include/libdivecomputer/suunto_d9.h index 734efd8b..d177c6cb 100644 --- a/include/libdivecomputer/suunto_d9.h +++ b/include/libdivecomputer/suunto_d9.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/suunto_eon.h b/include/libdivecomputer/suunto_eon.h index 31d8c7d9..3ee12777 100644 --- a/include/libdivecomputer/suunto_eon.h +++ b/include/libdivecomputer/suunto_eon.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/suunto_solution.h b/include/libdivecomputer/suunto_solution.h index 6f5b2109..619eb888 100644 --- a/include/libdivecomputer/suunto_solution.h +++ b/include/libdivecomputer/suunto_solution.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/suunto_vyper.h b/include/libdivecomputer/suunto_vyper.h index 651d5eca..a730b957 100644 --- a/include/libdivecomputer/suunto_vyper.h +++ b/include/libdivecomputer/suunto_vyper.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/suunto_vyper2.h b/include/libdivecomputer/suunto_vyper2.h index dabde04d..8619b3d3 100644 --- a/include/libdivecomputer/suunto_vyper2.h +++ b/include/libdivecomputer/suunto_vyper2.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/units.h b/include/libdivecomputer/units.h index f1c6a449..06367591 100644 --- a/include/libdivecomputer/units.h +++ b/include/libdivecomputer/units.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/uwatec.h b/include/libdivecomputer/uwatec.h index 572d1ddd..4ab1eecc 100644 --- a/include/libdivecomputer/uwatec.h +++ b/include/libdivecomputer/uwatec.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/uwatec_aladin.h b/include/libdivecomputer/uwatec_aladin.h index b73a755a..73226a96 100644 --- a/include/libdivecomputer/uwatec_aladin.h +++ b/include/libdivecomputer/uwatec_aladin.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/uwatec_memomouse.h b/include/libdivecomputer/uwatec_memomouse.h index d6e2d2ed..7eb5dc03 100644 --- a/include/libdivecomputer/uwatec_memomouse.h +++ b/include/libdivecomputer/uwatec_memomouse.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/include/libdivecomputer/uwatec_smart.h b/include/libdivecomputer/uwatec_smart.h index d0c98707..9f753eb2 100644 --- a/include/libdivecomputer/uwatec_smart.h +++ b/include/libdivecomputer/uwatec_smart.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/m4/pkg.m4 b/m4/pkg.m4 index 9bb3e068..d9becf2d 100644 --- a/m4/pkg.m4 +++ b/m4/pkg.m4 @@ -1,6 +1,6 @@ # pkg.m4 - Macros to locate and utilise pkg-config. -*- Autoconf -*- # serial 1 (pkg-config-0.24) -# +# # Copyright © 2004 Scott James Remnant . # # This program is free software; you can redistribute it and/or modify @@ -121,7 +121,7 @@ if test $pkg_failed = yes; then _PKG_SHORT_ERRORS_SUPPORTED if test $_pkg_short_errors_supported = yes; then $1[]_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "$2" 2>&1` - else + else $1[]_PKG_ERRORS=`$PKG_CONFIG --print-errors "$2" 2>&1` fi # Put the nasty error message in config.log where it belongs diff --git a/src/Makefile.am b/src/Makefile.am index 6a39b36f..595f0c7d 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -76,7 +76,7 @@ if OS_WIN32 libdivecomputer_la_SOURCES += libdivecomputer.rc endif -libdivecomputer_la_DEPENDENCIES = libdivecomputer.exp +libdivecomputer_la_DEPENDENCIES = libdivecomputer.exp libdivecomputer.exp: libdivecomputer.symbols $(AM_V_GEN) sed -e '/^$$/d' $< > $@ diff --git a/src/array.c b/src/array.c index b51b47bc..243ec343 100644 --- a/src/array.c +++ b/src/array.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/array.h b/src/array.h index 3d8ef47c..b08ed2ed 100644 --- a/src/array.h +++ b/src/array.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/checksum.c b/src/checksum.c index aa06edd4..8caf5634 100644 --- a/src/checksum.c +++ b/src/checksum.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -82,14 +82,14 @@ checksum_crc_ccitt_uint16 (const unsigned char data[], unsigned int size) 0xb75b, 0xa77a, 0x9719, 0x8738, 0xf7df, 0xe7fe, 0xd79d, 0xc7bc, 0x48c4, 0x58e5, 0x6886, 0x78a7, 0x0840, 0x1861, 0x2802, 0x3823, 0xc9cc, 0xd9ed, 0xe98e, 0xf9af, 0x8948, 0x9969, 0xa90a, 0xb92b, - 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, - 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, - 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, - 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, + 0x5af5, 0x4ad4, 0x7ab7, 0x6a96, 0x1a71, 0x0a50, 0x3a33, 0x2a12, + 0xdbfd, 0xcbdc, 0xfbbf, 0xeb9e, 0x9b79, 0x8b58, 0xbb3b, 0xab1a, + 0x6ca6, 0x7c87, 0x4ce4, 0x5cc5, 0x2c22, 0x3c03, 0x0c60, 0x1c41, + 0xedae, 0xfd8f, 0xcdec, 0xddcd, 0xad2a, 0xbd0b, 0x8d68, 0x9d49, 0x7e97, 0x6eb6, 0x5ed5, 0x4ef4, 0x3e13, 0x2e32, 0x1e51, 0x0e70, - 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, + 0xff9f, 0xefbe, 0xdfdd, 0xcffc, 0xbf1b, 0xaf3a, 0x9f59, 0x8f78, 0x9188, 0x81a9, 0xb1ca, 0xa1eb, 0xd10c, 0xc12d, 0xf14e, 0xe16f, - 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, + 0x1080, 0x00a1, 0x30c2, 0x20e3, 0x5004, 0x4025, 0x7046, 0x6067, 0x83b9, 0x9398, 0xa3fb, 0xb3da, 0xc33d, 0xd31c, 0xe37f, 0xf35e, 0x02b1, 0x1290, 0x22f3, 0x32d2, 0x4235, 0x5214, 0x6277, 0x7256, 0xb5ea, 0xa5cb, 0x95a8, 0x8589, 0xf56e, 0xe54f, 0xd52c, 0xc50d, diff --git a/src/checksum.h b/src/checksum.h index f078ef8f..4e54d458 100644 --- a/src/checksum.h +++ b/src/checksum.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/device-private.h b/src/device-private.h index 7ac530ea..8e183fb6 100644 --- a/src/device-private.h +++ b/src/device-private.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/device.c b/src/device.c index 41738a58..9fad7a23 100644 --- a/src/device.c +++ b/src/device.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/irda.c b/src/irda.c index 4b6b77b7..b15d09f4 100644 --- a/src/irda.c +++ b/src/irda.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -99,12 +99,12 @@ irda_socket_open (irda_t **out, dc_context_t *context) // Confirm that the winsock dll supports version 2.2. // Note that if the dll supports versions greater than 2.2 in addition to // 2.2, it will still return 2.2 since that is the version we requested. - if (LOBYTE (wsaData.wVersion) != 2 || + if (LOBYTE (wsaData.wVersion) != 2 || HIBYTE (wsaData.wVersion) != 2) { ERROR (context, "Incorrect winsock version."); WSACleanup (); free (device); - return -1; + return -1; } #endif @@ -161,7 +161,7 @@ irda_socket_close (irda_t *device) } #endif - // Free memory. + // Free memory. free (device); return 0; @@ -251,7 +251,7 @@ irda_socket_discover (irda_t *device, irda_callback_t callback, void *userdata) #ifdef _WIN32 for (unsigned int i = 0; i < list->numDevice; ++i) { unsigned int address = array_uint32_le (list->Device[i].irdaDeviceID); - unsigned int hints = (list->Device[i].irdaDeviceHints1 << 8) + + unsigned int hints = (list->Device[i].irdaDeviceHints1 << 8) + list->Device[i].irdaDeviceHints2; INFO (device->context, @@ -261,10 +261,10 @@ irda_socket_discover (irda_t *device, irda_callback_t callback, void *userdata) list->Device[i].irdaCharSet, hints); - callback (address, + callback (address, list->Device[i].irdaDeviceName, list->Device[i].irdaCharSet, - hints, + hints, userdata); } #else @@ -278,9 +278,9 @@ irda_socket_discover (irda_t *device, irda_callback_t callback, void *userdata) list->dev[i].charset, hints); - callback (list->dev[i].daddr, - list->dev[i].info, - list->dev[i].charset, + callback (list->dev[i].daddr, + list->dev[i].info, + list->dev[i].charset, hints, userdata); } diff --git a/src/irda.h b/src/irda.h index ff284f88..d83037a4 100644 --- a/src/irda.h +++ b/src/irda.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/mares_nemo.c b/src/mares_nemo.c index c2052ea2..e479b027 100644 --- a/src/mares_nemo.c +++ b/src/mares_nemo.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/mares_nemo_parser.c b/src/mares_nemo_parser.c index 5eee1f33..5d177b4f 100644 --- a/src/mares_nemo_parser.c +++ b/src/mares_nemo_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/mares_puck.c b/src/mares_puck.c index b989b9aa..361a7530 100644 --- a/src/mares_puck.c +++ b/src/mares_puck.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2009 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/oceanic_atom2.c b/src/oceanic_atom2.c index 2f307219..2746426d 100644 --- a/src/oceanic_atom2.c +++ b/src/oceanic_atom2.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -518,7 +518,7 @@ oceanic_atom2_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -580,7 +580,7 @@ oceanic_atom2_device_read (dc_device_t *abstract, unsigned int address, unsigned // Read the package. unsigned int number = address / PAGESIZE; unsigned char answer[PAGESIZE + 1] = {0}; - unsigned char command[4] = {0xB1, + unsigned char command[4] = {0xB1, (number >> 8) & 0xFF, // high (number ) & 0xFF, // low 0}; diff --git a/src/oceanic_common.c b/src/oceanic_common.c index 7b9f79d6..f384f4c5 100644 --- a/src/oceanic_common.c +++ b/src/oceanic_common.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2009 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/oceanic_common.h b/src/oceanic_common.h index af17cf3d..a9286aa4 100644 --- a/src/oceanic_common.h +++ b/src/oceanic_common.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2009 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/oceanic_veo250.c b/src/oceanic_veo250.c index 1e9f91d1..c7828e46 100644 --- a/src/oceanic_veo250.c +++ b/src/oceanic_veo250.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -323,7 +323,7 @@ oceanic_veo250_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -408,7 +408,7 @@ oceanic_veo250_device_read (dc_device_t *abstract, unsigned int address, unsigne unsigned int first = address / PAGESIZE; unsigned int last = first + npackets - 1; unsigned char answer[(PAGESIZE + 1) * MULTIPAGE + 1] = {0}; - unsigned char command[6] = {0x20, + unsigned char command[6] = {0x20, (first ) & 0xFF, // low (first >> 8) & 0xFF, // high (last ) & 0xFF, // low diff --git a/src/oceanic_vtpro.c b/src/oceanic_vtpro.c index cdc5ee77..5696045e 100644 --- a/src/oceanic_vtpro.c +++ b/src/oceanic_vtpro.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -368,7 +368,7 @@ oceanic_vtpro_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; diff --git a/src/parser-private.h b/src/parser-private.h index b6e83dba..63f0f4fe 100644 --- a/src/parser-private.h +++ b/src/parser-private.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/parser.c b/src/parser.c index 568bb947..7cc7f4ed 100644 --- a/src/parser.c +++ b/src/parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/reefnet_sensus.c b/src/reefnet_sensus.c index c2e68a47..6504342b 100644 --- a/src/reefnet_sensus.c +++ b/src/reefnet_sensus.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -400,7 +400,7 @@ reefnet_sensus_extract_dives (dc_device_t *abstract, const unsigned char data[], // Current sample is complete. nsamples++; - // The end of a dive is reached when 17 consecutive + // The end of a dive is reached when 17 consecutive // depth samples of less than 3 feet have been found. if (depth < 13 + 3) { count++; diff --git a/src/reefnet_sensus_parser.c b/src/reefnet_sensus_parser.c index 74e55b3d..cbbb5dd2 100644 --- a/src/reefnet_sensus_parser.c +++ b/src/reefnet_sensus_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2009 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -98,7 +98,7 @@ reefnet_sensus_parser_create (dc_parser_t **out, dc_context_t *context, unsigned static dc_status_t reefnet_sensus_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; @@ -231,9 +231,9 @@ reefnet_sensus_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback unsigned int offset = 0; while (offset + 7 <= size) { if (data[offset] == 0xFF && data[offset + 6] == 0xFE) { - + unsigned int time = 0; - unsigned int interval = data[offset + 1]; + unsigned int interval = data[offset + 1]; unsigned int nsamples = 0, count = 0; offset += 7; @@ -262,7 +262,7 @@ reefnet_sensus_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callback // Current sample is complete. nsamples++; - // The end of a dive is reached when 17 consecutive + // The end of a dive is reached when 17 consecutive // depth samples of less than 3 feet have been found. if (depth < SAMPLE_DEPTH_ADJUST + 3) { count++; diff --git a/src/reefnet_sensuspro.c b/src/reefnet_sensuspro.c index df6b7171..b462f558 100644 --- a/src/reefnet_sensuspro.c +++ b/src/reefnet_sensuspro.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -133,7 +133,7 @@ reefnet_sensuspro_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -379,7 +379,7 @@ reefnet_sensuspro_extract_dives (dc_device_t *abstract, const unsigned char data current--; if (memcmp (data + current, header, sizeof (header)) == 0) { // Once a start marker is found, start searching - // for the corresponding stop marker. The search is + // for the corresponding stop marker. The search is // now limited to the start of the previous dive. int found = 0; unsigned int offset = current + 10; // Skip non-sample data. @@ -400,7 +400,7 @@ reefnet_sensuspro_extract_dives (dc_device_t *abstract, const unsigned char data unsigned int timestamp = array_uint32_le (data + current + 6); if (device && timestamp <= device->timestamp) return DC_STATUS_SUCCESS; - + if (callback && !callback (data + current, offset + 2 - current, data + current + 6, 4, userdata)) return DC_STATUS_SUCCESS; diff --git a/src/reefnet_sensuspro_parser.c b/src/reefnet_sensuspro_parser.c index 781d60a9..6f818e8b 100644 --- a/src/reefnet_sensuspro_parser.c +++ b/src/reefnet_sensuspro_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -97,7 +97,7 @@ reefnet_sensuspro_parser_create (dc_parser_t **out, dc_context_t *context, unsig static dc_status_t reefnet_sensuspro_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; @@ -227,11 +227,11 @@ reefnet_sensuspro_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callb return DC_STATUS_DATAFORMAT; unsigned int time = 0; - unsigned int interval = array_uint16_le (data + offset + 4); + unsigned int interval = array_uint16_le (data + offset + 4); offset += 10; - while (offset + sizeof (footer) <= size && - memcmp (data + offset, footer, sizeof (footer)) != 0) + while (offset + sizeof (footer) <= size && + memcmp (data + offset, footer, sizeof (footer)) != 0) { unsigned int value = array_uint16_le (data + offset); unsigned int depth = (value & 0x01FF); diff --git a/src/reefnet_sensusultra.c b/src/reefnet_sensusultra.c index 3e0f8483..64058305 100644 --- a/src/reefnet_sensusultra.c +++ b/src/reefnet_sensusultra.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -142,7 +142,7 @@ reefnet_sensusultra_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -317,7 +317,7 @@ reefnet_sensusultra_page (reefnet_sensusultra_device_t *device, unsigned char *d unsigned int nretries = 0; dc_status_t rc = DC_STATUS_SUCCESS; while ((rc = reefnet_sensusultra_packet (device, data, size, 2)) != DC_STATUS_SUCCESS) { - // Automatically discard a corrupted packet, + // Automatically discard a corrupted packet, // and request a new one. if (rc != DC_STATUS_PROTOCOL) return rc; diff --git a/src/reefnet_sensusultra_parser.c b/src/reefnet_sensusultra_parser.c index 63291433..e4ed80a8 100644 --- a/src/reefnet_sensusultra_parser.c +++ b/src/reefnet_sensusultra_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -97,7 +97,7 @@ reefnet_sensusultra_parser_create (dc_parser_t **out, dc_context_t *context, uns static dc_status_t reefnet_sensusultra_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; @@ -231,8 +231,8 @@ reefnet_sensusultra_parser_samples_foreach (dc_parser_t *abstract, dc_sample_cal unsigned int interval = array_uint16_le (data + offset + 8); offset += 16; - while (offset + sizeof (footer) <= size && - memcmp (data + offset, footer, sizeof (footer)) != 0) + while (offset + sizeof (footer) <= size && + memcmp (data + offset, footer, sizeof (footer)) != 0) { dc_sample_value_t sample = {0}; diff --git a/src/ringbuffer.c b/src/ringbuffer.c index e0da1552..72318d06 100644 --- a/src/ringbuffer.c +++ b/src/ringbuffer.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/ringbuffer.h b/src/ringbuffer.h index f6401e85..3915739b 100644 --- a/src/ringbuffer.h +++ b/src/ringbuffer.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/serial.h b/src/serial.h index 0962f4e5..4b1e0f33 100644 --- a/src/serial.h +++ b/src/serial.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -81,7 +81,7 @@ int serial_configure (serial_t *device, int baudrate, int databits, int parity, // // * Timeout (timeout > 0): // -// The read function is blocked until all the requested bytes have +// The read function is blocked until all the requested bytes have // been received. If the requested number of bytes does not arrive // within the specified amount of time, the function will return // with the bytes that have already been received. diff --git a/src/serial_posix.c b/src/serial_posix.c index d44c51d0..2748957a 100644 --- a/src/serial_posix.c +++ b/src/serial_posix.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -171,7 +171,7 @@ serial_open (serial_t **out, dc_context_t *context, const char* name) } #endif - // Retrieve the current terminal attributes, to + // Retrieve the current terminal attributes, to // be able to restore them when closing the device. // It is also used to check if the obtained // file descriptor represents a terminal device. @@ -212,7 +212,7 @@ serial_close (serial_t *device) return -1; } - // Free memory. + // Free memory. free (device); return 0; @@ -244,9 +244,9 @@ serial_configure (serial_t *device, int baudrate, int databits, int parity, int tty.c_lflag &= ~(ICANON | ECHO | ISIG | IEXTEN); // Enable the receiver (CREAD) and ignore modem control lines (CLOCAL). - tty.c_cflag |= (CLOCAL | CREAD); + tty.c_cflag |= (CLOCAL | CREAD); - // VMIN is the minimum number of characters for non-canonical read + // VMIN is the minimum number of characters for non-canonical read // and VTIME is the timeout in deciseconds for non-canonical read. // Setting both of these parameters to zero implies that a read // will return immediately, only giving the currently available @@ -682,7 +682,7 @@ serial_flush (serial_t *device, int queue) serial_get_received (device), serial_get_transmitted (device)); - int flags = 0; + int flags = 0; switch (queue) { case SERIAL_QUEUE_INPUT: diff --git a/src/serial_win32.c b/src/serial_win32.c index 31b73681..2afb54d4 100644 --- a/src/serial_win32.c +++ b/src/serial_win32.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -182,7 +182,7 @@ serial_close (serial_t *device) return 0; // Restore the initial communication settings and timeouts. - if (!SetCommState (device->hFile, &device->dcb) || + if (!SetCommState (device->hFile, &device->dcb) || !SetCommTimeouts (device->hFile, &device->timeouts)) { SYSERROR (device->context, GetLastError ()); CloseHandle (device->hFile); @@ -197,7 +197,7 @@ serial_close (serial_t *device) return -1; } - // Free memory. + // Free memory. free (device); return 0; @@ -232,7 +232,7 @@ serial_configure (serial_t *device, int baudrate, int databits, int parity, int // Character size. if (databits >= 5 && databits <= 8) dcb.ByteSize = databits; - else + else return -1; // Parity checking. @@ -328,21 +328,21 @@ serial_set_timeout (serial_t *device, long timeout) // Update the settings. if (timeout < 0) { // Blocking mode. - timeouts.ReadIntervalTimeout = 0; + timeouts.ReadIntervalTimeout = 0; timeouts.ReadTotalTimeoutMultiplier = 0; timeouts.ReadTotalTimeoutConstant = 0; timeouts.WriteTotalTimeoutMultiplier = 0; timeouts.WriteTotalTimeoutConstant = 0; } else if (timeout == 0) { // Non-blocking mode. - timeouts.ReadIntervalTimeout = MAXDWORD; + timeouts.ReadIntervalTimeout = MAXDWORD; timeouts.ReadTotalTimeoutMultiplier = 0; timeouts.ReadTotalTimeoutConstant = 0; timeouts.WriteTotalTimeoutMultiplier = 0; timeouts.WriteTotalTimeoutConstant = 0; } else { // Standard timeout mode. - timeouts.ReadIntervalTimeout = 0; + timeouts.ReadIntervalTimeout = 0; timeouts.ReadTotalTimeoutMultiplier = 0; timeouts.ReadTotalTimeoutConstant = timeout; timeouts.WriteTotalTimeoutMultiplier = 0; @@ -470,7 +470,7 @@ serial_flush (serial_t *device, int queue) serial_get_received (device), serial_get_transmitted (device)); - DWORD flags = 0; + DWORD flags = 0; switch (queue) { case SERIAL_QUEUE_INPUT: @@ -547,12 +547,12 @@ serial_set_dtr (serial_t *device, int level) INFO (device->context, "DTR: value=%i", level); int status = (level ? SETDTR : CLRDTR); - + if (!EscapeCommFunction (device->hFile, status)) { SYSERROR (device->context, GetLastError ()); return -1; } - + return 0; } @@ -566,12 +566,12 @@ serial_set_rts (serial_t *device, int level) INFO (device->context, "RTS: value=%i", level); int status = (level ? SETRTS : CLRRTS); - + if (!EscapeCommFunction (device->hFile, status)) { SYSERROR (device->context, GetLastError ()); return -1; } - + return 0; } diff --git a/src/suunto_common.c b/src/suunto_common.c index 91aa6699..44c52992 100644 --- a/src/suunto_common.c +++ b/src/suunto_common.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -83,7 +83,7 @@ suunto_common_extract_dives (suunto_common_device_t *device, const suunto_common } // Validate the end-of-profile pointer. - if (eop < layout->rb_profile_begin || + if (eop < layout->rb_profile_begin || eop >= layout->rb_profile_end || data[eop] != 0x82) { diff --git a/src/suunto_common.h b/src/suunto_common.h index 9f40113d..151fe45a 100644 --- a/src/suunto_common.h +++ b/src/suunto_common.h @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/suunto_d9.c b/src/suunto_d9.c index 039ae98b..fa4a2632 100644 --- a/src/suunto_d9.c +++ b/src/suunto_d9.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -219,7 +219,7 @@ suunto_d9_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; diff --git a/src/suunto_d9_parser.c b/src/suunto_d9_parser.c index 65e7e872..4e34f088 100644 --- a/src/suunto_d9_parser.c +++ b/src/suunto_d9_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -113,7 +113,7 @@ suunto_d9_parser_create (dc_parser_t **out, dc_context_t *context, unsigned int static dc_status_t suunto_d9_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; diff --git a/src/suunto_eon.c b/src/suunto_eon.c index de7d2aa2..c9c78d20 100644 --- a/src/suunto_eon.c +++ b/src/suunto_eon.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -137,7 +137,7 @@ suunto_eon_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; diff --git a/src/suunto_eon_parser.c b/src/suunto_eon_parser.c index b2877100..f89fe2ae 100644 --- a/src/suunto_eon_parser.c +++ b/src/suunto_eon_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -88,7 +88,7 @@ suunto_eon_parser_create (dc_parser_t **out, dc_context_t *context, int spyder) static dc_status_t suunto_eon_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; diff --git a/src/suunto_solution.c b/src/suunto_solution.c index 4647ac57..1d7b227b 100644 --- a/src/suunto_solution.c +++ b/src/suunto_solution.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/suunto_solution_parser.c b/src/suunto_solution_parser.c index 2da6a7bd..0d9e9783 100644 --- a/src/suunto_solution_parser.c +++ b/src/suunto_solution_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, diff --git a/src/suunto_vyper.c b/src/suunto_vyper.c index 0e959d03..b259259e 100644 --- a/src/suunto_vyper.c +++ b/src/suunto_vyper.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -163,7 +163,7 @@ suunto_vyper_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -187,16 +187,16 @@ suunto_vyper_send (suunto_vyper_device_t *device, const unsigned char command[], return EXITCODE (n); } - // If the interface sends an echo back (which is the case for many clone - // interfaces), this echo should be removed from the input queue before - // attempting to read the real reply from the dive computer. Otherwise, - // the data transfer will fail. Timing is also critical here! We have to - // wait at least until the echo appears (40ms), but not until the reply + // If the interface sends an echo back (which is the case for many clone + // interfaces), this echo should be removed from the input queue before + // attempting to read the real reply from the dive computer. Otherwise, + // the data transfer will fail. Timing is also critical here! We have to + // wait at least until the echo appears (40ms), but not until the reply // from the dive computer appears (600ms). - // The original suunto interface does not have this problem, because it - // does not send an echo and the RTS switching makes it impossible to - // receive the reply before RTS is cleared. We have to wait some time - // before clearing RTS (around 30ms). But if we wait too long (> 500ms), + // The original suunto interface does not have this problem, because it + // does not send an echo and the RTS switching makes it impossible to + // receive the reply before RTS is cleared. We have to wait some time + // before clearing RTS (around 30ms). But if we wait too long (> 500ms), // the reply disappears again. serial_sleep (device->port, 200); serial_flush (device->port, SERIAL_QUEUE_INPUT); @@ -351,13 +351,13 @@ suunto_vyper_read_dive (dc_device_t *abstract, dc_buffer_t *buffer, int init, dc unsigned char answer[SZ_PACKET + 3] = {0}; int n = serial_read (device->port, answer, 2); if (n != 2) { - // If no data is received because a timeout occured, we assume - // the last package was already received and the transmission - // can be finished. Unfortunately this is not 100% reliable, - // because there is always a small chance that more data will - // arrive later (especially with a short timeout). But it works + // If no data is received because a timeout occured, we assume + // the last package was already received and the transmission + // can be finished. Unfortunately this is not 100% reliable, + // because there is always a small chance that more data will + // arrive later (especially with a short timeout). But it works // good enough in practice. - // Only for the very first package, we can be sure there was + // Only for the very first package, we can be sure there was // an error, because the DC always sends at least one package. if (n == 0 && npackages != 0) break; @@ -366,7 +366,7 @@ suunto_vyper_read_dive (dc_device_t *abstract, dc_buffer_t *buffer, int init, dc } // Verify the header of the package. - if (answer[0] != command[0] || + if (answer[0] != command[0] || answer[1] > SZ_PACKET) { ERROR (abstract->context, "Unexpected answer start byte(s)."); return DC_STATUS_PROTOCOL; @@ -388,9 +388,9 @@ suunto_vyper_read_dive (dc_device_t *abstract, dc_buffer_t *buffer, int init, dc return DC_STATUS_PROTOCOL; } - // The DC sends a null package (a package with length zero) when it - // has reached the end of its internal ring buffer. From this point on, - // the current dive has been overwritten with newer data. Therefore, + // The DC sends a null package (a package with length zero) when it + // has reached the end of its internal ring buffer. From this point on, + // the current dive has been overwritten with newer data. Therefore, // we discard the current (incomplete) dive and end the transmission. if (len == 0) { dc_buffer_clear (buffer); @@ -415,8 +415,8 @@ suunto_vyper_read_dive (dc_device_t *abstract, dc_buffer_t *buffer, int init, dc nbytes += len; // If a package is smaller than $SZ_PACKET bytes, - // we assume it's the last packet and the transmission can be - // finished early. However, this approach does not work if the + // we assume it's the last packet and the transmission can be + // finished early. However, this approach does not work if the // last packet is exactly $SZ_PACKET bytes long! #if 0 if (len != SZ_PACKET) @@ -430,9 +430,9 @@ suunto_vyper_read_dive (dc_device_t *abstract, dc_buffer_t *buffer, int init, dc return DC_STATUS_NOMEMORY; } - // The DC traverses its internal ring buffer backwards. The most recent - // dive is send first (which allows you to download only the new dives), - // but also the contents of each dive is reversed. Therefore, we reverse + // The DC traverses its internal ring buffer backwards. The most recent + // dive is send first (which allows you to download only the new dives), + // but also the contents of each dive is reversed. Therefore, we reverse // the bytes again before returning them to the application. array_reverse_bytes (dc_buffer_get_data (buffer), dc_buffer_get_size (buffer)); diff --git a/src/suunto_vyper2.c b/src/suunto_vyper2.c index 7289302e..e6dbd27d 100644 --- a/src/suunto_vyper2.c +++ b/src/suunto_vyper2.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -171,7 +171,7 @@ suunto_vyper2_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; diff --git a/src/suunto_vyper_parser.c b/src/suunto_vyper_parser.c index 9a33bab8..25b134bd 100644 --- a/src/suunto_vyper_parser.c +++ b/src/suunto_vyper_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -85,7 +85,7 @@ suunto_vyper_parser_create (dc_parser_t **out, dc_context_t *context) static dc_status_t suunto_vyper_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; diff --git a/src/uwatec_aladin.c b/src/uwatec_aladin.c index a1d157a1..d01a92a1 100644 --- a/src/uwatec_aladin.c +++ b/src/uwatec_aladin.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -144,7 +144,7 @@ uwatec_aladin_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -313,10 +313,10 @@ uwatec_aladin_extract_dives (dc_device_t *abstract, const unsigned char* data, u int profiles = 1; // Both ring buffers are traversed backwards to retrieve the most recent - // dives first. This allows you to download only the new dives and avoids + // dives first. This allows you to download only the new dives and avoids // having to rely on the number of profiles in the ring buffer (which - // is buggy according to the documentation). During the traversal, the - // previous pointer does always point to the end of the dive data and + // is buggy according to the documentation). During the traversal, the + // previous pointer does always point to the end of the dive data and // we move the current pointer backwards until a start marker is found. unsigned int previous = eop; unsigned int current = eop; @@ -353,7 +353,7 @@ uwatec_aladin_extract_dives (dc_device_t *abstract, const unsigned char* data, u } } while (current != eop); - if (len >= 1) { + if (len >= 1) { // Skip the start marker. len--; unsigned int begin = RB_PROFILE_NEXT (current); diff --git a/src/uwatec_memomouse.c b/src/uwatec_memomouse.c index 95b29b3a..101ff19d 100644 --- a/src/uwatec_memomouse.c +++ b/src/uwatec_memomouse.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -143,7 +143,7 @@ uwatec_memomouse_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; @@ -222,10 +222,10 @@ uwatec_memomouse_read_packet_outer (uwatec_memomouse_device_t *device, unsigned dc_status_t rc = DC_STATUS_SUCCESS; while ((rc = uwatec_memomouse_read_packet (device, data, size, result)) != DC_STATUS_SUCCESS) { - // Automatically discard a corrupted packet, + // Automatically discard a corrupted packet, // and request a new one. if (rc != DC_STATUS_PROTOCOL) - return rc; + return rc; // Flush the input buffer. serial_flush (device->port, SERIAL_QUEUE_INPUT); @@ -375,13 +375,13 @@ uwatec_memomouse_dump_internal (uwatec_memomouse_device_t *device, dc_buffer_t * // Without this delay, the transfer will fail most of the time. serial_sleep (device->port, 50); - // Keep send the command to the device, + // Keep send the command to the device, // until the ACK answer is received. unsigned char answer = NAK; while (answer == NAK) { // Flush the input buffer. serial_flush (device->port, SERIAL_QUEUE_INPUT); - + // Send the command to the device. int n = serial_write (device->port, command, sizeof (command)); if (n != sizeof (command)) { @@ -501,8 +501,8 @@ uwatec_memomouse_extract_dives (dc_device_t *abstract, const unsigned char data[ unsigned int previous = 0; unsigned int current = 5; while (current + 18 <= size) { - // Memomouse sends all the data twice. The first time, it sends - // the data starting from the oldest dive towards the newest dive. + // Memomouse sends all the data twice. The first time, it sends + // the data starting from the oldest dive towards the newest dive. // Next, it send the same data in reverse order (newest to oldest). // We abort the parsing once we detect the first duplicate dive. // The second data stream contains always exactly 37 dives, and not diff --git a/src/uwatec_memomouse_parser.c b/src/uwatec_memomouse_parser.c index 3609ef95..c65cd1a1 100644 --- a/src/uwatec_memomouse_parser.c +++ b/src/uwatec_memomouse_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -82,7 +82,7 @@ uwatec_memomouse_parser_create (dc_parser_t **out, dc_context_t *context, unsign static dc_status_t uwatec_memomouse_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; @@ -254,7 +254,7 @@ uwatec_memomouse_parser_samples_foreach (dc_parser_t *abstract, dc_sample_callba sample.vendor.type = SAMPLE_VENDOR_UWATEC_ALADIN; sample.vendor.size = 0; sample.vendor.data = data + offset; - + // Decompression information. if (offset + 1 > size) return DC_STATUS_DATAFORMAT; diff --git a/src/uwatec_smart.c b/src/uwatec_smart.c index bd6a0aee..2f48ecd5 100644 --- a/src/uwatec_smart.c +++ b/src/uwatec_smart.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -218,7 +218,7 @@ uwatec_smart_device_close (dc_device_t *abstract) return DC_STATUS_IO; } - // Free memory. + // Free memory. free (device); return DC_STATUS_SUCCESS; diff --git a/src/uwatec_smart_parser.c b/src/uwatec_smart_parser.c index dd4734ee..717688bf 100644 --- a/src/uwatec_smart_parser.c +++ b/src/uwatec_smart_parser.c @@ -1,18 +1,18 @@ -/* +/* * libdivecomputer - * + * * Copyright (C) 2008 Jef Driesen - * + * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. - * + * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. - * + * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, @@ -305,7 +305,7 @@ uwatec_smart_parser_create (dc_parser_t **out, dc_context_t *context, unsigned i static dc_status_t uwatec_smart_parser_destroy (dc_parser_t *abstract) { - // Free memory. + // Free memory. free (abstract); return DC_STATUS_SUCCESS; diff --git a/src/zeagle_n2ition3.c b/src/zeagle_n2ition3.c index 1e19d497..16b42f53 100644 --- a/src/zeagle_n2ition3.c +++ b/src/zeagle_n2ition3.c @@ -314,7 +314,7 @@ zeagle_n2ition3_device_foreach (dc_device_t *abstract, dc_dive_callback_t callba ERROR (abstract->context, "Invalid ringbuffer pointer detected."); return DC_STATUS_DATAFORMAT; } - + // The logbook ringbuffer can store at most 60 dives, even if the profile // data could store more (e.g. many small dives). But it's also possible // that the profile ringbuffer is filled faster than the logbook ringbuffer @@ -332,7 +332,7 @@ zeagle_n2ition3_device_foreach (dc_device_t *abstract, dc_dive_callback_t callba // Get the profile length. unsigned int length = ringbuffer_distance (current, previous, 1, RB_PROFILE_BEGIN, RB_PROFILE_END); - + // Check for a ringbuffer overflow. if (total + length > RB_PROFILE_END - RB_PROFILE_BEGIN) { count = i; @@ -359,7 +359,7 @@ zeagle_n2ition3_device_foreach (dc_device_t *abstract, dc_dive_callback_t callba unsigned int available = 0; unsigned int remaining = total; unsigned int offset = RB_PROFILE_END - RB_PROFILE_BEGIN; - + idx = last; previous = eop; unsigned int address = previous; @@ -374,7 +374,7 @@ zeagle_n2ition3_device_foreach (dc_device_t *abstract, dc_dive_callback_t callba while (nbytes < length) { if (address == RB_PROFILE_BEGIN) address = RB_PROFILE_END; - + unsigned int len = SZ_PACKET; if (RB_PROFILE_BEGIN + len > address) len = address - RB_PROFILE_BEGIN; // End of ringbuffer.