Mit den folgenden Schaltern steuern Sie sowohl die Verarbeitung der Quelldatei(en), als auch die vom StarView Resource-Compiler erzeugten Ausgabedateien.
-br Gilt nur für MS-DOS. Es wird der rsc2r.exe anstelle von rsc2.exe
aufgerufen.
-bz Gilt nur für MS-DOS. Es wird der rsc2z.exe anstelle von rsc2.exe
aufgerufen.
-d<Symbol> Symboldefinitionen für den Präprozessor.
-fc<Dateiname> Code-Datei. In diese Datei mit der Endung ».CXX« werden die
Resource-Konstruktoren der in der RC-Datei spezifizierten Klas-
sen geschrieben. Die Sprache ist C++.
-fh<Dateiname> Header-Datei. In diese Datei mit der Endung ».HXX« werden
die Deklarationen der in der RC-Datei spezifizierten Klassen ge-
schrieben. Auch hier ist die Sprache C++.
-fl<Dateiname> Listing-Datei. In diese Datei werden Fehlermeldungen
ausgegeben.
-fo<Dateiname> Umbenennung der RES-Datei. Der per Default vergebene Name
ist der Name der ersten Quelldatei. Er bekommt die Endung
».RES«. Die RES-Datei ist die vom systemabhängigen Resource-
Compiler erzeugte Binärdatei.
-fp<Dateiname> Umbenennung der SRS-Datei. Der per Default vergebene Name
ist der Name der ersten Quelldatei und die Endung ».SRS«. Die
SRS-Datei ist eine symbolfreie Resource-Beschreibungsdatei. Sie
wird nur dann erzeugt, wenn Sie RSC.EXE mit dem Schalter »-s«
aufrufen.
-fs<Dateiname> Umbenennung der RC-Datei. Der per Default vergebene Name
ist der Name der ersten Quelldatei und die Endung ».RC«. Die
RC-Datei ist die vom systemabhängigen Resource-Compiler er-
zeugte Resource-Beschreibungsdatei.
-h Zeigt eine Kurzfassung der möglichen Parameter an.
-i<Pfad(e)> Include-Direktiven für den Präprozessor, falls weitere Suchpfade
für Include-Dateien berücksichtigt werden sollen.
-l Es wird eine Syntaxanalyse vorgenommen, und der Präprozessor
wird nicht aufgerufen. Eine RC-Datei wird erzeugt. Der system-
abhängige Resource-Compiler (RC.EXE) wird aufgerufen, der
jetzt seinerseits eine RES-Datei erstellt.
-p Kein Präprozessor, dafür aber eine Auflösung
der Resourcen, die auch vom Design-Editor
bearbeitet werden können (s.a. »Präprozessor«).
-pp<Dateiname> Anderen Präprozessor verwenden (siehe »Präprozessor«).
-r Der systemabhängige Resource-Compiler (z.B. RC.EXE für Win-
dows) wird nicht aufgerufen, es wird keine RES-Datei erzeugt.
-s Es wird eine Syntaxanalyse vorgenommen und eine Datei mit der Endung ».SRS« erzeugt.
-WIN Es wird eine MS-Windows-Resource erstellt.
-MTF Es wird eine X-Windows- (Motif-) Resource erstellt.
-MAC Es wird eine Macintosh-Resource erstellt.
-REFDEEP<Zahl> Die Zahl gibt an, wie tief der Resource-Compiler die Referenzen
auflösen soll. Default ist 10, das heißt der Compiler löst ver-
schachtelungen von Referenzen bis 10 auf.
5.2 Syntax
Compiler-Anweisungen
#pragma CHARSET IBMPC
#pragma CHARSET ANSI
#pragma CHARSET MAC
Default Präprozessor-Syntax
PrepDefinition:
{ IncludeDefinition }
[{ DefineDefinition }]
IncludeDefinition:
'#' include '<' Dateiname '>' |
'#' include String
DefineDefinition:
'#' define SYMBOL NumberExpression
Class-Syntax
ResourceDefinition:
[ PrepDefinition ]
{ ClassDefinition }
ClassDefinition:
ClassHeader ClassBody ';'
ClassHeader ';' |
NumberExpression ';' |
TupelExpression ';' |
CONSTNAME ';' |
Boolean ';' |
String ';'
ClassHeader:
CLASSNAME [ Identifier ] [ ',' | '<' Identifier ]
ClassBody:
'{'
{
ClassDefinition |
VariableDefiniton
}
'}'
VariableDefinition:
VARIABLENAME '=' ClassDefinition |
VARIABLENAME '=' '{' { ClassDefinition } '}' ';'
TupelExpression:
[ ClassDefinition ] '(' { ClassDefinition } ')'
NumberExpression:
[ '-' | '+' ] Number |
NumberExpression '+' | '-' | '*' | '/'
NumberExpression |
[ '-' | '+' ] '(' NumberExpression ')'
Identifier:
NumberExpression |
Symbol
Number:
{ DEZIMALZIFFER } |
'0' 'x' { HEXADEZIMALZIFFER }
Boolean:
TRUE | FALSE
5.3 StarView-Resourceklassen
Stehen hinter einem Variablennamen drei Punkte, dann ist kein Default definiert, oder der Default ist auf den Systemen verschieden.