Skip to content

Commit 9a5ee30

Browse files
committed
int -> const int for 3 exppp globals
1 parent ec25bfa commit 9a5ee30

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

include/exppp/exppp.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
#define EXPPP_H
33
#include <sc_export.h>
44

5-
extern SC_EXPPP_EXPORT int exppp_nesting_indent; /* default nesting indent */
6-
extern SC_EXPPP_EXPORT int exppp_continuation_indent; /* default nesting indent for */
5+
extern SC_EXPPP_EXPORT const int exppp_nesting_indent; /* default nesting indent */
6+
extern SC_EXPPP_EXPORT const int exppp_continuation_indent; /* default nesting indent for */
77
/* continuation lines */
8-
extern SC_EXPPP_EXPORT int exppp_linelength; /* leave some slop for closing */
8+
extern SC_EXPPP_EXPORT const int exppp_linelength; /* leave some slop for closing */
99
/* parens. \n is not included in */
1010
/* this count either */
1111
extern SC_EXPPP_EXPORT bool exppp_rmpp; /* if true, create rmpp */

src/exppp/exppp.c

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -44,13 +44,9 @@ void WHERE_out( Linked_List wheres, int level );
4444

4545
static Error ERROR_select_empty;
4646

47-
int exppp_nesting_indent = 2; /* default nesting indent */
48-
int exppp_continuation_indent = 4; /* default nesting indent for */
49-
/* continuation lines */
50-
int exppp_linelength = 75; /* leave some room for closing
51-
* parens. '\n' is not included in this
52-
* count either
53-
*/
47+
const int exppp_nesting_indent = 2; /* default nesting indent */
48+
const int exppp_continuation_indent = 4; /* default nesting indent for continuation lines */
49+
const int exppp_linelength = 75; /* leave some room for closing parens. '\n' is not included in this count either */
5450
int indent2; /* where continuation lines start */
5551
int curpos; /* current line position (1 is first position) */
5652

0 commit comments

Comments
 (0)