Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Jan 31, 2021
2 parents 643de04 + c05c14c commit 936f905
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 20 deletions.
2 changes: 1 addition & 1 deletion dev/VisualStudio/lwprintf_opts.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#ifndef LWPRINTF_HDR_OPTS_H
#define LWPRINTF_HDR_OPTS_H
Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
author = 'Tilen MAJERLE'

# The full version, including alpha/beta/rc tags
version = 'v1.0.1'
version = 'v1.0.2'

# Try to get branch at which this is running
# and try to determine which version to display in sphinx
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#ifndef LWPRINTF_HDR_OPTS_H
#define LWPRINTF_HDR_OPTS_H
Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/include/lwprintf/lwprintf.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#ifndef LWPRINTF_HDR_H
#define LWPRINTF_HDR_H
Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/include/lwprintf/lwprintf_opt.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#ifndef LWPRINTF_HDR_OPT_H
#define LWPRINTF_HDR_OPT_H
Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/include/lwprintf/lwprintf_opts_template.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#ifndef LWPRINTF_HDR_OPTS_H
#define LWPRINTF_HDR_OPTS_H
Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/include/system/lwprintf_sys.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#ifndef LWPRINTF_HDR_SYS_H
#define LWPRINTF_HDR_SYS_H
Expand Down
18 changes: 8 additions & 10 deletions lwprintf/src/lwprintf/lwprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#include <limits.h>
#include <float.h>
Expand Down Expand Up @@ -591,10 +591,11 @@ prv_calculate_dbl_num_data(lwprintf_int_t* p, float_num_t* n, double num, uint8_
adder = 1;
}
}
} else {
} else
#endif /* LWPRINTF_CFG_SUPPORT_TYPE_ENGINEERING */
{
n->digits_cnt_decimal_part_useful = p->m.precision;
}
#endif /* LWPRINTF_CFG_SUPPORT_TYPE_ENGINEERING */
}

/**
Expand Down Expand Up @@ -871,21 +872,18 @@ prv_format(lwprintf_int_t* p, va_list arg) {
break;
}

/* Parse format */
/* %[flags][width][.precision][length]type */
/* Go to https://docs.majerle.eu for more info about supported features */
memset(&p->m, 0x00, sizeof(p->m)); /* Reset structure */

/* Detect beginning */
if (*fmt != '%') {
p->out_fn(p, *fmt); /* Output character */
++fmt;
continue;
}
++fmt;
memset(&p->m, 0x00, sizeof(p->m)); /* Reset structure */

/* Check [parameter] */
/* Not used */
/* Parse format */
/* %[flags][width][.precision][length]type */
/* Go to https://docs.majerle.eu for more info about supported features */

/* Check [flags] */
/* It can have multiple flags in any order */
Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/system/lwprintf_sys_cmsis_os.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#include "system/lwprintf_sys.h"

Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/system/lwprintf_sys_template.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#include "system/lwprintf_sys.h"

Expand Down
2 changes: 1 addition & 1 deletion lwprintf/src/system/lwprintf_sys_win32.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
* This file is part of LwPRINTF - Lightweight stdio manager library.
*
* Author: Tilen MAJERLE <[email protected]>
* Version: v1.0.1
* Version: v1.0.2
*/
#include "system/lwprintf_sys.h"

Expand Down

0 comments on commit 936f905

Please sign in to comment.