Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/C/MariaDB/debian/     Datei vom 1.9.2026 mit Größe 203 B image not shown  

SSL find_badmacros  Sprache: Delphi


#!/bin/sh

# This script attempts to find bad ifdef's, i.e. ifdef's that use braces
# but not the do { ... } while (0) syntax
#
# src/tools/find_badmacros
#
# This is useful for running before pgindent

for FILE
do
 awk ' BEGIN  {was_define = "N"}
    { if (was_define == "Y" &&
          $0 ~ /^{/)
     printf "%s  %d\n", FILENAME, NR
      if ($0 ~ /^#define/)
     was_define = "Y"
      else
     was_define = "N"
    }' "$FILE"
 grep -on '^#define.*{' "$FILE" | grep -v 'do[  ]*{'
done

¤ Dauer der Verarbeitung: 0.0 Sekunden  (vorverarbeitet am  2026-11-25) ¤

*© Formatika GbR, Deutschland