Skip to content

Commit

Permalink
Made changes to input and output file name length - from 120 to BIFS…
Browse files Browse the repository at this point in the history
…IZ which is 2048
  • Loading branch information
Wayne Cripps committed Mar 28, 2022
1 parent 9267274 commit af95c0d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
VERSION "4.3.104"
change file name length to be greater than 120 chars

VERSION "4.3.103"
make gray barline that don't count in bar numbering
add github token

VERSION "4.3.102"
fixes to make measure numbers print when used with double bar lines
Expand Down
2 changes: 1 addition & 1 deletion buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ void buffer::dump(const char *fname, const mode mode) // dump to a file
if (strcmp(fname, "stdout")) {
fp = fopen(fname, "wb");
if (fp == NULL) {
dbg1(Error, "tab: dump: can't open %s for output\n", (void *)fname);
dbg1(Error, "tab: buffer: dump: can't open %s for output\n", (void *)fname);
}
fwrite(bytes, num_bytes, 1, fp);
fclose(fp);
Expand Down
4 changes: 2 additions & 2 deletions file_in.cc
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void c2p(const char * name, Str255 fname);
file_in::file_in(const char * fname, const char *mode)
{
dbg1(Proceedure, "starting file_in %s\n", (void *)fname);
fn = (char *)malloc(120);
fn = (char *)malloc(1024);
strcpy (fn, fname);
_file_in(fname, mode);
}
Expand Down Expand Up @@ -117,7 +117,7 @@ file_in::~file_in()

file_in::file_in()
{
char fname[120];
char fname[1024];
#ifdef MAC
OSErr error;
short refNum;
Expand Down
2 changes: 1 addition & 1 deletion i_buf.cc
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ void i_buf::dump(const char *fname, const mode mode) // dump to a file
}

if (fp == NULL) {
dbg1(Error, "tab: dump: can't open %s for output\n", (void *)fname);
dbg1(Error, "tab: i_buf: dump: can't open %s for output\n", (void *)fname);
}

file_bytes = num_bytes;
Expand Down
2 changes: 1 addition & 1 deletion main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ void init(file_info *f)
/* int pagenum = 0; */
bar_count = 0;
red = 1.0;
f->file = (char *)malloc( BL );
f->file = (char *)malloc( BUFSIZ /* BL */ ); /* wbc Mar 28 2022 */
f->file[0] = '\0';
f->out_file = (char *)malloc( BL );
f->out_file[0] = '\0';
Expand Down
2 changes: 1 addition & 1 deletion ps_print.h
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class ps_print : public print {
void make_ps_font(i_buf *ps_header);
void init_hv();
int ps_top_of_page;
char f_name[120]; // this should be in ps_print.h
char f_name[BUFSIZ]; // this should be in ps_print.h
double font_sizes[FONT_NAMES];
int nodump;
unsigned int left_margin;
Expand Down
2 changes: 1 addition & 1 deletion tab.h
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ void dbg_set(const dbg_type type);
#endif

#define STAFF 11
#define BL 120 /* default file name size */
#define BL 1024 /* 120 */ /* default file name size */
#define STAFF_PAGE 9
#define MAX_PAGE 25

Expand Down
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define VERSION "4.3.103"
#define VERSION "4.3.104"

0 comments on commit af95c0d

Please sign in to comment.