cairo/src/win32
Andrea Canciani f717341ab9 doc: Make documentation comments symmetric
Documentation comments should always start with "/**" and end with
"**/". This is not required by gtk-doc, but it makes the
documentations formatting more consistent and simplifies the checking
of documentation comments.

The following Python script tries to enforce this.

from sys import argv
from sre import search

for filename in argv[1:]:
    in_doc = False
    lines = open(filename, "r").read().split("\n")
    for i in range(len(lines)):
        ls = lines[i].strip()
        if ls == "/**":
            in_doc = True
        elif in_doc and ls == "*/":
            lines[i] = " **/"
        if ls.endswith("*/"):
            in_doc = False

    out = open(filename, "w")
    out.write("\n".join(lines))
    out.close()

This fixes most 'documentation comment not closed with **/' warnings
by check-doc-syntax.awk.
2012-03-29 11:03:18 +02:00
..
cairo-win32-debug.c win32: Rebase on the new compositor infrastructure 2012-02-15 14:37:11 +00:00
cairo-win32-device.c win32: Rebase on the new compositor infrastructure 2012-02-15 14:37:11 +00:00
cairo-win32-display-surface.c doc: Make documentation comments symmetric 2012-03-29 11:03:18 +02:00
cairo-win32-font.c doc: Make documentation comments symmetric 2012-03-29 11:03:18 +02:00
cairo-win32-gdi-compositor.c win32: Fix damage flushing 2012-03-21 20:09:52 +00:00
cairo-win32-printing-surface.c win32: Rebase on the new compositor infrastructure 2012-02-15 14:37:11 +00:00
cairo-win32-private.h win32: Rebase on the new compositor infrastructure 2012-02-15 14:37:11 +00:00
cairo-win32-surface.c doc: Make documentation comments symmetric 2012-03-29 11:03:18 +02:00
cairo-win32-system.c win32: Rebase on the new compositor infrastructure 2012-02-15 14:37:11 +00:00