Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  check-preprocessor-syntax.sh

  Sprache: Shell
 

#!/bin/sh

LC_ALL=C
export LC_ALL

test -z "$srcdir" && srcdir=.
cd "$srcdir"
stat=0


HEADERS=$all_cairo_headers
test "x$HEADERS" = x && HEADERS=`find . -name 'cairo*.h' ! -name 'cairo*-private.h' ! -name 'cairo*-inline.h' ! -name 'cairoint.h'`

PRIVATE=$all_cairo_private
test "x$PRIVATE" = x && PRIVATE=`find . -name 'cairo*-private.h' -or -name 'cairo*-inline.h' -or -name 'cairoint.h'`

SOURCES=$all_cairo_sources
test "x$SOURCES" = x && SOURCES=`find . -name 'cairo*.c' -or -name 'cairo*.cpp'`

ALL="/dev/null $HEADERS $PRIVATE $SOURCES"

echo 'Checking that public header files #include "cairo.h" first (or none)'

for x in $HEADERS; do
 grep '#.*\<include\>' "$x" /dev/null | head -n 1
done |
grep -v '"cairo[.]h"' |
grep -v 'cairo[.]h:' |
grep . >&2 && stat=1


echo 'Checking that private header files #include "some cairo header" first (or none)'

for x in $PRIVATE; do
 grep '#.*\<include\>' "$x" /dev/null | head -n 1
done |
grep -v '"cairo.*[.]h"' |
grep -v 'cairoint[.]h:' |
grep . >&2 && stat=1


echo 'Checking that source files #include "cairoint.h" first (or none)'

for x in $SOURCES; do
 grep '#.*\<include\>' "$x" /dev/null | head -n 1
done |
grep -v '"cairoint[.]h"' |
grep . >&2 && stat=1


echo 'Checking that there is no #include <cairo.*.h>'
grep '^[^*]#.*\<include\>.*<.*cairo' $ALL >&2 && stat=1


echo 'Checking that feature conditionals are used with #if only (not #ifdef)'
grep '#ifdef CAIRO_HAS_' $ALL && stat=1
grep '#if.*defined[ ]*(CAIRO_HAS_' $ALL && stat=1

exit $stat

Messung V0.5 in Prozent
C=95 H=97 G=95

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Open Source Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik

Statistik
#Sources=277311
#Domains=752002