This repository has been archived by the owner on Dec 30, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from UteroOS/restructure-for-libcr-#38
Restructure for libcr #38
- Loading branch information
Showing
8 changed files
with
51 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
# Copyright (c) 2016-2017 Utero OS Developers. See the COPYRIGHT | ||
# file at the top-level directory of this distribution. | ||
# | ||
# Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or | ||
# http://www.apache.org/licenses/LICENSE-2.0> or the MIT license | ||
# <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your | ||
# option. This file may not be copied, modified, or distributed | ||
# except according to those terms. | ||
|
||
# This was taken from crystal/src/lib_c.cr | ||
|
||
lib LibCR | ||
alias Char = UInt8 | ||
alias UChar = Char | ||
alias SChar = Int8 | ||
alias Short = Int16 | ||
alias UShort = UInt16 | ||
alias Int = Int32 | ||
alias UInt = UInt32 | ||
|
||
{% if flag?(:x86_64) || flag?(:aarch64) %} | ||
alias Long = Int64 | ||
alias ULong = UInt64 | ||
{% elsif flag?(:i686) || flag?(:arm) %} | ||
alias Long = Int32 | ||
alias ULong = UInt32 | ||
{% end %} | ||
|
||
alias LongLong = Int64 | ||
alias ULongLong = UInt64 | ||
alias Float = Float32 | ||
alias Double = Float64 | ||
|
||
$environ : Char** | ||
end |
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters