return fileptr;
}
-int read_file(FILE *f, const char *filename, int quiet)
+void read_file(FILE *f, const char *filename, int quiet)
{
int num_lines = 0, len = 0;
char input = '\0'; /* current input character */
totlines += num_lines;
- return 1;
+ return;
}
/* Open the file (and decide if it exists). */
if (i == NANO_EXTCMD_KEY) {
realname = mallocstrcpy(realname, "");
i = open_pipe(answer);
- } else
-#endif /* NANO_SMALL */
- {
+ } else {
+#endif
realname = real_dir_from_tilde(answer);
i = open_file(realname, 1, loading_file);
+#ifndef NANO_SMALL
}
+#endif
#ifdef ENABLE_MULTIBUFFER
if (loading_file) {
void new_file(void);
filestruct *read_line(char *buf, filestruct *prev, int *line1ins, size_t
len);
-int read_file(FILE *f, const char *filename, int quiet);
+void read_file(FILE *f, const char *filename, int quiet);
int open_file(const char *filename, int insert, int quiet);
char *get_next_filename(const char *name);
void do_insertfile(int loading_file);