Skip to content

Commit b817eff

Browse files
committed
treewide: Run clang-format
Signed-off-by: Konrad Dybcio <[email protected]>
1 parent 206e12e commit b817eff

File tree

121 files changed

+34613
-26840
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

121 files changed

+34613
-26840
lines changed

inc/AEEBufBound.h

Lines changed: 22 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -21,45 +21,45 @@ REVISION HISTORY:
2121
2222
==============================================================================*/
2323

24-
typedef struct BufBound
25-
{
26-
char* pcBuf; /* original buffer */
27-
char* pcWrite; /* write pointer */
28-
char* pcEnd; /* first illegal write pointer */
24+
typedef struct BufBound {
25+
char *pcBuf; /* original buffer */
26+
char *pcWrite; /* write pointer */
27+
char *pcEnd; /* first illegal write pointer */
2928
} BufBound;
3029

3130
#ifdef __cplusplus
3231
extern "C" {
3332
#endif /* #ifdef __cplusplus */
3433

35-
extern void BufBound_Init(BufBound *me, char *pBuf, int nLen);
36-
extern void BufBound_Write(BufBound *me, const char *pc, int nLen);
37-
extern void BufBound_Putc(BufBound *me, char c);
38-
extern void BufBound_Putnc(BufBound *me, char c, int nCount);
39-
extern void BufBound_ForceNullTerm(BufBound *me);
40-
extern void BufBound_Puts(BufBound *me, const char* cpsz);
41-
extern void BufBound_Advance(BufBound *me, int nLen);
42-
extern int BufBound_BufSize(BufBound *me);
43-
extern int BufBound_Left(BufBound* me);
44-
extern int BufBound_ReallyWrote(BufBound* me);
45-
extern int BufBound_Wrote(BufBound* me);
46-
47-
static __inline int BufBound_IsFull(BufBound* me)
34+
extern void BufBound_Init (BufBound *me, char *pBuf, int nLen);
35+
extern void BufBound_Write (BufBound *me, const char *pc, int nLen);
36+
extern void BufBound_Putc (BufBound *me, char c);
37+
extern void BufBound_Putnc (BufBound *me, char c, int nCount);
38+
extern void BufBound_ForceNullTerm (BufBound *me);
39+
extern void BufBound_Puts (BufBound *me, const char *cpsz);
40+
extern void BufBound_Advance (BufBound *me, int nLen);
41+
extern int BufBound_BufSize (BufBound *me);
42+
extern int BufBound_Left (BufBound *me);
43+
extern int BufBound_ReallyWrote (BufBound *me);
44+
extern int BufBound_Wrote (BufBound *me);
45+
46+
static __inline int
47+
BufBound_IsFull (BufBound *me)
4848
{
49-
return (BufBound_Left(me) <= 0);
49+
return (BufBound_Left (me) <= 0);
5050
}
5151

5252
// Deprecated:
53-
static __inline int BufBound_IsCounter(BufBound* me)
53+
static __inline int
54+
BufBound_IsCounter (BufBound *me)
5455
{
55-
return BufBound_BufSize(me) == 0;
56+
return BufBound_BufSize (me) == 0;
5657
}
5758

5859
#ifdef __cplusplus
5960
}
6061
#endif /* #ifdef __cplusplus */
6162

62-
6363
/*=====================================================================
6464
=======================================================================
6565
DATA STRUCTURE DOCUMENTATION
@@ -467,4 +467,3 @@ See Also:
467467
468468
======================================================================= */
469469
#endif /* #ifndef AEEBUFBOUND_H */
470-

0 commit comments

Comments
 (0)