Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
benkasminbullock committed Apr 28, 2017
1 parent 1f5f9d3 commit 7180cf6
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 5 deletions.
14 changes: 10 additions & 4 deletions argument.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

static int arg_n_mallocs;

/* Create and return a new "struct arg" structure with zero values. */
/* This function creates and returns a new "struct arg" structure with
zero values. */

static struct arg *
new_arg ()
Expand All @@ -25,7 +26,8 @@ new_arg ()
return value;
}

/* Create a new "arg" structure. */
/* This function creates a new "arg" structure with an allocated
"types" field. */

struct arg *
arg_start ()
Expand Down Expand Up @@ -358,8 +360,9 @@ arg_fprint (FILE * f, struct arg * a)
}

/* Print all the arguments in "a" to "f". "do_extern" controls whether
to print the "extern" keyword, and it is set to a true value only
if copying verbatim into the header file. */
to print the "extern" keyword, and it is set to a false value only
if copying a variable declaration verbatim into the header file,
which is generally a bad idea. */

void
arg_fprint_all (FILE * f, struct arg * a, int do_extern)
Expand Down Expand Up @@ -391,6 +394,9 @@ arg_fprint_all (FILE * f, struct arg * a, int do_extern)
}
}

/* Check that all the memory allocated within this file has been
freed. */

void
arg_memory_check ()
{
Expand Down
6 changes: 5 additions & 1 deletion wt.c
Original file line number Diff line number Diff line change
Expand Up @@ -263,10 +263,14 @@ is_c_file (const char * file_name)
}
}

/* Print the line declaration for the current line relative to the
source file. */

static void
print_line_number (cfparse_t * cfp)
{
fprintf (cfp->outfile, "\n#line %u \"%s\"\n", yylineno, get_source_name ());
fprintf (cfp->outfile, "\n#line %u \"%s\"\n", yylineno,
get_source_name ());
}

/* Check whether a particular quantity has overflowed a maximum, and if
Expand Down

0 comments on commit 7180cf6

Please sign in to comment.