afify / azan (public) (License: MIT) (since 2020-03-08) (hash sha1)
azan is a simple muslim prayers notifier for unix-like systems.
List of commits:
Subject Hash Author Date (UTC)
[refactor] function declaration parameter name 4db440d3a9a86ae56d8f3f0196831ad7d699f77f Hassan Afify 2019-10-04 18:57:40
[refactor] Change variables to const 04d742ebb7431167d2f35512612d54b4375ff5f7 Hassan Afify 2019-10-04 18:45:07
[fix] testing branch Makefile configuration b683a683b7c003b333536e6a0a6e5b18fb8ef74d Hassan Afify 2019-10-04 14:41:18
[style] pointer asterisk position 684a938929a553d2c54049482e56521ea1d759b7 Hassan Afify 2019-10-04 13:32:18
[fix] option -a bug e645d6b8e355187aff53e9d77e717656996be61b Hassan Afify 2019-10-02 15:52:10
[fix] update config.def.h d70664ff8899be4120339a2578aeb555100601ab Hassan Afify 2019-10-01 19:55:21
[refactor] remove azan.h, upgrade functions 8d457954d6afea2679ad40a0c4874ef967c0f8a2 Hassan Afify 2019-10-01 19:13:58
[fix] Remove send-notification feature 982a2f0cdcbae2d5d95b83e1f33cbf19c5fae0f0 Hassan Afify 2019-09-30 15:35:55
[doc] update README and man page, remove .github 9f329d7a6433208b32b17b33f17527e306208b5b Hassan Afify 2019-09-30 06:39:56
Update issue templates 03092fd9858d1f42bc0c6a06eeed834be3f34c2b Hassan Afify 2019-09-28 15:45:11
[fix] read cache file function 93c03a6cd5d7e8b0f83057ea707544727aa3ed49 Hassan Afify 2019-09-28 07:46:50
[fix] print next fajr bug 9c2a2bf932fb536c93a78eaaefa0fb8605f57d3e Hassan Afify 2019-09-27 04:55:14
[fix] check failed stat, clean code, Makefile 111e4834d9311854fa0af5b075c8534eba646487 Hassan Afify 2019-09-26 18:29:57
[doc] update README f5ff97da3e92639d79e1c9cff46ac0995139a3b6 Hassan Afify 2019-09-25 18:10:18
[release] v0.1 a1a2a57e74f8af49595253c067ff79de52b533e7 Hassan Afify 2019-09-25 06:01:46
[fix] [Valgrind] Memory leaks, stack errors. f06c1192c98f0405b727b9ca4346ed7262476c33 Hassan Afify 2019-09-24 16:02:56
[fix] create_cache bug, clean Makefile *.log 7d998c3f864fe07102b3fa07f83ea754159a9927 Hassan Afify 2019-09-24 05:38:39
[feat] argument options, next_fajr 4cd6ef1633f3e5cd3afe36be70e9c718911e701d Hassan Afify 2019-09-23 09:38:57
[doc] Update CONTRIBUTING, README & man page a16565d0b498313a8df232d3e2f5e7c1367dc191 Hassan Afify 2019-09-22 10:23:25
[doc] Update CONTRIBUTING, README & man page 0b978479fbe5d6e626a55a5ac78231393a267025 Hassan Afify 2019-09-22 10:23:25
Commit 4db440d3a9a86ae56d8f3f0196831ad7d699f77f - [refactor] function declaration parameter name
API08-C. Avoid parameter names in a function prototype

- Naming the parameters in a prototype declaration should never be
necessary, and is often unwise, because these names can be affected by
macro definitions.

https://wiki.sei.cmu.edu/confluence/display/c/API08-C.+Avoid+parameter+names+in+a+function+prototype
Author: Hassan Afify
Author date (UTC): 2019-10-04 18:57
Committer name: Hassan Afify
Committer date (UTC): 2019-10-04 18:57
Parent(s): 04d742ebb7431167d2f35512612d54b4375ff5f7
Signing key: 0F6CD1196B2A5658
Tree: 1e3d7afa5565f4592eee18317be6a4bf5f9027c6
File Lines added Lines deleted
azan.c 23 23
File azan.c changed (mode: 100644) (index b2c7b75..9de199d)
24 24
25 25 /* function declarations */ /* function declarations */
26 26 static void usage(void); static void usage(void);
27 static char convert_prayer_int_to_char(const int pray_numb);
28 static char *convert_timet_to_str(const time_t input_time);
29 static char *convert_sec_double_to_min_hour(const double input_seconds);
30 static time_t convert_today_double_to_timet(const double event_time, const int day);
31 static double convert_gregorian_to_julian(int year, int month, int day);
32 static double convert_degrees_to_radians(const double x);
33 static double convert_radians_to_degrees(const double x);
34 static double T(const double alpha, const double D);
35 static double A(const double t, const double D);
36 static double normalize(const double x, const double N);
37 static double get_equation_time(const double jdn, double *D);
38 static double get_sunrise(const double dhuhr, const double D);
39 static double get_fajr(const double duhr, const double D);
40 static double get_duhr(const double EqT);
41 static double get_asr(const double duhr, const double D);
42 static double get_maghrib(double dhuhr, const double D);
43 static double get_isha(const double duhr, const double maghrib, const double D);
44 static int file_exist(const char *filename);
45 static int create_cache_file(const time_t t, const char *full_path);
46 static time_t *read_azan_cache_file(const char *azan_cache_file);
47 static int print_next_prayer(const time_t current_time, const char *azan_cache_file);
48 static int print_all_prayers(const char *azan_cache_file);
49 static char *get_cache_file_name(const time_t t);
27 static char convert_prayer_int_to_char(const int);
28 static char *convert_timet_to_str(const time_t);
29 static char *convert_sec_double_to_min_hour(const double);
30 static time_t convert_today_double_to_timet(const double, const int);
31 static double convert_gregorian_to_julian(int, int, int);
32 static double convert_degrees_to_radians(const double);
33 static double convert_radians_to_degrees(const double);
34 static double T(const double, const double);
35 static double A(const double, const double);
36 static double normalize(const double, const double);
37 static double get_equation_time(const double, double*);
38 static double get_sunrise(const double, const double);
39 static double get_fajr(const double, const double);
40 static double get_duhr(const double);
41 static double get_asr(const double, const double);
42 static double get_maghrib(double, const double);
43 static double get_isha(const double, const double, const double);
44 static int file_exist(const char*);
45 static int create_cache_file(const time_t, const char*);
46 static time_t *read_azan_cache_file(const char*);
47 static int print_next_prayer(const time_t, const char*);
48 static int print_all_prayers(const char*);
49 static char *get_cache_file_name(const time_t);
50 50
51 51 /* function implementations */ /* function implementations */
52 52 static void static void
Hints:
Before first commit, do not forget to setup your git environment:
git config --global user.name "your_name_here"
git config --global user.email "your@email_here"

Clone this repository using HTTP(S):
git clone https://rocketgit.com/user/afify/azan

Clone this repository using ssh (do not forget to upload a key first):
git clone ssh://rocketgit@ssh.rocketgit.com/user/afify/azan

Clone this repository using git:
git clone git://git.rocketgit.com/user/afify/azan

You are allowed to anonymously push to this repository.
This means that your pushed commits will automatically be transformed into a merge request:
... clone the repository ...
... make some changes and some commits ...
git push origin main