Skip to content

Commit 8c8f2a1

Browse files
author
Nicholas Reed
committed
run astyle on SCL sources with misc/astyle.cfg options
1 parent 87db60e commit 8c8f2a1

215 files changed

Lines changed: 45112 additions & 45655 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/exppp/exppp.h

Lines changed: 53 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -1,60 +1,60 @@
11
#ifndef EXPPP_H
22
#define EXPPP_H
3-
extern int exppp_nesting_indent; /* default nesting indent */
4-
extern int exppp_continuation_indent; /* default nesting indent for */
5-
/* continuation lines */
6-
extern int exppp_linelength; /* leave some slop for closing */
7-
/* parens. \n is not included in */
8-
/* this count either */
9-
extern int exppp_rmpp; /* if true, create rmpp */
10-
extern int exppp_alphabetize; /* if true, alphabetize */
11-
extern int exppp_terse; /* don't describe action to stdout */
12-
extern int exppp_reference_info; /* if true, add commentary */
13-
/* about where things came from */
14-
extern int exppp_preserve_comments; /* if true, preserve comments where */
15-
/* possible */
16-
extern char *exppp_output_filename; /* force output filename */
17-
extern int exppp_output_filename_reset; /* if true, force output filename */
3+
extern int exppp_nesting_indent; /* default nesting indent */
4+
extern int exppp_continuation_indent; /* default nesting indent for */
5+
/* continuation lines */
6+
extern int exppp_linelength; /* leave some slop for closing */
7+
/* parens. \n is not included in */
8+
/* this count either */
9+
extern int exppp_rmpp; /* if true, create rmpp */
10+
extern int exppp_alphabetize; /* if true, alphabetize */
11+
extern int exppp_terse; /* don't describe action to stdout */
12+
extern int exppp_reference_info; /* if true, add commentary */
13+
/* about where things came from */
14+
extern int exppp_preserve_comments; /* if true, preserve comments where */
15+
/* possible */
16+
extern char * exppp_output_filename; /* force output filename */
17+
extern int exppp_output_filename_reset; /* if true, force output filename */
1818

19-
void EXPRESSout(Express e);
19+
void EXPRESSout( Express e );
2020

21-
void ENTITYout(Entity e);
22-
void EXPRout(Expression expr);
23-
void FUNCout(Function f);
24-
void PROCout(Procedure p);
25-
void RULEout(Rule r);
26-
char *SCHEMAout(Schema s);
27-
void SCHEMAref_out(Schema s);
28-
void STMTout(Statement s);
29-
void TYPEout(Type t);
30-
void TYPEhead_out(Type t);
31-
void TYPEbody_out(Type t);
32-
void WHEREout(Linked_List w);
21+
void ENTITYout( Entity e );
22+
void EXPRout( Expression expr );
23+
void FUNCout( Function f );
24+
void PROCout( Procedure p );
25+
void RULEout( Rule r );
26+
char * SCHEMAout( Schema s );
27+
void SCHEMAref_out( Schema s );
28+
void STMTout( Statement s );
29+
void TYPEout( Type t );
30+
void TYPEhead_out( Type t );
31+
void TYPEbody_out( Type t );
32+
void WHEREout( Linked_List w );
3333

34-
char *REFto_string(Dictionary refdict,Linked_List reflist,char *type,int level);
35-
char *ENTITYto_string(Entity e);
36-
char *SUBTYPEto_string(Expression e);
37-
char *EXPRto_string(Expression expr);
38-
char *FUNCto_string(Function f);
39-
char *PROCto_string(Procedure p);
40-
char *RULEto_string(Rule r);
41-
char *SCHEMAref_to_string(Schema s);
42-
char *STMTto_string(Statement s);
43-
char *TYPEto_string(Type t);
44-
char *TYPEhead_to_string(Type t);
45-
char *TYPEbody_to_string(Type t);
46-
char *WHEREto_string(Linked_List w);
34+
char * REFto_string( Dictionary refdict, Linked_List reflist, char * type, int level );
35+
char * ENTITYto_string( Entity e );
36+
char * SUBTYPEto_string( Expression e );
37+
char * EXPRto_string( Expression expr );
38+
char * FUNCto_string( Function f );
39+
char * PROCto_string( Procedure p );
40+
char * RULEto_string( Rule r );
41+
char * SCHEMAref_to_string( Schema s );
42+
char * STMTto_string( Statement s );
43+
char * TYPEto_string( Type t );
44+
char * TYPEhead_to_string( Type t );
45+
char * TYPEbody_to_string( Type t );
46+
char * WHEREto_string( Linked_List w );
4747

