[OpenSIPS-Devel] [OpenSIPS/opensips] 88e949: lexer: Fix multi-line string parsing

Liviu Chircu noreply at github.com
Sat Apr 20 04:34:52 EDT 2019


  Branch: refs/heads/3.0
  Home:   https://github.com/OpenSIPS/opensips
  Commit: 88e9499400ad744d9ca73d00b7b12d10213fc720
      https://github.com/OpenSIPS/opensips/commit/88e9499400ad744d9ca73d00b7b12d10213fc720
  Author: Liviu Chircu <liviu at opensips.org>
  Date:   2019-04-20 (Sat, 20 Apr 2019)

  Changed paths:
    M cfg.lex
    M cfg_pp.c
    M cfg_pp.h

  Log Message:
  -----------
  lexer: Fix multi-line string parsing

Multi-line strings were broken by the generic preprocessing support, as
both double and single quoted strings have their own lexing rules, which
take precedence over the "consume preprocessor tokens" lexer rule.

Reported by Dan Pascu

(cherry picked from commit 4b33da67ffd0f1a5b2507939ee0cf440e9ba00f9)





More information about the Devel mailing list