⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vm_strings.h

📁 C__ code For Audio Coding
💻 H
字号:
/*
//
//                  INTEL CORPORATION PROPRIETARY INFORMATION
//     This software is supplied under the terms of a license agreement or
//     nondisclosure agreement with Intel Corporation and may not be copied
//     or disclosed except in accordance with the terms of that agreement.
//       Copyright(c) 2003-2005 Intel Corporation. All Rights Reserved.
//
*/

#ifndef __VM_STRINGS_H__
#define __VM_STRINGS_H__

#ifdef LINUX32

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef char vm_char;
#define VM_STRING(x) x

#define vm_string_printf    printf
#define vm_string_fprintf   fprintf
#define vm_string_sprintf   sprintf
#define vm_string_vprintf   vprintf
#define vm_string_vfprintf  vfprintf
#define vm_string_vsprintf  vsprintf

#define vm_string_strcat    strcat
#define vm_string_strncat   strncat
#define vm_string_strcpy    strcpy
#define vm_string_strncpy   strncpy
#define vm_string_strcspn   strcspn

#define vm_string_strlen    strlen
#define vm_string_strcmp    strcmp
#define vm_string_strncmp   strncmp
#define vm_string_strrchr   strrchr
#define vm_file_open        fopen
#define vm_file_scanf       fscanf
#define vm_file_gets        fgets
#define vm_string_atol      atol

#define vm_string_strstr    strstr
#define vm_string_sscanf    sscanf
#define vm_string_strchr    strchr

#define vm_finddata_t   struct _finddata_t
#define vm_string_splitpath _splitpath
#define vm_string_findfirst _findfirst
#define vm_string_findnext  _findnext
#define vm_string_makepath  _makepath

#elif defined(_WIN32) || defined(_WIN64) || defined(_WIN32_WCE)

#include <tchar.h>

#define VM_STRING(x) __T(x)
typedef TCHAR vm_char;
#define vm_string_printf    _tprintf
#define vm_string_fprintf   _ftprintf
#define vm_string_sprintf   _stprintf
#define vm_string_vprintf   _vtprintf
#define vm_string_vfprintf  _vftprintf
#define vm_string_vsprintf  _vstprintf

#define vm_string_strcat    _tcscat
#define vm_string_strncat   _tcsncat
#define vm_string_strcpy    _tcscpy
#define vm_string_strcspn   _tcscspn

#define vm_string_strlen    _tcslen
#define vm_string_strcmp    _tcscmp
#define vm_string_strncmp   _tcsnccmp
#define vm_string_strncpy   _tcsncpy
#define vm_string_strrchr   _tcsrchr
#define vm_file_open        _tfopen
#define vm_file_scanf       _ftscanf
#define vm_file_gets        _fgetts
#define vm_string_atol      _ttol
#define vm_string_strstr    _tcsstr
#define vm_string_sscanf    _stscanf
#define vm_string_strchr    _tcschr

#define vm_finddata_t   struct _tfinddata_t
#define vm_string_splitpath _tsplitpath
#define vm_string_findfirst _tfindfirst
#define vm_string_findnext  _tfindnext
#define vm_string_makepath  _tmakepath

#endif /* LINUX32 */

#define __VM_STRING(str) VM_STRING(str)

#endif /* __VM_STRINGS_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -