Sha256: f5380dd52cacee566c45607aad3bcde89b05bb60862f7f3aeabf64363e90d618

Contents?: true

Size: 552 Bytes

Versions: 2

Compression:

Stored size: 552 Bytes

Contents

/* simple trigraphs */
%:define A 1
%:define B 2
%:define STRINGIFY_INTERN(x) %:x
%:define STRINGIFY(x) STRINGIFY_INTERN(x)

%:define M3_INIT(a, b, c) <% a, b, c %>
typedef int matrix3<:3:>;

struct str <%
  char *buf;
  unsigned int len, size;
%>;

int main(void)
<%
  const char *hello = STRINGIFY(hello);
  matrix3 m = M3_INIT(1, 2, 3);

  return m<:2:>;
%>

%:if 0
#define bug4
%:endif


/* test the same with untaken preprocessor paths (as they are then not read by
 * the C parser but get.c) */
#if 0
%:define if0d_A 1
%:define if0d_B 2
#endif

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ctags.rb-1.1.4 ext/vendor/ctags/Units/parser-c.r/c-digraphs.d/input.c
ctags.rb-1.1.3 ext/vendor/ctags/Units/parser-c.r/c-digraphs.d/input.c