c65gm/lib/libsc.c65

67 lines
2.1 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 fclose = lib_fat16_fclose
#DEFINE fcloses = lib_fat16_fcloses
#DEFINE fblockread = lib_fat16_fblockread
#DEFINE fblockwrite = lib_fat16_fblockwrite
#DEFINE chdir = lib_fat16_chdir
#DEFINE dirstart = lib_fat16_dirstart
#DEFINE dirnext = lib_fat16_dirnext
#IFEND
#IFDEF __LIB_CBMIO
#DEFINE print = lib_cbmio_print
#DEFINE printlf = lib_cbmio_printlf
#DEFINE hexoutb = lib_cbmio_hexoutb
#DEFINE hexoutw = lib_cbmio_hexoutw
#DEFINE lf = lib_cbmio_lf
#DEFINE home = lib_cbmio_home
#DEFINE input = lib_cbmio_input
#IFEND
#IFDEF __LIB_STRING
#DEFINE strlen = lib_string_strlen
#DEFINE strchr = lib_string_strchr
#DEFINE strcpy = lib_string_strcpy
#DEFINE stpcpy = lib_string_stpcpy
#DEFINE strncpy = lib_string_strncpy
#DEFINE strcmp = lib_string_strcmp
#DEFINE memset = lib_string_memset
#DEFINE strcat = lib_string_strcat
#DEFINE strncat = lib_string_strncat
#IFEND
#IFDEF __LIB_STRLIST
#DEFINE sl.count = lib_strlist_count
#DEFINE sl.get = lib_strlist_get
#DEFINE sl.strget = lib_strlist_strget
#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
#IFEND
#IFEND