cosmetics

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@8988 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2006-03-07 22:02:54 +00:00
commit 4f9d3e819f
16 changed files with 90 additions and 103 deletions

View file

@ -147,11 +147,11 @@ scanner_locator(String *loc) {
}
#endif
/**************************************************************
/* ----------------------------------------------------------------------------
* scanner_init()
*
* Initialize buffers
**************************************************************/
* ------------------------------------------------------------------------- */
void scanner_init() {
yybuffer = (char *) malloc(YYBSIZE);
@ -161,11 +161,11 @@ void scanner_init() {
scanner_ccode = NewStringEmpty();
}
/**************************************************************
/* ----------------------------------------------------------------------------
* scanner_file(FILE *f)
*
* Start reading from new file
**************************************************************/
* ------------------------------------------------------------------------- */
void scanner_file(DOHFile *f) {
InFile *in;
@ -180,11 +180,11 @@ void scanner_file(DOHFile *f) {
cparse_line = 1;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* scanner_close()
*
* Close current input file and go to next
**************************************************************/
* ------------------------------------------------------------------------- */
void scanner_close() {
InFile *p;
@ -202,13 +202,13 @@ void scanner_close() {
in_head = p;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* char nextchar()
*
* gets next character from input.
* If we're in inlining mode, we actually retrieve a character
* from inline_yybuffer instead.
**************************************************************/
* ------------------------------------------------------------------------- */
char nextchar() {
int c = 0;
@ -248,7 +248,7 @@ void retract(int n) {
if (yylen < 0) yylen = 0;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* start_inline(char *text, int line)
*
* This grabs a chunk of text and tries to inline it into
@ -257,7 +257,7 @@ void retract(int n) {
*
* If we're already in inlining mode, we will save the code
* as a new fragment.
**************************************************************/
* ------------------------------------------------------------------------- */
void start_inline(char *text, int line) {
InFile *in;
@ -277,11 +277,11 @@ void start_inline(char *text, int line) {
cparse_line = line;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* yycomment(char *, int line)
*
* Inserts a comment into a documentation entry.
**************************************************************/
* ------------------------------------------------------------------------- */
/*
void yycomment(char *a, int b, int c) {
@ -361,7 +361,7 @@ skip_balanced(int startchar, int endchar) {
return;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* void skip_decl(void)
*
* This tries to skip over an entire declaration. For example
@ -371,7 +371,7 @@ skip_balanced(int startchar, int endchar) {
* or
* friend ostream& operator<<(ostream&, const char *s) { };
*
**************************************************************/
* ------------------------------------------------------------------------- */
void skip_decl(void) {
char c;
@ -507,12 +507,12 @@ static void get_escape() {
return;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* int yylook()
*
* Lexical scanner.
* See Aho,Sethi, and Ullman, pg. 106
**************************************************************/
* ------------------------------------------------------------------------- */
int yylook(void) {
@ -1036,11 +1036,11 @@ void scanner_next_token(int tok) {
next_token = tok;
}
/**************************************************************
/* ----------------------------------------------------------------------------
* int yylex()
*
* Gets the lexene and returns tokens.
*************************************************************/
* ------------------------------------------------------------------------- */
int yylex(void) {