Branch: Tag:

2017-01-28

2017-01-28 14:30:36 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Compiler: Fixed indentation of PROGRAM_BUILD_DEBUG.

2701:    }      #ifdef PROGRAM_BUILD_DEBUG -  fprintf(stderr, "%.*soverloaded reference %d (id_flags:0x%04x)\n", +  fprintf(stderr, "%*soverloaded reference %d (id_flags:0x%04x)\n",    c->compilation_depth, "", cur_id, ref->id_flags);   #endif   
3224: Inside #if defined(PROGRAM_BUILD_DEBUG)
     #ifdef PROGRAM_BUILD_DEBUG    if (name) { -  fprintf (stderr, "%.*sstarting program %d (pass=%d): ", +  fprintf (stderr, "%*sstarting program %d (pass=%d): ",    c->compilation_depth, "",    Pike_compiler->new_program->id, Pike_compiler->compiler_pass);    push_string (name);
3232: Inside #if defined(PROGRAM_BUILD_DEBUG)
   putc ('\n', stderr);    }    else -  fprintf (stderr, "%.*sstarting program %d (pass=%d)\n", +  fprintf (stderr, "%*sstarting program %d (pass=%d)\n",    c->compilation_depth, "",    Pike_compiler->new_program->id, Pike_compiler->compiler_pass);   #endif
4400:    }      #ifdef PROGRAM_BUILD_DEBUG -  fprintf (stderr, "%.*sfinishing program %d (pass=%d)\n", +  fprintf (stderr, "%*sfinishing program %d (pass=%d)\n",    c->compilation_depth, "",    Pike_compiler->new_program->id, Pike_compiler->compiler_pass);   #endif
5729: Inside #if defined(PROGRAM_BUILD_DEBUG)
   {    struct compilation *c = THIS_COMPILATION;    struct pike_string *d = describe_type (t); -  fprintf (stderr, "%.*sdefining variable (pass=%d): %s ", +  fprintf (stderr, "%*sdefining variable (pass=%d): %s ",    c->compilation_depth, "", Pike_compiler->compiler_pass, d->str);    free_string (d);    push_string (n);
5782: Inside #if defined(PROGRAM_BUILD_DEBUG)
   {    struct compilation *c = THIS_COMPILATION;    struct pike_string *d = describe_type (type); -  fprintf (stderr, "%.*sdefining variable (pass=%d): %s ", +  fprintf (stderr, "%*sdefining variable (pass=%d): %s ",    c->compilation_depth, "", Pike_compiler->compiler_pass, d->str);    free_string (d);    push_string (name);
5950: Inside #if defined(PROGRAM_BUILD_DEBUG)
   if (c) {    struct pike_type *t = get_type_of_svalue(c);    struct pike_string *d = describe_type (t); -  fprintf (stderr, "%.*sdefining constant (pass=%d): %s ", +  fprintf (stderr, "%*sdefining constant (pass=%d): %s ",    cc->compilation_depth, "",    Pike_compiler->compiler_pass, d->str);    free_type(t);
5961: Inside #if defined(PROGRAM_BUILD_DEBUG)
   print_svalue (stderr, c);    }    else { -  fprintf (stderr, "%.*sdeclaring constant (pass=%d): ", +  fprintf (stderr, "%*sdeclaring constant (pass=%d): ",    cc->compilation_depth, "",    Pike_compiler->compiler_pass);    push_string (name);
6070:    else    id->type = get_type_of_svalue( c );   #ifdef PROGRAM_BUILD_DEBUG -  fprintf (stderr, "%.*sstored constant #%d at %d\n", +  fprintf (stderr, "%*sstored constant #%d at %d\n",    cc->compilation_depth, "",    n, id->func.const_info.offset);   #endif
6341: Inside #if defined(PROGRAM_BUILD_DEBUG)
  #ifdef PROGRAM_BUILD_DEBUG    {    struct pike_string *d = describe_type (type); -  fprintf (stderr, "%.*sdefining function (pass=%d): %s ", +  fprintf (stderr, "%*sdefining function (pass=%d): %s ",    c->compilation_depth, "", Pike_compiler->compiler_pass, d->str);    free_string (d);    push_string (name);
6563:    /* already defined */      #ifdef PROGRAM_BUILD_DEBUG -  fprintf(stderr, "%.*sexisted as identifier #%d\n", +  fprintf(stderr, "%*sexisted as identifier #%d\n",    c->compilation_depth, "", i);   #endif   
6621:    copy_pike_type(funp->type, type);    }else{   #ifdef PROGRAM_BUILD_DEBUG -  fprintf(stderr, "%.*sidentifier was inherited\n", +  fprintf(stderr, "%*sidentifier was inherited\n",    c->compilation_depth, "");   #endif   
6661:    if(ref.id_flags & ID_INLINE)    {   #ifdef PROGRAM_BUILD_DEBUG -  fprintf(stderr, "%.*sidentifier is local\n", +  fprintf(stderr, "%*sidentifier is local\n",    c->compilation_depth, "");   #endif    /* Hide the previous definition, and make a new definition. */
6671:       /* Otherwise we alter the existing definition */   #ifdef PROGRAM_BUILD_DEBUG -  fprintf(stderr, "%.*saltering the existing definition\n", +  fprintf(stderr, "%*saltering the existing definition\n",    c->compilation_depth, "");   #endif   
6794:    add_to_identifier_references(ref);      #ifdef PROGRAM_BUILD_DEBUG -  fprintf(stderr, "%.*sadded new definition #%d\n", +  fprintf(stderr, "%*sadded new definition #%d\n",    c->compilation_depth, "", i);   #endif