-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor/mbl misc updates #21
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
within Somewhere; | ||
class MyClass | ||
"Class to demo function definitions" | ||
extends Modelica.Icons.BasesPackage; | ||
function constructor | ||
"Construct to connect to a schedule in EnergyPlus" | ||
extends Modelica.Icons.Function; | ||
input Integer input1 | ||
"input 1 comment"; | ||
output MyClass adapter; | ||
external "C" adapter=ExternalFunctionCall( | ||
param1, | ||
param2, | ||
param3); | ||
end constructor; | ||
function destructor | ||
"Some comment" | ||
extends Modelica.Icons.Function; | ||
input Integer input2; | ||
external "C" EnergyPlusInputVariableFree( | ||
input2); | ||
end destructor; | ||
end MyClass; |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
within Somewhere; | ||
class MyClass | ||
"Class to demo function definitions" | ||
extends Modelica.Icons.BasesPackage; | ||
|
||
function constructor | ||
"Construct to connect to a schedule in EnergyPlus" | ||
extends Modelica.Icons.Function; | ||
|
||
input Integer input1 "input 1 comment"; | ||
output MyClass adapter; | ||
external "C" adapter = ExternalFunctionCall(param1, param2, param3); | ||
end constructor; | ||
|
||
function destructor "Some comment" | ||
extends Modelica.Icons.Function; | ||
|
||
input Integer input2; | ||
external "C" EnergyPlusInputVariableFree(input2); | ||
end destructor; | ||
end MyClass; |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,6 +185,35 @@ February 21, 2020, by Antoine Gautier:<br/> | |
First implementation. | ||
</li> | ||
</ul> | ||
</html>")); | ||
</html>"), | ||
Icon( | ||
graphics={ | ||
Rectangle( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. very nice |
||
lineColor={200,200,200}, | ||
fillColor={248,248,248}, | ||
fillPattern=FillPattern.HorizontalCylinder, | ||
extent={{-100,-100},{100,100}}, | ||
radius=25.0), | ||
Polygon( | ||
points={{0,76},{-80,-64},{80,-64},{0,76}}, | ||
fillColor={0,0,0}, | ||
fillPattern=FillPattern.Solid, | ||
pattern=LinePattern.None, | ||
lineColor={0,0,0}), | ||
Polygon( | ||
points={{0,68},{-72,-60},{72,-60},{0,68}}, | ||
lineColor={0,0,0}, | ||
fillColor={255,255,170}, | ||
fillPattern=FillPattern.Solid), | ||
Ellipse( | ||
extent={{-6,-36},{4,-46}}, | ||
pattern=LinePattern.None, | ||
fillColor={0,0,0}, | ||
fillPattern=FillPattern.Solid), | ||
Rectangle( | ||
extent={{-4,34},{2,-28}}, | ||
fillColor={0,0,0}, | ||
fillPattern=FillPattern.Solid, | ||
pattern=LinePattern.None)})); | ||
end building; | ||
/* trailing comment */ |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,6 +77,7 @@ func main() { | |
} | ||
if flag.NArg() == 0 { | ||
fmt.Fprintln(os.Stderr, "error: must provide at least one file or directory") | ||
usage() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. usage reports the command line arguments? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yeah, previously it would just say "error: ..." but having usage below the error will be helpful |
||
os.Exit(2) | ||
} | ||
|
||
|
Large diffs are not rendered by default.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks good!