Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51610b2

Browse files
committed
Release v2.6
Squashed commit of the following:commitd63b36aAuthor: astand <ast.and@bk.ru>Date: Thu Sep 29 22:40:32 2022 +0300 Fixed long line reading from istream.commit9fbe4fdAuthor: Astakhov Andrey <ast.and@bk.ru>Date: Tue Jul 26 22:51:21 2022 +0300 New monitor impl (#14) * Added build configuration for generated files. * Hash and SysTick monitor function wrapped to macros. * Release editing. App version printing.commit5504578Merge:4c4bf72f93b297Author: Astakhov Andrey <ast.and@bk.ru>Date: Sun Jul 24 23:45:28 2022 +0300 Merge pull request#13 from astand/gen-options Optional sources generationcommitf93b297Author: astand <ast.and@bk.ru>Date: Sun Jul 24 23:44:55 2022 +0300 Update release notes.commitd95209aAuthor: astand <ast.and@bk.ru>Date: Sun Jul 24 23:37:24 2022 +0300 Fixed astyle script.commit630e4ebAuthor: astand <ast.and@bk.ru>Date: Sun Jul 24 23:36:15 2022 +0300 Added script to remove all generated code.commitaad15d4Author: astand <ast.and@bk.ru>Date: Sun Jul 24 23:36:01 2022 +0300 Added option to disable some sources generation.commit54ff5c0Author: astand <ast.and@bk.ru>Date: Sun Jul 24 23:01:27 2022 +0300 Extended bitext test.commitf8848a3Author: astand <ast.and@bk.ru>Date: Sat Jul 23 21:28:19 2022 +0300 Removed unuseful things.commitc05ee54Author: astand <ast.and@bk.ru>Date: Sat Jul 23 17:12:25 2022 +0300 Added versions to FS gen config.commit2ae8673Author: astand <ast.and@bk.ru>Date: Sat Jul 23 16:52:47 2022 +0300 Removed overhead in fs-creator.commit792423eAuthor: astand <ast.and@bk.ru>Date: Sat Jul 23 16:33:24 2022 +0300 Added tests for bitext function (from gen code).commite0b0d41Author: astand <ast.and@bk.ru>Date: Sat Jul 23 15:49:46 2022 +0300 Small enhancement,commit0f95aaeAuthor: astand <ast.and@bk.ru>Date: Thu Jul 21 22:19:26 2022 +0300 Tests updated.commite3d732fAuthor: astand <ast.and@bk.ru>Date: Thu Jul 21 22:06:31 2022 +0300 New config in new config parser class.commit92d1b94Author: astand <ast.and@bk.ru>Date: Wed Jul 20 23:39:22 2022 +0300 Arguments parsing in separated class.commitb6cb000Author: astand <ast.and@bk.ru>Date: Tue Jul 19 11:39:31 2022 +0300 New generation options are introduced in help message.commit4c4bf72Author: astand <ast.and@bk.ru>Date: Wed Jul 20 00:16:42 2022 +0300 Added GTEST support.commit677efdfMerge:f986286322becfAuthor: Astakhov Andrey <ast.and@bk.ru>Date: Tue Jul 19 11:04:37 2022 +0300 Merge pull request#12 from astand/fix-opt Structural refactoring and changes in fmon-* source code for making fmon-* driver's support a bit easier.commit322becfAuthor: astand <ast.and@bk.ru>Date: Sat Jul 2 21:05:09 2022 +0300 Updates in fmon-* source code, some inner optimizations etc. Some service level improvements. New fmon generator and fmon model. Config section for MONO fmon mode. FS splitted to gen and file settings. Direct appending to fwriter. Removed useless methods. FileWriter API update. Mon generator with new FWriter API. Update in FWriter API. All users use new API. Added main header with empty lines in comments of some signals. Ignore vscode config. Driver compilation config printer as separated driver. AStyle format to all sources. Update realese notes.commitf986286Merge:9100dba2e104d4Author: Astakhov Andrey <ast.and@bk.ru>Date: Sat May 7 21:05:08 2022 +0300 Merge pull request#10 from astand/valtables Issue#9 and other thingscommit2e104d4Author: astand <ast.and@bk.ru>Date: Sat May 7 21:01:06 2022 +0300 Config update for windows using.commit6fbb51bAuthor: astand <ast.and@bk.ru>Date: Sat May 7 21:00:48 2022 +0300 Fixed incompleted square brakets migration.commit3319138Author: astand <ast.and@bk.ru>Date: Sat May 7 20:52:09 2022 +0300 Release notes editing.commit4c13d07Author: astand <ast.and@bk.ru>Date: Sat May 7 20:29:07 2022 +0300 Test DBC generation with square brakets includes.commitdcce732Author: astand <ast.and@bk.ru>Date: Sat May 7 20:28:45 2022 +0300 Files which is presumed to be in __include__ in square brackets.commit1d163c6Author: astand <ast.and@bk.ru>Date: Sat May 7 13:21:25 2022 +0300 WTF was that?commit500427fAuthor: astand <ast.and@bk.ru>Date: Sat May 7 13:21:07 2022 +0300 Minor style change.commita14407aAuthor: astand <ast.and@bk.ru>Date: Sat May 7 13:20:28 2022 +0300 Added test on binutil souce code version (compare with main lib).commit556c072Author: astand <ast.and@bk.ru>Date: Sat May 7 12:44:32 2022 +0300 Added test on source code versions (main driver h/c).commit739870bAuthor: astand <ast.and@bk.ru>Date: Sat May 7 12:17:55 2022 +0300 Remove extra empty comment line generation.commit230933fAuthor: astand <ast.and@bk.ru>Date: Sat May 7 12:07:25 2022 +0300 Minor improvement in signal's info comments.commite4fd53fAuthor: astand <ast.and@bk.ru>Date: Sat May 7 11:58:10 2022 +0300 Added more info about sign extending function.commit013b993Author: astand <ast.and@bk.ru>Date: Sat May 7 11:57:55 2022 +0300 Test DBC with new val table macros generated.commit6661cddAuthor: astand <ast.and@bk.ru>Date: Sat May 7 11:02:17 2022 +0300 Added value table's macros printing to main driver header.commit961c15bAuthor: astand <ast.and@bk.ru>Date: Sat May 7 11:01:19 2022 +0300 Added more specific value tables handling.commitcb9137eAuthor: astand <ast.and@bk.ru>Date: Fri May 6 22:42:51 2022 +0300 Main dbc driver name stripped by C-name checker.commit3eff250Author: astand <ast.and@bk.ru>Date: Fri May 6 22:41:47 2022 +0300 Added helper for valid C-identifier stripper.commit9100dbaAuthor: astand <ast.and@bk.ru>Date: Fri Mar 11 23:10:16 2022 +0300 Removed unused line.commit323d2a8Author: astand <ast.and@bk.ru>Date: Fri Mar 11 23:06:29 2022 +0300 Added test DBC CAN matrix and generation scripts.commit45209dbAuthor: astand <ast.and@bk.ru>Date: Fri Mar 11 22:50:17 2022 +0300 Gitignore and gitattribute unused content removed.commit75b5813Author: astand <ast.and@bk.ru>Date: Sat Feb 19 23:21:41 2022 +0300 Changelog editing.commit634b4b7Author: astand <ast.and@bk.ru>Date: Sat Feb 19 23:17:11 2022 +0300 Added signature extension for signed signal types.commitad43dedAuthor: astand <ast.and@bk.ru>Date: Sat Feb 19 23:16:34 2022 +0300 Target signals type selection optimized.commit83d894dAuthor: astand <ast.and@bk.ru>Date: Wed Feb 2 16:10:35 2022 +0300 Updated docs.commitbdef03cAuthor: astand <ast.and@bk.ru>Date: Wed Feb 2 11:25:02 2022 +0300 Minor fixes.commitb29a47aAuthor: astand <ast.and@bk.ru>Date: Wed Feb 2 11:18:16 2022 +0300 Version update (v2.0).commitf470bbcAuthor: astand <ast.and@bk.ru>Date: Wed Feb 2 11:18:09 2022 +0300 Change way of passing calling arguments.commit7d42aecAuthor: astand <ast.and@bk.ru>Date: Wed Feb 2 09:28:07 2022 +0300 Explicit cast from int64 to uint32.commit196b17dAuthor: astand <ast.and@bk.ru>Date: Wed Feb 2 00:02:39 2022 +0300 Fixed error in with bitutil wrong dir generation.commit770bb9bAuthor: astand <ast.and@bk.ru>Date: Tue Feb 1 22:15:23 2022 +0300 Added filter for local test infrustructure.commit57f3863Author: astand <ast.and@bk.ru>Date: Tue Feb 1 22:15:04 2022 +0300 Simple fix problem with too long lines.commit5d9a5a7Author: astand <ast.and@bk.ru>Date: Mon Jan 24 11:37:19 2022 +0300 Changelog editing.commitd199361Author: astand <ast.and@bk.ru>Date: Mon Jan 17 21:50:24 2022 +0300 Added astyle bin and format script.commit8526c87Author: astand <ast.and@bk.ru>Date: Mon Jan 17 09:11:02 2022 +0300 Enhanced directory structure for generated files.commitebe6786Author: astand <ast.and@bk.ru>Date: Fri Dec 17 23:32:32 2021 +0300 Fixed extra line for ValTable parsed lines.commitf80fb2aAuthor: Astakhov Andrey <quater873@gmail.com>Date: Tue Nov 9 21:50:22 2021 +0300 Update README.mdcommit25eae41Author: Astakhov Andrey <quater873@gmail.com>Date: Tue Nov 9 14:45:37 2021 +0300 Update README.mdcommit4e3f22fAuthor: astand <ast.and@bk.ru>Date: Tue Nov 9 13:58:23 2021 +0300 Updated readme.commit2938aa6Author: astand <ast.and@bk.ru>Date: Tue Nov 9 10:14:23 2021 +0300 Releases updated for v1.9.commit3d3605fAuthor: astand <ast.and@bk.ru>Date: Tue Nov 9 09:43:55 2021 +0300 All sources processed by code style tool.commit2f22c2eAuthor: astand <ast.and@bk.ru>Date: Tue Nov 9 09:40:12 2021 +0300 Fixed: closing comment in -config.h, minor code style.commit3b6b7bcAuthor: astand <ast.and@bk.ru>Date: Mon Nov 1 22:14:28 2021 +0300 Release updated for v1.8.commit906b274Author: astand <ast.and@bk.ru>Date: Mon Oct 25 20:58:58 2021 +0300 Fixed wrong way of rewriting CSM signal.commit48556b3Author: astand <ast.and@bk.ru>Date: Sun Oct 10 21:35:48 2021 +0300 Releases updated for v1.7.commitc5bbd7fAuthor: astand <ast.and@bk.ru>Date: Sun Oct 10 21:32:55 2021 +0300 Added suppot for multi Transmiters.commit02d1e28Author: astand <ast.and@bk.ru>Date: Sun Oct 10 21:31:36 2021 +0300 Fixed potential bug. Missing node adding on RecS item matching.commit9af49b0Author: astand <ast.and@bk.ru>Date: Sun Oct 10 21:30:01 2021 +0300 Changes on style guide.commita2c0079Author: astand <ast.and@bk.ru>Date: Thu Sep 9 22:50:54 2021 +0300 Releases updated for v1.6.commitf918d01Author: astand <ast.and@bk.ru>Date: Thu Sep 9 22:45:43 2021 +0300 Fixed issue with 1 frame in RX struct.commit6439bccAuthor: astand <ast.and@bk.ru>Date: Wed Sep 8 23:19:21 2021 +0300 Added optional binutil generation for each node in DBC.commit6481e7eAuthor: astand <ast.and@bk.ru>Date: Thu Aug 26 23:38:09 2021 +0300 Fixed some issues.commit75f0193Author: astand <quater873@gmail.com>Date: Tue Jul 13 21:56:13 2021 +0300 Removed test info. Edited README.md.commitff67c1fAuthor: astand <ast.and@bk.ru>Date: Sun Jul 11 22:07:48 2021 +0300 Hotfixed README layout.commit002c86bAuthor: astand <ast.and@bk.ru>Date: Sun Jul 11 22:04:23 2021 +0300 v1.3commit2ba501eAuthor: astand <ast.and@bk.ru>Date: Sun Jul 11 22:04:10 2021 +0300 Added template file generation. Refactored config comment text.commitf604b88Author: astand <ast.and@bk.ru>Date: Sun Jul 11 17:59:17 2021 +0300 Readme updated.commite7a4cabAuthor: astand <ast.and@bk.ru>Date: Sun Jul 11 13:19:53 2021 +0300 v1.2commit0ad29f6Author: astand <ast.and@bk.ru>Date: Sun Jul 11 13:19:39 2021 +0300 Added LICENSE and README.commit0628848Author: astand <ast.and@bk.ru>Date: Sun Jul 11 13:18:20 2021 +0300 Improved help message text.commit64745a1Author: astand <ast.and@bk.ru>Date: Sun Jul 11 12:20:54 2021 +0300 Application executable name changed - coderdbc.commit3376c58Author: astand <ast.and@bk.ru>Date: Sat Jul 10 17:10:18 2021 +0300 Fixed type casting warning.commit84601a9Author: astand <ast.and@bk.ru>Date: Sat Jul 10 17:05:18 2021 +0300 Removed useless files and settings.commit359da55Author: astand <ast.and@bk.ru>Date: Sat Jul 10 15:41:38 2021 +0300 Added help message.commiteca35e0Author: astand <ast.and@bk.ru>Date: Sat Jul 10 15:22:25 2021 +0300 Project became executable (CLI).commit1d168d9Author: astand <ast.and@bk.ru>Date: Sat Jul 10 15:21:30 2021 +0300 Added option for rewriting source output files.commit8456d4cAuthor: astand <ast.and@bk.ru>Date: Sat Jul 10 15:20:45 2021 +0300 Fixed windows related issues.commit776a05aAuthor: astand <ast.and@bk.ru>Date: Sat May 15 12:59:49 2021 +0300 Added DBC version info parsing.commite06f777Author: astand <ast.and@bk.ru>Date: Sun Apr 4 13:40:01 2021 +0300 Added start info as user defined text.commit12c735fAuthor: astand <ast.and@bk.ru>Date: Thu Apr 1 20:13:05 2021 +0300 Fixed value table first pair skipping.commit1ff121bAuthor: astand <ast.and@bk.ru>Date: Tue Mar 30 21:38:02 2021 +0300 Fixed GetFrameHash call syntax.commitabfcc41Author: astand <ast.and@bk.ru>Date: Sat Mar 27 14:17:25 2021 +0300 True fix issue with big comment section.commitb714eb0Author: astand <ast.and@bk.ru>Date: Sun Mar 14 22:50:22 2021 +0300 Fixed issue with big comment and localization.commit2ccb121Author: astand <ast.and@bk.ru>Date: Sat Mar 6 19:10:51 2021 +0300 Fixed macros for *_phys <-> *_ro signal conversion.commitd15afe6Author: astand <ast.and@bk.ru>Date: Thu Mar 4 13:08:48 2021 +0300 Updated comment text in drv_conf.h file.commitb5a687bAuthor: astand <ast.and@bk.ru>Date: Thu Mar 4 13:08:31 2021 +0300 Fixed integer x = ***_toS(x) issue. Added postfix *_ro to non simple signals.commit43730edAuthor: astand <ast.and@bk.ru>Date: Thu Mar 4 12:33:20 2021 +0300 Changed comments in gen code.commit1e837ceAuthor: astand <ast.and@bk.ru>Date: Thu Mar 4 12:32:55 2021 +0300 Fixed issue when DLC is less then actual Message layout takes.commitb67759bAuthor: astand <ast.and@bk.ru>Date: Sun Feb 28 16:03:41 2021 +0300 GetSystemTick func name.commitab5ccecAuthor: astand <ast.and@bk.ru>Date: Thu Feb 18 22:19:48 2021 +0300 Fixed grammar errors.commit0cc9b3eAuthor: astand <ast.and@bk.ru>Date: Wed Feb 17 14:46:17 2021 +0300 Removed cmake dir.commit60abfecAuthor: astand <ast.and@bk.ru>Date: Wed Feb 17 14:13:04 2021 +0300 Added template ***-config.h generation.commitcf4ac28Author: astand <ast.and@bk.ru>Date: Wed Feb 17 11:56:42 2021 +0300 Simple support for multiplexed signals.commitb952fabAuthor: astand <ast.and@bk.ru>Date: Wed Feb 17 10:48:37 2021 +0300 Fixed issue with comment text for message.commit051df8eAuthor: astand <ast.and@bk.ru>Date: Wed Feb 17 10:48:17 2021 +0300 Fixed value table code printing issue.commitc369336Author: astand <ast.and@bk.ru>Date: Wed Feb 17 10:38:43 2021 +0300 resplit has more param - type of pslit strategy. (was only NOT matched).commitb3af676Author: astand <ast.and@bk.ru>Date: Sun Feb 14 00:18:39 2021 +0300 Added cmake building.commit4fd5116Author: astand <ast.and@bk.ru>Date: Sat Feb 13 23:48:24 2021 +0300 Added util source print.commitc0bc4b1Author: astand <ast.and@bk.ru>Date: Wed Feb 10 20:01:58 2021 +0300 Fixed minor issues (warnings).commit147994aAuthor: astand <ast.and@bk.ru>Date: Wed Feb 10 19:50:20 2021 +0300 Removed unused code.commit00748b3Author: astand <ast.and@bk.ru>Date: Wed Feb 10 19:48:11 2021 +0300 Added util header print. Some additional improvements.commitad787bcAuthor: astand <ast.and@bk.ru>Date: Wed Feb 10 12:14:09 2021 +0300 Added first variant of util generator.commitbc72a4fAuthor: astand <ast.and@bk.ru>Date: Wed Feb 10 10:18:36 2021 +0300 Formatter function for printf.commit9e400dbAuthor: astand <ast.and@bk.ru>Date: Sun Feb 7 17:49:35 2021 +0300 On ubuntu getline puts (or shows) '\r' at the end of line.commit9cd3049Author: astand <ast.and@bk.ru>Date: Sun Feb 7 17:48:36 2021 +0300 Fixed some issues.commit79fc48eAuthor: astand <ast.and@bk.ru>Date: Sun Feb 7 16:41:05 2021 +0300 Fixed comment printing.commit0947ebfAuthor: astand <ast.and@bk.ru>Date: Sat Feb 6 14:50:38 2021 +0300 Added CSM calc and pack in both Pack functions.commit6798987Author: astand <ast.and@bk.ru>Date: Wed Feb 3 18:53:47 2021 +0300 Added CSM check in unpack function.commite56d43cAuthor: astand <ast.and@bk.ru>Date: Wed Feb 3 18:41:18 2021 +0300 Added Checksum signal detection.commita7d6cf0Author: astand <ast.and@bk.ru>Date: Wed Feb 3 17:01:54 2021 +0300 Common refactoring and bug fix (field width).commitd7fdcafAuthor: astand <ast.and@bk.ru>Date: Wed Feb 3 16:59:49 2021 +0300 Added auto rolling handling code.commit362a4d1Author: astand <ast.and@bk.ru>Date: Wed Feb 3 16:57:30 2021 +0300 Removed empty phys macro in pack functions.commit69e9687Author: astand <ast.and@bk.ru>Date: Sun Jan 31 23:47:51 2021 +0300 Added changed for Linux building.commita719f72Author: astand <quater873@gmail.com>Date: Sun Jan 31 18:58:44 2021 +0300 Added fmon-source file generation.commite634227Author: astand <quater873@gmail.com>Date: Sun Jan 31 18:37:08 2021 +0300 Added fmon-header file generation.commit25ba556Author: astand <quater873@gmail.com>Date: Sun Jan 31 17:46:19 2021 +0300 Source files filling moved to dedicated functions.commitd6b8c46Author: astand <quater873@gmail.com>Date: Sun Jan 31 17:35:25 2021 +0300 Small refactoring.commitba88964Author: astand <quater873@gmail.com>Date: Mon Jan 25 20:55:01 2021 +0300 Fixed comment style. CYC value bug.commit950ed79Author: astand <quater873@gmail.com>Date: Mon Jan 25 20:53:37 2021 +0300 Fixed warning on unused param (dlc) in Unpack function.commitbd87a48Author: astand <quater873@gmail.com>Date: Mon Jan 25 13:17:53 2021 +0300 Fixed generator formatting bugs.commit22ea2f1Author: astand <quater873@gmail.com>Date: Mon Jan 25 13:17:35 2021 +0300 Fixed bug in sign of sigfloat type signal.commit2cd8af4Author: astand <quater873@gmail.com>Date: Mon Jan 25 11:32:02 2021 +0300 Added "*_phys" sigs and auto toS/fromS conversion.commite95d50aAuthor: astand <quater873@gmail.com>Date: Mon Jan 25 11:31:15 2021 +0300 Fixed "fromS" macro - type cast must be skipped.commitd4e1603Author: astand <quater873@gmail.com>Date: Mon Jan 25 11:30:17 2021 +0300 Added more signal type class (3 classes for now).commit11426ccAuthor: astand <ast.and@bk.ru>Date: Thu Jan 21 21:53:17 2021 +0300 Added print toS and fromS macros.commit3d57bbeAuthor: astand <ast.and@bk.ru>Date: Thu Jan 21 21:51:59 2021 +0300 Do not make signal conversation inside unpack function.commitb8ad3cbAuthor: astand <ast.and@bk.ru>Date: Thu Jan 21 21:51:24 2021 +0300 Helpers added.commit4c18e40Author: astand <ast.and@bk.ru>Date: Thu Jan 21 21:50:36 2021 +0300 Fixed minor issues.commitbdd4061Author: astand <ast.and@bk.ru>Date: Thu Jan 21 17:26:33 2021 +0300 Signal type detection refactored.commit981b25aAuthor: astand <ast.and@bk.ru>Date: Thu Jan 21 11:49:30 2021 +0300 Added 2-Pack functions bodies.commit1557550Author: astand <ast.and@bk.ru>Date: Mon Jan 11 20:37:43 2021 +0300 Basic struct and unpack func in -c main source code.commitbf0ed04Author: astand <ast.and@bk.ru>Date: Mon Jan 11 20:10:42 2021 +0300 Fs creator keeps lowcase drvname in separated field.commit246a2b9Author: astand <ast.and@bk.ru>Date: Mon Jan 11 20:09:16 2021 +0300 Style format.commit30edc79Author: astand <ast.and@bk.ru>Date: Mon Jan 11 20:08:53 2021 +0300 Renamed variable for clarificatin.commitc7ae93eAuthor: astand <ast.and@bk.ru>Date: Mon Jan 11 20:08:30 2021 +0300 Fixed unpack sig format bug.commitff267a4Author: astand <quater873@gmail.com>Date: Mon Jan 11 16:58:20 2021 +0300 PrintF refactored completely.commitb0856e0Author: astand <quater873@gmail.com>Date: Mon Jan 11 16:46:14 2021 +0300 Using fsd filelds for #ifdef selection.commitfc9663aAuthor: astand <ast.and@bk.ru>Date: Sun Dec 13 01:08:31 2020 +0300 Added separated common attributes creator.commit74b4b2dAuthor: astand <ast.and@bk.ru>Date: Sat Dec 12 00:40:04 2020 +0300 Added printF optimization.commit98c8edaAuthor: astand <ast.and@bk.ru>Date: Sat Dec 12 00:30:42 2020 +0300 Added Functions prototypes printing.commitc620841Author: astand <ast.and@bk.ru>Date: Fri Dec 11 23:54:15 2020 +0300 Added mon1 field if defined setting.commit2a2ff62Author: astand <ast.and@bk.ru>Date: Mon Dec 7 12:58:05 2020 +0300 Added c++17 in project option.commit14f7017Author: astand <ast.and@bk.ru>Date: Mon Dec 7 12:57:33 2020 +0300 Added part of main .h file writer. Added filewriter.commit7b13500Author: astand <ast.and@bk.ru>Date: Thu Nov 26 22:17:48 2020 +0300 Added minimal struct of main code generator.commit26cf3f3Author: astand <ast.and@bk.ru>Date: Thu Nov 26 22:12:57 2020 +0300 SigPrinter minor refactoring. Income Msgs as const.commit44e2db2Author: astand <ast.and@bk.ru>Date: Thu Nov 26 14:45:56 2020 +0300 Added offset calculation in to_signal expression.commit4915ed1Author: astand <ast.and@bk.ru>Date: Thu Nov 26 11:58:18 2020 +0300 Added core signals/message expression printer code.commit45a85acAuthor: astand <ast.and@bk.ru>Date: Thu Nov 26 10:12:28 2020 +0300 Added sig-expression and sig-printer base code.commit6350af4Author: astand <ast.and@bk.ru>Date: Thu Nov 26 10:11:47 2020 +0300 Code dir migration.commitab769a9Author: astand <ast.and@bk.ru>Date: Sun Nov 22 22:30:17 2020 +0300 Added value table parsing.commit7bd24c5Author: astand <ast.and@bk.ru>Date: Sat Nov 21 22:44:01 2020 +0300 Added basic dbcscanner core code.
1 parent326fa48 commit51610b2

File tree

3 files changed

+19
-13
lines changed

3 files changed

+19
-13
lines changed

‎docs/RELEASES.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
#Changelog
22

3+
##v2.6 29.09.2022
4+
5+
###Fixed
6+
7+
-[issue#9](https://github.com/astand/c-coderdbc/issues/16) found by[@DPOH357](https://github.com/DPOH357)
8+
9+
---
10+
311
##v2.5 26.07.2022
412

513
###Changed

‎src/codegen/filewriter.cpp‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,18 @@
55
#include<assert.h>
66
#include"filewriter.h"
77

8-
template<size_t N =4096>
8+
template<size_t N =10000>
99
std::string__print_loc__(constchar* format, va_list args)
1010
{
11-
// TODO: make N sanitizing here to prevent memory errors
1211
char work_buff[N] = {0};
1312
auto ret =vsnprintf(work_buff, N, format, args);
1413

15-
assert(ret < N);
14+
if (ret >= N)
15+
{
16+
std::cout <<"Attention (!) the line has been shortened :" << std::endl;
17+
std::cout << work_buff << std::endl;
18+
}
19+
1620
// make string from local array
1721
return work_buff;
1822
}

‎src/parser/dbcscanner.cpp‎

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
#include<math.h>
55
#include"../helpers/formatter.h"
66

7-
#defineMAX_LINE4096 *4
8-
9-
char line[MAX_LINE] = {0 };
10-
117
MessageDescriptor_t*find_message(vector<MessageDescriptor_t*> msgs,uint32_t ID)
128
{
139
MessageDescriptor_t* ret =nullptr;
@@ -72,9 +68,8 @@ void DbcScanner::ParseMessageInfo(istream& readstrm)
7268

7369
while (readstrm.eof() ==false)
7470
{
75-
readstrm.getline(line, MAX_LINE);
76-
77-
sline =str_trim(line);
71+
std::getline(readstrm, sline);
72+
sline =str_trim(sline);
7873

7974
FindVersion(sline);
8075

@@ -160,9 +155,8 @@ void DbcScanner::ParseOtherInfo(istream& readstrm)
160155

161156
while (!readstrm.eof())
162157
{
163-
readstrm.getline(line, MAX_LINE);
164-
165-
sline =str_trim(line);
158+
std::getline(readstrm, sline);
159+
sline =str_trim(sline);
166160

167161
if (lparser.ParseCommentLine(&cmmnt, sline))
168162
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp