Skip to content

Commit 388901d

Browse files
committed
run astyle on all files. changed args to catch more files (src/*.h)
1 parent 90dc1d6 commit 388901d

125 files changed

Lines changed: 7545 additions & 6803 deletions

File tree

Some content is hidden

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

include/express/error.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ static_inline
163163
void
164164
ERRORbuffer_messages( bool flag ) {
165165
#ifndef __MSVC__
166-
extern void ERROR_start_message_buffer( void ),
166+
extern void ERROR_start_message_buffer( void ),
167167
ERROR_flush_message_buffer( void );
168168
#endif
169169
__ERROR_buffer_errors = flag;

include/express/express.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ extern SCL_EXPRESS_EXPORT Express EXPRESScreate PROTO( ( void ) );
278278
extern SCL_EXPRESS_EXPORT void EXPRESSparse PROTO( ( Express, FILE *, char * ) );
279279
extern SCL_EXPRESS_EXPORT void EXPRESSinitialize PROTO( ( void ) );
280280
extern SCL_EXPRESS_EXPORT void EXPRESSresolve PROTO( ( Express ) );
281-
extern SCL_EXPRESS_EXPORT char *EXPRESSversion PROTO( ( void ) );
281+
extern SCL_EXPRESS_EXPORT char * EXPRESSversion PROTO( ( void ) );
282282
extern SCL_EXPRESS_EXPORT int EXPRESS_fail PROTO( ( Express ) );
283283
extern SCL_EXPRESS_EXPORT int EXPRESS_succeed PROTO( ( Express ) );
284284
extern void EXPRESSinit_init PROTO( ( void ) );

include/express/lexact.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,9 @@ SCANnextchar( char * buffer ) {
164164
#endif
165165
buffer[0] = *( SCANcurrent++ );
166166
#ifdef __MSVC__
167-
if( !__isascii( buffer[0] ) ) {
167+
if( !__isascii( buffer[0] ) ) {
168168
#else
169-
if( !isascii( buffer[0] ) ) {
169+
if( !isascii( buffer[0] ) ) {
170170
#endif
171171
ERRORreport_with_line( ERROR_nonascii_char, yylineno,
172172
0xff & buffer[0] );

include/express/linklist.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ GLOBAL SCL_EXPRESS_EXPORT Linked_List LINK__l; /* for LISTcreate_with macro
118118
(elt) = (type)((__p)->data);
119119

120120
#define LISTdo_links(list, link) \
121-
{Linked_List __i = (list); \
122-
Link link; \
123-
if (__i != LIST_NULL) { \
121+
{Linked_List __i = (list); \
122+
Link link; \
123+
if (__i != LIST_NULL) { \
124124
for ((link) = __i->mark; ((link) = (link)->next) != __i->mark; ) {
125125
#define LISTod }}}
126126

include/express/stmt.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ extern SCL_EXPRESS_EXPORT Statement PCALLcreate PROTO( ( Linked_List ) );
247247
extern SCL_EXPRESS_EXPORT Statement RETcreate PROTO( ( Expression ) );
248248
extern SCL_EXPRESS_EXPORT void STMTinitialize PROTO( ( void ) );
249249
extern SCL_EXPRESS_EXPORT struct Scope_ * INCR_CTLcreate PROTO( ( Symbol *, Expression start,
250-
Expression end, Expression increment ) );
250+
Expression end, Expression increment ) );
251251

252252
/********************/
253253
/* inline functions */

include/scl_stdbool.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@
99
* Warrenty - None: don't blame me if it breaks something
1010
*
1111
* In ISO C99, stdbool.h is a standard header and _Bool is a keyword, but
12-
* some compilers don't offer these yet. This header file is an
12+
* some compilers don't offer these yet. This header file is an
1313
* implementation of the standard ISO C99 stdbool.h header file. It checks
1414
* for various compiler versions and defines things that are missing in
1515
* those versions.
1616
*
1717
* The GNU and Watcom compilers include a stdbool.h, but the Borland
1818
* C/C++ 5.5.1 compiler and the Microsoft compilers do not.
19-
*
19+
*
2020
* See http://predef.sourceforge.net/precomp.html for compile macros.
2121
*/
2222

@@ -31,7 +31,7 @@ typedef int _Bool;
3131

3232
/**
3333
* Microsoft C/C++ version 14.00.50727.762, which comes with Visual C++ 2005,
34-
* and version 15.00.30729.01, which comes with Visual C++ 2008, do not
34+
* and version 15.00.30729.01, which comes with Visual C++ 2008, do not
3535
* define _Bool.
3636
*/
3737
#if defined(_MSC_VER)
@@ -44,7 +44,7 @@ typedef int _Bool;
4444
#ifndef __bool_true_false_are_defined
4545
#define bool _Bool
4646
#define Boolean _Bool
47-
#define false 0
47+
#define false 0
4848
#define true 1
4949
#define __bool_true_false_are_defined 1
5050
#endif

include/xgetopt.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@
2121
extern "C" {
2222
#endif
2323

24-
extern int optind, opterr;
25-
extern TCHAR *optarg;
24+
extern int optind, opterr;
25+
extern TCHAR * optarg;
2626

27-
int getopt(int argc, TCHAR *argv[], TCHAR *optstring);
27+
int getopt( int argc, TCHAR * argv[], TCHAR * optstring );
2828

2929
#ifdef __cplusplus
3030
}

misc/astyle.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# astyle --options=misc/astyle.cfg path/to/file
55

66
#run astyle on all files: from the scl root dir, use
7-
# astyle --options=misc/astyle.cfg --recursive "src/*.c" "src/*.cc" "include/*.h"
7+
# astyle --options=misc/astyle.cfg --recursive "src/*.c" "src/*.cc" "include/*.h" "src/*.h"
88
# in the above line, the double quotes *are* necessary
99

1010
# DO NOT run astyle on flex/bison input such as expparse.y and expscan.l!

0 commit comments

Comments
 (0)