Skip to content

Commit bf1e259

Browse files
committed
Fixes C variant: inline is different in C than in C++
1 parent 63311f8 commit bf1e259

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

HttpStatusCodes_C.h

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,19 +99,19 @@ enum HttpStatus_Code
9999
HttpStatus_NetworkAuthenticationRequired = 511 /*!< Indicates that the client needs to authenticate to gain network access. */ //!< HttpStatus_NetworkAuthenticationRequired
100100
};
101101

102-
inline char HttpStatus_isInformational(int code) { return (code >= 100 && code < 200); } /*!< \returns \c true if the given \p code is an informational code. */
103-
inline char HttpStatus_isSuccessful(int code) { return (code >= 200 && code < 300); } /*!< \returns \c true if the given \p code is a successful code. */
104-
inline char HttpStatus_isRedirection(int code) { return (code >= 300 && code < 400); } /*!< \returns \c true if the given \p code is a redirectional code. */
105-
inline char HttpStatus_isClientError(int code) { return (code >= 400 && code < 500); } /*!< \returns \c true if the given \p code is a client error code. */
106-
inline char HttpStatus_isServerError(int code) { return (code >= 500 && code < 600); } /*!< \returns \c true if the given \p code is a server error code. */
107-
inline char HttpStatus_isError(int code) { return (code >= 400); } /*!< \returns \c true if the given \p code is any type of error code. */
102+
static char HttpStatus_isInformational(int code) { return (code >= 100 && code < 200); } /*!< \returns \c true if the given \p code is an informational code. */
103+
static char HttpStatus_isSuccessful(int code) { return (code >= 200 && code < 300); } /*!< \returns \c true if the given \p code is a successful code. */
104+
static char HttpStatus_isRedirection(int code) { return (code >= 300 && code < 400); } /*!< \returns \c true if the given \p code is a redirectional code. */
105+
static char HttpStatus_isClientError(int code) { return (code >= 400 && code < 500); } /*!< \returns \c true if the given \p code is a client error code. */
106+
static char HttpStatus_isServerError(int code) { return (code >= 500 && code < 600); } /*!< \returns \c true if the given \p code is a server error code. */
107+
static char HttpStatus_isError(int code) { return (code >= 400); } /*!< \returns \c true if the given \p code is any type of error code. */
108108

109109
/*! Returns the standard HTTP reason phrase for a HTTP status code.
110110
* \param code An HTTP status code.
111111
* \return The standard HTTP reason phrase for the given \p code or \c NULL if no standard
112112
* phrase for the given \p code is known.
113113
*/
114-
inline const char* HttpStatus_reasonPhrase(int code)
114+
static const char* HttpStatus_reasonPhrase(int code)
115115
{
116116
switch (code)
117117
{

0 commit comments

Comments
 (0)