[asterisk-commits] anthonyl: branch anthonyl/8678-commentbuffer
r49185 - /team/anthonyl/8678-com...
asterisk-commits at lists.digium.com
asterisk-commits at lists.digium.com
Tue Jan 2 08:47:42 MST 2007
Author: anthonyl
Date: Tue Jan 2 09:47:41 2007
New Revision: 49185
URL: http://svn.digium.com/view/asterisk?view=rev&rev=49185
Log:
keeping the fix but getting rid of the debugging statments
Modified:
team/anthonyl/8678-commentbuffer/main/config.c
Modified: team/anthonyl/8678-commentbuffer/main/config.c
URL: http://svn.digium.com/view/asterisk/team/anthonyl/8678-commentbuffer/main/config.c?view=diff&rev=49185&r1=49184&r2=49185
==============================================================================
--- team/anthonyl/8678-commentbuffer/main/config.c (original)
+++ team/anthonyl/8678-commentbuffer/main/config.c Tue Jan 2 09:47:41 2007
@@ -129,10 +129,8 @@
int siz = strlen(str);
if (rem < siz+1) {
lline_buffer = ast_realloc(lline_buffer, lline_buffer_size + CB_INCR + siz + 1);
- if (!lline_buffer) {
- ast_verbose("WARNING lline_buffer NULL\n");
+ if (!lline_buffer)
return;
- }
lline_buffer_size += CB_INCR + siz + 1;
}
strcat(lline_buffer,str);
@@ -347,7 +345,6 @@
config->include_level = config->include_level;
config->last = category;
config->current = category;
- ast_verbose("INCLUDE LEVEL: %i\n", config->include_level);
}
void ast_category_destroy(struct ast_category *cat)
@@ -807,10 +804,7 @@
ast_log(LOG_ERROR, "Failed to initialize the comment buffer!\n");
return NULL;
}
-
- ast_verbose("CB_INIT() called llinebuffer %p comment_buffer %p\n", lline_buffer, comment_buffer);
- }
-
+ }
#ifdef AST_INCLUDE_GLOB
{
int glob_ret;
@@ -861,7 +855,6 @@
lineno++;
if (fgets(buf, sizeof(buf), f)) {
if ( withcomments ) {
- ast_verbose("CB_ADD: lline_buffer (%p) for %s\n",lline_buffer, filename);
CB_ADD(lline_buffer); /* add the current lline buffer to the comment buffer */
lline_buffer[0] = 0; /* erase the lline buffer */
}
@@ -900,7 +893,6 @@
char *oldptr;
oldptr = process_buf + strlen(process_buf);
if ( withcomments ) {
- ast_verbose("CB_ADD: (;)\n");
CB_ADD(";");
CB_ADD_LEN(oldptr+1,new_buf-oldptr-1);
}
@@ -925,7 +917,6 @@
}
if( withcomments && comment && !process_buf )
{
- ast_verbose("CB_ADD buf(%p)\n", buf);
CB_ADD(buf); /* the whole line is a comment, store it */
}
@@ -956,11 +947,9 @@
if (cfg->include_level == 1) {
if (withcomments) {
- ast_verbose("LINE we are done processing %s\n", filename);
if (comment_buffer) {
free(comment_buffer);
free(lline_buffer);
- ast_verbose("free'ing llinebuffer\n");
comment_buffer=0;
lline_buffer=0;
comment_buffer_size=0;
More information about the asterisk-commits
mailing list