Skip to content

Commit

Permalink
Only need one default terminal width define
Browse files Browse the repository at this point in the history
  • Loading branch information
starseeker committed Dec 2, 2024
1 parent 70050f5 commit 0c332d5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions src/libged/ged_private.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ __BEGIN_DECLS
#endif

#define _GED_V4_MAXNAME NAMESIZE
/* Default libged column width assumption */
#define _GED_TERMINAL_WIDTH 80
#define _GED_COLUMNS ((_GED_TERMINAL_WIDTH + _GED_V4_MAXNAME - 1) / _GED_V4_MAXNAME)

Expand Down Expand Up @@ -115,8 +116,6 @@ __BEGIN_DECLS
#define DG_GED_MAX 2047.0
#define DG_GED_MIN -2048.0

/* Default libged column width assumption */
#define GED_TERMINAL_WIDTH 80

#define GED_CMD_RECURSION_LIMIT 100

Expand Down
2 changes: 1 addition & 1 deletion src/libged/ged_util.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ _ged_vls_col_pr4v(struct bu_vls *vls,

if (cwidth > 80)
cwidth = 80;
numcol = GED_TERMINAL_WIDTH / cwidth;
numcol = _GED_TERMINAL_WIDTH / cwidth;

/*
* For the number of (full and partial) lines that will be needed,
Expand Down

0 comments on commit 0c332d5

Please sign in to comment.