48-
int REFto_buffer(Dictionary refdict,Linked_List reflist,char *type,int level,char *buffer,int length);
49-
int ENTITYto_buffer(Entity e,char *buffer,int length);
50-
int EXPRto_buffer(Expression e,char *buffer,int length);
51-
int FUNCto_buffer(Function e,char *buffer,int length);
52-
int PROCto_buffer(Procedure e,char *buffer,int length);
53-
int RULEto_buffer(Rule e,char *buffer,int length);
54-
int SCHEMAref_to_buffer(Schema s,char *buffer,int length);
55-
int STMTto_buffer(Statement s,char *buffer,int length);
56-
int TYPEto_buffer(Type t,char *buffer,int length);
57-
int TYPEhead_to_buffer(Type t,char *buffer,int length);
58-
int TYPEbody_to_buffer(Type t,char *buffer,int length);
59-
int WHEREto_buffer(Linked_List w,char *buffer,int length);
48+
int REFto_buffer( Dictionary refdict, Linked_List reflist, char * type, int level, char * buffer, int length );
49+
int ENTITYto_buffer( Entity e, char * buffer, int length );
50+
int EXPRto_buffer( Expression e, char * buffer, int length );
51+
int FUNCto_buffer( Function e, char * buffer, int length );
52+
int PROCto_buffer( Procedure e, char * buffer, int length );
53+
int RULEto_buffer( Rule e, char * buffer, int length );
54+
int SCHEMAref_to_buffer( Schema s, char * buffer, int length );
55+
int STMTto_buffer( Statement s, char * buffer, int length );
56+
int TYPEto_buffer( Type t, char * buffer, int length );
57+
int TYPEhead_to_buffer( Type t, char * buffer, int length );
58+
int TYPEbody_to_buffer( Type t, char * buffer, int length );
59+
int WHEREto_buffer( Linked_List w, char * buffer, int length );
6060
#endif

include/express/alg.h

Lines changed: 71 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
/* $Id: alg.h,v 1.4 1997/01/21 19:17:11 dar Exp $ */
55

66
/************************************************************************
7-
** Module: Algorithm
8-
** Description: This module implements the Algorithm abstraction. An
9-
** algorithm can be a procedure, a function, or a rule. It consists
10-
** of a name, a return type (for functions and rules), a list of
11-
** formal parameters, and a list of statements (body).
7+
** Module: Algorithm
8+
** Description: This module implements the Algorithm abstraction. An
9+
** algorithm can be a procedure, a function, or a rule. It consists
10+
** of a name, a return type (for functions and rules), a list of
11+
** formal parameters, and a list of statements (body).
1212
** Constants:
13-
** ALGORITHM_NULL - the null algorithm
13+
** ALGORITHM_NULL - the null algorithm
1414
**
1515
************************************************************************/
1616

@@ -43,7 +43,7 @@
4343
/* packages used */
4444
/*****************/
4545

46-
#include "expbasic.h" /* get basic definitions */
46+
#include "expbasic.h" /* get basic definitions */
4747
#include "symbol.h"
4848
#include "scope.h"
4949
#include "type.h"
@@ -52,10 +52,10 @@
5252
/* typedefs */
5353
/************/
5454

55-
typedef struct Scope_ *Procedure;
56-
typedef struct Scope_ *Function;
57-
typedef struct Scope_ *Rule;
58-
typedef struct Where_ *Where;
55+
typedef struct Scope_ * Procedure;
56+
typedef struct Scope_ * Function;
57+
typedef struct Scope_ * Rule;
58+
typedef struct Where_ * Where;
5959

6060
/***************************/
6161
/* hidden type definitions */
@@ -64,46 +64,46 @@ typedef struct Where_ *Where;
6464
/* each formal tag has one of these structs allocated to it */
6565
/* As each (real) call is resolved, the tag->type is temporarily borrowed */
6666
struct tag {
67-
char *name;
68-
Type type;
67+
char * name;
68+
Type type;
6969
};
7070

