1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-11-02 08:35:06 -04:00
pacman/lib/libalpm
Dan McGee cc754bc6e3 libalpm: introduce MALLOC and CALLOC macros
These macros take the place of the common 4 or 5 line blocks of code we had
in most places that called malloc or calloc. This should reduce some code
duplication and make memory allocation more standard in libalpm.

Highlights:
* Note that the MALLOC macro actually uses calloc, this is just for safety
  so that memory is initialized to 0. This can be easily changed in one
  place.
* One malloc call was completely eliminated- it made more sense to do it
  on the stack.
* The use of RET_ERR in public functions (mainly the alpm_*_new functions)
  was standardized, this makes sense so pm_errno is set.

Signed-off-by: Dan McGee <dan@archlinux.org>
2007-10-29 01:00:52 -05:00
..
po Add pmdelta_t structure and functions to libalpm. 2007-10-19 19:21:44 -05:00
.gitignore Remove unnecessary entries from .gitignore files 2007-07-16 16:49:28 -04:00
add.c Support for localized times in metadata 2007-09-28 00:25:57 -05:00
add.h Preliminary checkin for alpm_list conversion 2007-01-19 09:28:44 +00:00
alpm_list.c Add pmdelta_t structure and functions to libalpm. 2007-10-19 19:21:44 -05:00
alpm_list.h Add pmdelta_t structure and functions to libalpm. 2007-10-19 19:21:44 -05:00
alpm.c Ensure all localization stuff is correctly guarded 2007-10-22 23:52:55 -05:00
alpm.h Add alpm_dep_get_string method 2007-10-25 07:10:08 -05:00
backup.c Remove support for SHA1 from pacman. 2007-08-16 11:30:38 -04:00
backup.h Const correctness! 2007-06-05 17:34:33 -04:00
be_files.c Print and typecast time_t correctly 2007-10-23 00:35:42 -05:00
cache.c libalpm: add newlines to all strings passed to log callback 2007-08-23 22:26:55 -04:00
cache.h Big commit this time: 2007-03-03 08:13:59 +00:00
conflict.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
conflict.h This commit looks much more monumental than it is. Almost all just #include 2007-03-05 22:13:33 +00:00
db.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
db.h Add pmdelta_t structure and functions to libalpm. 2007-10-19 19:21:44 -05:00
delta.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
delta.h Add pmdelta_t structure and functions to libalpm. 2007-10-19 19:21:44 -05:00
deps.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
deps.h libalpm/deps.c : cleanup + little fix for resolvedeps. 2007-07-15 10:37:38 -04:00
error.c Download delta files if UseDelta is set. 2007-10-19 19:29:17 -05:00
error.h make alpm_strerror binding friendly 2007-09-11 20:58:27 -05:00
group.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
group.h Remove FREEGRP macro and correctly type _alpm_grp_free 2007-04-27 20:38:54 -04:00
handle.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
handle.h Download delta files if UseDelta is set. 2007-10-19 19:29:17 -05:00
log.c Clean up the alpm handle 2007-07-09 15:23:26 -04:00
log.h Add gcc format attribute to _alpm_log, catch a few bugs in the process 2007-10-08 21:25:52 -05:00
Makefile.am Clean up LDADD usage 2007-10-26 20:40:20 -05:00
md5.c libalpm: Optimize/inline the md5 functionality 2007-09-28 23:27:14 -05:00
md5.h Updates to fix Doxygen documentation generation 2007-10-14 17:29:32 -05:00
package.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
package.h Add pmdelta_t structure and functions to libalpm. 2007-10-19 19:21:44 -05:00
provide.c This commit looks much more monumental than it is. Almost all just #include 2007-03-05 22:13:33 +00:00
provide.h * Enforce const char* params when using strings 2007-02-26 08:38:48 +00:00
remove.c dependency error message fix in libalpm/remove.c 2007-10-26 19:05:42 -05:00
remove.h Preliminary checkin for alpm_list conversion 2007-01-19 09:28:44 +00:00
server.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
server.h Fix for FS 6404 and functionalize some cachedir handling stuff 2007-08-20 15:23:46 -04:00
sync.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
sync.h Remove FREESYNC macro and correctly type _alpm_sync_free 2007-04-27 14:53:01 -04:00
trans.c libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00
trans.h Fix some errors spit out by -Wextra 2007-08-16 16:19:06 -04:00
util.c Fix invalid static scoping of strverscmp 2007-10-22 23:36:03 -05:00
util.h libalpm: introduce MALLOC and CALLOC macros 2007-10-29 01:00:52 -05:00