Skip to content

Commit

Permalink
Add option to ignore user opts file
Browse files Browse the repository at this point in the history
  • Loading branch information
MaJerle committed Aug 21, 2020
1 parent afaa0a6 commit 83771d8
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ List of all the modules:
:maxdepth: 2

lwprintf
lwprintf_opts
lwprintf_opt
lwprintf_sys
3 changes: 1 addition & 2 deletions docs/index.rst
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
LwPRINTF |version| documentation
=============================
================================

Welcome to the documentation for version |version|.

Expand Down Expand Up @@ -50,4 +50,3 @@ Table of contents
get-started/index
user-manual/index
api-reference/index
examples/index
8 changes: 8 additions & 0 deletions docs/user-manual/format-specifier.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
.. _um_format_specifier:

Format specifier
================

.. toctree::
:maxdepth: 2

3 changes: 1 addition & 2 deletions docs/user-manual/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,4 @@ User manual
.. toctree::
:maxdepth: 2

how-it-works
instances
format-specifier
4 changes: 3 additions & 1 deletion lwprintf/src/include/lwprintf/lwprintf_opt.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,17 @@
#define LWPRINTF_HDR_OPT_H

/* Include application options */
#ifndef LWPRINTF_IGNORE_USER_OPTS
#include "lwprintf_opts.h"
#endif /* LWPRINTF_IGNORE_USER_OPTS */

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

/**
* \defgroup LWPRINTF_OPT Configuration
* \brief LwPRINTf options
* \brief LwPRINTF options
* \{
*/

Expand Down
3 changes: 3 additions & 0 deletions lwprintf/src/lwprintf/lwprintf.c
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,9 @@ prv_format(lwprintf_int_t* p, va_list arg) {

/* Check type */
switch (*fmt) {
case 'a':
case 'A':
break;
case 'c':
p->out_fn(p, (char)va_arg(arg, char));
break;
Expand Down

0 comments on commit 83771d8

Please sign in to comment.