c65gm/lib/libsc.c65

74 lines
2.3 KiB
Text

//------------------------------------------------------------------------
// Library shortcuts Library
//
// Author: Mattias Hansson
// Copyright (c) : 2005 Mattias Hansson
// License: GNU LGPL 2
// Language: 65CM v0.4+
// Dependencies: (all libs might be included, selectively)
//
// Purpose: To shorten lib names to normal usage length
//------------------------------------------------------------------------
#IFNDEF __LIB_SC
#DEFINE __LIB_SC = 1
#IFDEF __LIB_FAT16
#DEFINE mount = lib_fat16_mount_partition
#DEFINE fopen = lib_fat16_fopen
#DEFINE fcloses = lib_fat16_fcloses
#DEFINE fclose = lib_fat16_fclose
#DEFINE fblockwrite = lib_fat16_fblockwrite
#DEFINE fblockread = lib_fat16_fblockread
#DEFINE chdir = lib_fat16_chdir
#DEFINE dirstart = lib_fat16_dirstart
#DEFINE dirnext = lib_fat16_dirnext
#IFEND
#IFDEF __LIB_DECOUT
#DEFINE decoutb = lib_decout_decoutb
#DEFINE decoutw = lib_decout_decoutw
#IFEND
#IFDEF __LIB_STRING
#DEFINE strncpy = lib_string_strncpy
#DEFINE strncat = lib_string_strncat
#DEFINE stpcpy = lib_string_stpcpy
#DEFINE strlen = lib_string_strlen
#DEFINE strchr = lib_string_strchr
#DEFINE strcpy = lib_string_strcpy
#DEFINE strcmp = lib_string_strcmp
#DEFINE memset = lib_string_memset
#DEFINE strcat = lib_string_strcat
#DEFINE strncat = lib_string_strncat
#DEFINE strstr = lib_string_strstr
#DEFINE memcmp = lib_string_memcmp
#DEFINE memcpy = lib_string_memcpy
#IFEND
#IFDEF __LIB_STRLIST
#DEFINE sl.strget = lib_strlist_strget
#DEFINE sl.count = lib_strlist_count
#DEFINE sl.get = lib_strlist_get
#DEFINE sl.add = lib_strlist_add
#DEFINE sl.free = lib_strlist_free
#IFEND
#IFDEF __LIB_STRLIST2
#DEFINE str_to_strlist = lib_strlist2_str_to_strlist
#IFEND
#IFDEF __LIB_MEM
#DEFINE malloc = lib_mem_malloc
#DEFINE free = lib_mem_free
#DEFINE mem_init = lib_mem_init
#DEFINE mem_defrag = lib_mem_defrag
#DEFINE mem_stats = lib_mem_stats
#IFEND
#IFDEF __LIB_MULTDIV
#DEFINE mult32 = lib_multdiv_mult32
#DEFINE divmod = lib_multdiv_divmod
#IFEND
#IFEND