Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
K
kicad-source-mirror
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
kicad-source-mirror
Commits
9536bdce
Commit
9536bdce
authored
Aug 29, 2008
by
dickelbeck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
limit printf arg testing to GNUG
parent
68a8ec18
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
6 deletions
+15
-6
specctra.h
pcbnew/specctra.h
+15
-6
No files found.
pcbnew/specctra.h
View file @
9536bdce
...
@@ -74,16 +74,22 @@ class SPECCTRA_DB;
...
@@ -74,16 +74,22 @@ class SPECCTRA_DB;
class
OUTPUTFORMATTER
class
OUTPUTFORMATTER
{
{
#if defined(__GNUG__) // The GNU C++ compiler defines this
// When used on a C++ function, we must account for the "this" pointer,
// When used on a C++ function, we must account for the "this" pointer,
// so increase the STRING-INDEX and FIRST-TO_CHECK by one.
// so increase the STRING-INDEX and FIRST-TO_CHECK by one.
// See http://docs.freebsd.org/info/gcc/gcc.info.Function_Attributes.html
// See http://docs.freebsd.org/info/gcc/gcc.info.Function_Attributes.html
// Then to get format checking during the compile, compile with -Wall or -Wformat
// Then to get format checking during the compile, compile with -Wall or -Wformat
#define PRINTF_FUNC __attribute__ ((format (printf, 3, 4)))
#define PRINTF_FUNC __attribute__ ((format (printf, 3, 4)))
#else
#define PRINTF_FUNC // nothing
#endif
public
:
public
:
/**
/**
* Function
p
rint
* Function
P
rint
* formats and writes text to the output stream.
* formats and writes text to the output stream.
*
*
* @param nestLevel The multiple of spaces to preceed the output with.
* @param nestLevel The multiple of spaces to preceed the output with.
...
@@ -97,9 +103,11 @@ public:
...
@@ -97,9 +103,11 @@ public:
/**
/**
* Function GetQuoteChar
* Function GetQuoteChar
* returns the quote character as a single character string for a given
* performs quote character need determination.
* input wrapee string. Often the return value is "" the null string if
* It returns the quote character as a single character string for a given
* there are no delimiters in the input string. If you want the quote_char
* input wrapee string. If the wrappee does not need to be quoted,
* the return value is "" (the null string), such as when there are no
* delimiters in the input wrapee string. If you want the quote_char
* to be assuredly not "", then pass in "(" as the wrappee.
* to be assuredly not "", then pass in "(" as the wrappee.
* @param wrapee A string that might need wrapping on each end.
* @param wrapee A string that might need wrapping on each end.
* @return const char* - the quote_char as a single character string, or ""
* @return const char* - the quote_char as a single character string, or ""
...
@@ -111,9 +119,10 @@ public:
...
@@ -111,9 +119,10 @@ public:
/**
/**
* Function GetQuoteChar
* Function GetQuoteChar
*
factor may be used by derived classes to perform quote character selec
tion.
*
performs quote character need determina
tion.
* @param wrapee A string that might need wrapping on each end.
* @param wrapee A string that might need wrapping on each end.
* @param quote_char A single character C string which hold the current quote character.
* @param quote_char A single character C string which provides the current
* quote character, should it be needed by the wrapee.
* @return const char* - the quote_char as a single character string, or ""
* @return const char* - the quote_char as a single character string, or ""
* if the wrapee does not need to be wrapped.
* if the wrapee does not need to be wrapped.
*/
*/
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment