35 lines
1.1 KiB
Diff
35 lines
1.1 KiB
Diff
--- src/output.c
|
|
+++ src/output.c
|
|
@@ -15,6 +15,8 @@
|
|
#include <sys/types.h>
|
|
#include <utime.h>
|
|
#include <sys/stat.h>
|
|
+#include <stdlib.h>
|
|
+#include <time.h>
|
|
|
|
#include "indent.h"
|
|
#include "sys.h"
|
|
@@ -23,7 +25,7 @@
|
|
|
|
RCSTAG_CC ("$Id: output.c,v 1.5 2002/12/12 17:36:49 david Exp $");
|
|
|
|
-static FILE * output = NULL;
|
|
+FILE * output = NULL;
|
|
static BOOLEAN inhibited = 0;
|
|
static buf_break_st_ty * buf_break_list = NULL;
|
|
|
|
@@ -737,11 +739,11 @@
|
|
|
|
if (s[0] == '/' && (s[1] == '*' || s[1] == '/'))
|
|
{
|
|
- fprintf (output, "%.*s", e_lab - s, s);
|
|
+ fprintf (output, "%.*s", (int) (e_lab - s), s);
|
|
}
|
|
else
|
|
{
|
|
- fprintf (output, "/* %.*s */", e_lab - s, s);
|
|
+ fprintf (output, "/* %.*s */", (int) (e_lab - s), s);
|
|
}
|
|
|
|
/* no need to update cur_col: the very next thing will
|