Code cleanup
This commit is contained in:
parent
d5d3c77a87
commit
3f18c2f151
|
@ -1,5 +1,5 @@
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
/* Copyright (c) 2009 Pierre Pronchery <khorben@defora.org> */
|
/* Copyright (c) 2010 Pierre Pronchery <khorben@defora.org> */
|
||||||
/* This file is part of DeforaOS Devel cpp */
|
/* This file is part of DeforaOS Devel cpp */
|
||||||
/* cpp is not free software; you can redistribute it and/or modify it under the
|
/* cpp is not free software; you can redistribute it and/or modify it under the
|
||||||
* terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0
|
* terms of the Creative Commons Attribution-NonCommercial-ShareAlike 3.0
|
||||||
|
@ -435,7 +435,6 @@ static int _cpp_callback_whitespace(Parser * parser, Token * token, int c,
|
||||||
static int _cpp_callback_newline(Parser * parser, Token * token, int c,
|
static int _cpp_callback_newline(Parser * parser, Token * token, int c,
|
||||||
void * data)
|
void * data)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
|
||||||
CppParser * cpp = data;
|
CppParser * cpp = data;
|
||||||
|
|
||||||
if(c != '\n')
|
if(c != '\n')
|
||||||
|
@ -446,7 +445,7 @@ static int _cpp_callback_newline(Parser * parser, Token * token, int c,
|
||||||
parser_scan_filter(parser);
|
parser_scan_filter(parser);
|
||||||
token_set_code(token, CPP_CODE_NEWLINE);
|
token_set_code(token, CPP_CODE_NEWLINE);
|
||||||
token_set_string(token, "\n");
|
token_set_string(token, "\n");
|
||||||
return ret;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user