Skip to content

Commit

Permalink
Small update
Browse files Browse the repository at this point in the history
  • Loading branch information
[email protected] authored and [email protected] committed Jul 18, 2017
1 parent dca40d0 commit 23f46de
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 13 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Try
FDelphiLibSass := TDelphiLibSass.Create('libsass.dll');
FDelphiLibSass.LoadDLL;
FScssResult := FDelphiLibSass.ConvertToCss('$font-stack: Helvetica, sans-serif;');
FScssResult := FDelphiLibSass.ConvertToCss('$font-stack: Helvetica, sans-serif; body { font: 100% $font-stack; }');
writeln(FScssResult.CSS);
Finally
Expand Down
4 changes: 0 additions & 4 deletions Sample/Main.dfm
Original file line number Diff line number Diff line change
Expand Up @@ -47,10 +47,6 @@ object frmMain: TfrmMain
object ConvertToCss: TTabSheet
Caption = 'ConvertToCss Example'
ImageIndex = 1
ExplicitLeft = 8
ExplicitTop = 28
ExplicitWidth = 671
ExplicitHeight = 0
object btnsasstocss2: TButton
Left = 3
Top = 3
Expand Down
10 changes: 5 additions & 5 deletions Source/Core/DelphiLibSassCommon.pas
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ interface
cLibSassName = 'libsass.dll';

type
TSass_File_Context = IntPtr {Pointer};
TSass_Compiler = IntPtr {Pointer};
TSass_Context = IntPtr {Pointer};
TSass_included_files = IntPtr {Pointer};
TSass_Data_Context = IntPtr {Pointer};
TSass_File_Context = IntPtr;
TSass_Compiler = IntPtr;
TSass_Context = IntPtr;
TSass_included_files = IntPtr;
TSass_Data_Context = IntPtr;

PSass_IncludeFiles = ^TSass_IncludeFiles;
TSass_IncludeFiles = record
Expand Down
2 changes: 1 addition & 1 deletion Source/Core/DelphiLibSassLib.pas
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ procedure TDelphiLibSassLib.LoadDLL;
fsLibraryFilename := cLibSassName;


fDLLHandle := LoadLibrary(PWideChar(fsLibraryFilename));
fDLLHandle := SafeLoadLibrary(fsLibraryFilename);
if fDLLHandle =0 then
raise EDelphiLibSassError.Create('Unable to Load DLL');

Expand Down
Binary file modified Source/Packages/DELPHIXE8/LIBSASS_CORE.DPK
Binary file not shown.
4 changes: 2 additions & 2 deletions Source/Packages/DELPHIXE8/LIBSASS_CORE.DPROJ
Original file line number Diff line number Diff line change
Expand Up @@ -496,13 +496,13 @@
<Operation>1</Operation>
</Platform>
</DeployClass>
<ProjectRoot Platform="OSX32" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="Android" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="Win32" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="iOSDevice64" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="OSX32" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="Win64" Name="$(PROJECTNAME)"/>
<ProjectRoot Platform="iOSSimulator" Name="$(PROJECTNAME).app"/>
<ProjectRoot Platform="iOSDevice32" Name="$(PROJECTNAME).app"/>
</Deployment>
</BorlandProject>
<ProjectFileVersion>12</ProjectFileVersion>
Expand Down
Binary file modified Source/Packages/DELPHIXE8/LIBSASS_CORE.res
Binary file not shown.

0 comments on commit 23f46de

Please sign in to comment.