-
Notifications
You must be signed in to change notification settings - Fork 8
Initial changes and adaptations for embedded use #7
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
base: master
Are you sure you want to change the base?
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,38 @@ | ||
| { | ||
| "$schema": "https://raw.githubusercontent.com/platformio/platformio-core/develop/platformio/assets/schema/library.json", | ||
| "name": "Libzmanim", | ||
| "version": "1.0-1", | ||
| "description": "a C library for zmanim and hebrew dates", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git://github.com/yparitcher/libzmanim" | ||
| }, | ||
| "build": { | ||
| "unflags":"-std=gnu11", | ||
| "flags":[ | ||
| "-I include" | ||
| ,"-I windows" | ||
| ,"-D _WIN32" | ||
| ,"-Wall" | ||
| ,"-Wextra" | ||
| ,"-Wno-format-truncation" | ||
| ,"-O2" | ||
| ,"-pedantic" | ||
|
|
||
| ,"-std=c11" | ||
| ], | ||
| "includeDir": ".", | ||
| "srcDir": ".", | ||
| "srcFilter": "+<windows> +<src>" | ||
| }, | ||
| "authors": [ | ||
| { | ||
| "name": "Yparitcher", | ||
| "email": "[email protected]", | ||
| "url": "https://paritcher.com/" | ||
| } | ||
| ], | ||
| "license": "MIT", | ||
| "frameworks": "*", | ||
| "platforms": "*" | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,8 +20,8 @@ or connect to: http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html | |
| #include "stpncpy.h" | ||
| #endif | ||
|
|
||
| const char* hchar[]={ "׆", "א", "ב", "ג", "ד", "ה", "ו", "ז", "ח", "ט", "י", "כ", "ל", "מ", "נ", "ס", "ע", "פ", "צ", "ק", "ר", "ש", "ת", "״", "׳"}; | ||
| const char* hmonth[]={ "אדר א׳", "ניסן", "אייר", "סיון", "תמוז", "אב", "אלול", "תשרי", "חשון", "כסלו", "טבת", "שבט", "אדר", "אדר ב׳"}; | ||
| const char* hchar[]={ "׆", "א", "ב", "ג", "ד", "ה", "ו", "ז", "ח", "ט", "י", "כ", "ל", "מ", "נ", "ס", "ע", "פ", "צ", "ק", "ר", "ש", "ת", "\"", "'"}; | ||
| const char* hmonth[]={ "אדר א'", "ניסן", "אייר", "סיון", "תמוז", "אב", "אלול", "תשרי", "חשון", "כסלו", "טבת", "שבט", "אדר", "אדר ב'"}; | ||
|
Comment on lines
-23
to
+24
Owner
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. I find the geresh & gershaim better,
Author
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.
so far it has worked splendidly with what i have right now.
Author
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.
unfortuently those don't display well, in LCD, the alternative the way i see it is to have a completely different set of strings just for embedded, but then you'd have to maintain 2 sets. |
||
| const char* hwday[]={ "שביעי", "ראשון", "שני", "שלישי", "רביעי", "חמישי", "שישי", "שבת"}; | ||
| const char* parshahchar[]={"\0", "בראשית", "נח", "לך לך", "וירא", "חיי שרה", "תולדות", "ויצא", "וישלח", "וישב", "מקץ", "ויגש", "ויחי", "שמות", "וארא", "בא", "בשלח", "יתרו", "משפטים", "תרומה", "תצוה", "כי תשא", "ויקהל", "פקודי", "ויקרא", "צו", "שמיני", "תזריע", "מצורע", "אחרי מות", "קדושים", "אמור", "בהר", "בחוקותי", "במדבר", "נשא", "בהעלותך", "שלח", "קרח", "חקת", "בלק", "פינחס", "מטות", "מסעי", "דברים", "ואתחנן", "עקב", "ראה", "שופטים", "כי תצא", "כי תבוא", "נצבים", "וילך", "האזינו", "וזאת הברכה", "ויקהל - פקודי", "תזריע - מצורע", "אחרי מות - קדושים", "בהר - בחוקותי", "חקת - בלק", "מטות - מסעי", "נצבים - וילך"}; | ||
|
|
||
|
|
@@ -254,9 +254,9 @@ const char* yomtovformat(yomtov current) | |
| case PESACH_SHEINI: | ||
| return "פסח שני"; | ||
| case LAG_BAOMER: | ||
| return "ל״ג בעומר"; | ||
| return "ל\"ג בעומר"; | ||
| case TU_BAV: | ||
| return "ט״ו באב"; | ||
| return "ט\"ו באב"; | ||
| case CHANUKAH_DAY1: | ||
| case CHANUKAH_DAY2: | ||
| case CHANUKAH_DAY3: | ||
|
|
@@ -267,7 +267,7 @@ const char* yomtovformat(yomtov current) | |
| case CHANUKAH_DAY8: | ||
| return "חנוכה"; | ||
| case TU_BISHVAT: | ||
| return "ט״ו בשבט"; | ||
| return "ט\"ו בשבט"; | ||
| case PURIM_KATAN: | ||
| return "פורים קטן"; | ||
| case SHUSHAN_PURIM_KATAN: | ||
|
|
@@ -279,7 +279,7 @@ const char* yomtovformat(yomtov current) | |
| case SHIVA_ASAR_BTAAMUZ: | ||
| return "שבעה עשר בתמוז"; | ||
| case TISHA_BAV: | ||
| return "ט׳ באב"; | ||
| return "תשעה באב"; | ||
| case TZOM_GEDALIA: | ||
| return "צום גדליה"; | ||
| case ASARAH_BTEVES: | ||
|
|
||
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.
There should be no need to define windows.
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.
this is one of the hardest things i had here, i wouldn't call it defining windows as more like for platorms who don't have stpncpy , if i won't include the stpncpy.h and the source the file the avr-gcc will fail cause it won't find them, i don't know of any other way to handle this.