7171
/* location of fulltext of algorithm in source file */
7272
struct FullText {
73-
char *filename;
73+
char * filename;
7474
short start, end;
7575
};
7676

7777
/* 'parameters' are lists of lists of (type) expressions */
7878
struct Procedure_ {
79-
int pcount; /* # of parameters */
80-
int tag_count; /* # of different parameter tags */
81-
Linked_List parameters;
82-
Linked_List body;
83-
struct FullText text;
84-
int builtin; /* builtin if true */
79+
int pcount; /* # of parameters */
80+
int tag_count; /* # of different parameter tags */
81+
Linked_List parameters;
82+
Linked_List body;
83+
struct FullText text;
84+
int builtin; /* builtin if true */
8585
};
8686

8787
struct Function_ {
88-
int pcount; /* # of parameters */
89-
int tag_count; /* # of different parameter/return value tags */
90-
Linked_List parameters;
91-
Linked_List body;
92-
Type return_type;
93-
struct FullText text;
94-
int builtin; /* builtin if true */
88+
int pcount; /* # of parameters */
89+
int tag_count; /* # of different parameter/return value tags */
90+
Linked_List parameters;
91+
Linked_List body;
92+
Type return_type;
93+
struct FullText text;
94+
int builtin; /* builtin if true */
9595
};
9696

9797
struct Rule_ {
98-
Linked_List parameters;
99-
Linked_List body;
100-
struct FullText text;
98+
Linked_List parameters;
99+
Linked_List body;
100+
struct FullText text;
101101
};
102102

103103
/* define a where clause */
104104
struct Where_ {
105-
Symbol *label;
106-
Expression expr;
105+
Symbol * label;
106+
Expression expr;
107107
};
108108

109109
/********************/
@@ -120,53 +120,53 @@ extern struct freelist_head WHERE_fl;
120120
/* macro function definitions */
121121
/******************************/
122122

123-
#define ALG_new() (struct Algorithm *)MEM_new(&ALG_fl);
124-
#define ALG_destroy(x) MEM_destroy(&ALG_fl,(Freelist *)(Generic)x)
125-
#define FUNC_new() (struct Function_ *)MEM_new(&FUNC_fl)
126-
#define FUNC_destroy(x) MEM_destroy(&FUNC_fl,(Freelist *)(Generic)x)
127-
#define RULE_new() (struct Rule_ *)MEM_new(&RULE_fl)
128-
#define RULE_destroy(x) MEM_destroy(&RULE_fl,(Freelist *)(Generic)x)
129-
#define PROC_new() (struct Procedure_ *)MEM_new(&PROC_fl)
130-
#define PROC_destroy(x) MEM_destroy(&PROC_fl,(Freelist *)(Generic)x)
131-
#define WHERE_new() (struct Where_ *)MEM_new(&WHERE_fl)
123+
#define ALG_new() (struct Algorithm *)MEM_new(&ALG_fl);
124+
#define ALG_destroy(x) MEM_destroy(&ALG_fl,(Freelist *)(Generic)x)
125+
#define FUNC_new() (struct Function_ *)MEM_new(&FUNC_fl)
126+
#define FUNC_destroy(x) MEM_destroy(&FUNC_fl,(Freelist *)(Generic)x)
127+
#define RULE_new() (struct Rule_ *)MEM_new(&RULE_fl)
128+
#define RULE_destroy(x) MEM_destroy(&RULE_fl,(Freelist *)(Generic)x)
129+
#define PROC_new() (struct Procedure_ *)MEM_new(&PROC_fl)
130+
#define PROC_destroy(x) MEM_destroy(&PROC_fl,(Freelist *)(Generic)x)
131+
#define WHERE_new() (struct Where_ *)MEM_new(&WHERE_fl)
132132
#define WHERE_destroy(x) MEM_destroy(&WHERE_fl,(Freelist *)(Generic)x)
133133

134-
#define ALGput_name(algorithm, name) SCOPEput_name(algorithm,name)
135-
#define ALGget_name(algorithm) SCOPEget_name(algorithm)
136-
#define ALGget_symbol(a) SCOPEget_symbol(a)
137-
#define FUNCget_name(f) SCOPEget_name(f)
138-
#define PROCget_name(p) SCOPEget_name(p)
139-
#define RULEget_name(r) SCOPEget_name(r)
140-
#define FUNCput_name(f) SCOPEput_name(f,n)
141-
#define PROCput_name(p) SCOPEput_name(p,n)
142-
#define RULEput_name(r) SCOPEput_name(r,n)
143-
#define FUNCget_symbol(f) SCOPEget_symbol(f)
144-
#define PROCget_symbol(r) SCOPEget_symbol(p)
145-
#define RULEget_symbol(r) SCOPEget_symbol(r)
146-
#define FUNCget_parameters(f) ((f)->u.func->parameters)
147-
#define PROCget_parameters(p) ((p)->u.proc->parameters)
148-
#define RULEget_parameters(r) ((r)->u.rule->parameters)
149-
#define FUNCget_body(f) ((f)->u.func->body)
150-
#define PROCget_body(p) ((p)->u.proc->body)
151-
#define RULEget_body(r) ((r)->u.rule->body)
152-
#define FUNCput_body(f,b) ((f)->u.func->body = b)
153-
#define PROCput_body(p,b) ((p)->u.proc->body = b)
154-
#define RULEput_body(r,b) ((r)->u.rule->body = b)
155-
#define FUNCget_return_type(f) ((f)->u.func->return_type)
156-
#define RULEget_where(r) ((r)->where)
157-
#define RULEput_where(r,w) ((r)->where = (w))
134+
#define ALGput_name(algorithm, name) SCOPEput_name(algorithm,name)
135+
#define ALGget_name(algorithm) SCOPEget_name(algorithm)
136+
#define ALGget_symbol(a) SCOPEget_symbol(a)
137+
#define FUNCget_name(f) SCOPEget_name(f)
138+
#define PROCget_name(p) SCOPEget_name(p)
139+
#define RULEget_name(r) SCOPEget_name(r)
140+
#define FUNCput_name(f) SCOPEput_name(f,n)
141+
#define PROCput_name(p) SCOPEput_name(p,n)
142+
#define RULEput_name(r) SCOPEput_name(r,n)
143+
#define FUNCget_symbol(f) SCOPEget_symbol(f)
144+
#define PROCget_symbol(r) SCOPEget_symbol(p)
145+
#define RULEget_symbol(r) SCOPEget_symbol(r)
146+
#define FUNCget_parameters(f) ((f)->u.func->parameters)
147+
#define PROCget_parameters(p) ((p)->u.proc->parameters)
148+
#define RULEget_parameters(r) ((r)->u.rule->parameters)
149+
#define FUNCget_body(f) ((f)->u.func->body)
150+
#define PROCget_body(p) ((p)->u.proc->body)
151+
#define RULEget_body(r) ((r)->u.rule->body)
152+
#define FUNCput_body(f,b) ((f)->u.func->body = b)
153+
#define PROCput_body(p,b) ((p)->u.proc->body = b)
154+
#define RULEput_body(r,b) ((r)->u.rule->body = b)
155+
#define FUNCget_return_type(f) ((f)->u.func->return_type)
156+
#define RULEget_where(r) ((r)->where)
157+
#define RULEput_where(r,w) ((r)->where = (w))
158158
/*
159-
#define RULEget_where_clause(r) ((r)->u.rule->where)
159+
#define RULEget_where_clause(r) ((r)->u.rule->where)
160160
*/
161-
#define WHEREget_label(w) ((w)->label)
162-
#define WHEREget_expression(w) ((w)->expr)
161+
#define WHEREget_label(w) ((w)->label)
162+
#define WHEREget_expression(w) ((w)->expr)
163163

164164
/***********************/
165165
/* function prototypes */
166166
/***********************/
167167

168-
extern Scope ALGcreate PROTO((char));
169-
extern void ALGinitialize PROTO((void));
170-
extern void ALGput_full_text PROTO((Scope, int, int));
168+
extern Scope ALGcreate PROTO( ( char ) );
169+
extern void ALGinitialize PROTO( ( void ) );
170+
extern void ALGput_full_text PROTO( ( Scope, int, int ) );
171171

172172
#endif /* ALGORITHM_H */

0 commit comments

Comments
 (0)