pike.git / src / cpp.cmod

version» Context lines:

pike.git/src/cpp.cmod:93:   typedef void (*magic_define_fun)(struct object *,    struct define_struct *,    struct pike_string *,    struct string_builder *);      DECLARATIONS;      #define CPP_MACRO_DISABLED 1 /* Don't expand. */   #define CPP_MACRO_IN_USE 2 /* In use. */   #define CPP_MACRO_VARARGS 4 /* Varargs. */ + #define CPP_MACRO_KEEP_NL 8 /* Keep newlines. */      /*! @class CompilerEnvironment    */      /* Consider    *    * class Preprocessor    * {    * class Macro    * {
pike.git/src/cpp.cmod:342:    get_name_of_type(TYPEOF(Pike_sp[-1])));    pop_stack();    break;    }    string_builder_shared_strcat(&s, Pike_sp[-1].u.string);    pop_stack();    break;    }    }    +  if (d->flags & CPP_MACRO_KEEP_NL) goto keep_new_lines; +     remove_new_lines:    /* Remove any newlines from the completed expression. */    for(i=0; i< (ptrdiff_t)s.s->len; i++)    if(index_shared_string(s.s, i) == '\n')    SET_INDEX_CHARP(s.s->str, i, s.s->size_shift, ' ');       keep_new_lines:    pop_n_elems(args);    push_string(finish_string_builder(&s));    }