macstuff.c

来自「Audacity是一款用於錄音和編輯聲音的、免費的開放源碼軟體。它可以執行於Ma」· C语言 代码 · 共 56 行

C
56
字号
/* macstuff.c - macintosh interface routines for xlisp *//* Written by Brian Kendig. *//* This file contains the stuff that the other xlisp files call directly. */#include "cext.h"#include <stdio.h>#include <stdarg.h>#include <QuickDraw.h>	/* for Random */#include <Memory.h>		/* for DisposePtr */#include <SegLoad.h>	/* for ExitToShell */#include "xlisp.h"#include <string.h>#include "macint.h"#define DELETE 0x08/* externals */extern FILE *tfp;  /* transcript file pointer */extern int cursorPos;extern char *macgets (void);#define GPRINTF_MESSAGE_LEN 500/* nyquist_printf -- system independent version of printf *//* * this function prints to console like printf, but using GUI * rather than stdio when appropriate. * */void nyquist_printf(char *format, ...){    char temp[GPRINTF_MESSAGE_LEN];    va_list pvar;    char *p = temp;    va_start(pvar, format);    vsnprintf(temp, GPRINTF_MESSAGE_LEN, format, pvar);    va_end(pvar);    while (*p) ostputc(*p++);}/* this should really be in a header for MacFileUtils.c */void GetFullPath(FSSpec *theSpec, StringPtr theName);/* this is called when we load a file -- if need_preference_file,  * we will build a preference file and insert the path of the file * we just opened, assuming it will tell us where to find init.lsp */void setup_preferences(char *filename){}

⌨️ 快捷键说明

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