write.h revision 5dfecf96
15dfecf96Smrg/* 25dfecf96Smrg * Copyright (c) 2002 by The XFree86 Project, Inc. 35dfecf96Smrg * 45dfecf96Smrg * Permission is hereby granted, free of charge, to any person obtaining a 55dfecf96Smrg * copy of this software and associated documentation files (the "Software"), 65dfecf96Smrg * to deal in the Software without restriction, including without limitation 75dfecf96Smrg * the rights to use, copy, modify, merge, publish, distribute, sublicense, 85dfecf96Smrg * and/or sell copies of the Software, and to permit persons to whom the 95dfecf96Smrg * Software is furnished to do so, subject to the following conditions: 105dfecf96Smrg * 115dfecf96Smrg * The above copyright notice and this permission notice shall be included in 125dfecf96Smrg * all copies or substantial portions of the Software. 135dfecf96Smrg * 145dfecf96Smrg * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 155dfecf96Smrg * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 165dfecf96Smrg * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 175dfecf96Smrg * THE XFREE86 PROJECT BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 185dfecf96Smrg * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF 195dfecf96Smrg * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 205dfecf96Smrg * SOFTWARE. 215dfecf96Smrg * 225dfecf96Smrg * Except as contained in this notice, the name of the XFree86 Project shall 235dfecf96Smrg * not be used in advertising or otherwise to promote the sale, use or other 245dfecf96Smrg * dealings in this Software without prior written authorization from the 255dfecf96Smrg * XFree86 Project. 265dfecf96Smrg * 275dfecf96Smrg * Author: Paulo César Pereira de Andrade 285dfecf96Smrg */ 295dfecf96Smrg 305dfecf96Smrg/* $XFree86: xc/programs/xedit/lisp/write.h,v 1.9tsi Exp $ */ 315dfecf96Smrg 325dfecf96Smrg#ifndef Lisp_write_h 335dfecf96Smrg#define Lisp_write_h 345dfecf96Smrg 355dfecf96Smrg#include "lisp/io.h" 365dfecf96Smrg 375dfecf96Smrg/* 385dfecf96Smrg * Prototypes 395dfecf96Smrg */ 405dfecf96Smrgvoid LispWriteInit(void); 415dfecf96Smrg 425dfecf96SmrgLispObj *Lisp_FreshLine(LispBuiltin*); 435dfecf96SmrgLispObj *Lisp_Prin1(LispBuiltin*); 445dfecf96SmrgLispObj *Lisp_Princ(LispBuiltin*); 455dfecf96SmrgLispObj *Lisp_Print(LispBuiltin*); 465dfecf96SmrgLispObj *Lisp_Terpri(LispBuiltin*); 475dfecf96SmrgLispObj *Lisp_Write(LispBuiltin*); 485dfecf96SmrgLispObj *Lisp_WriteChar(LispBuiltin*); 495dfecf96SmrgLispObj *Lisp_WriteLine(LispBuiltin*); 505dfecf96SmrgLispObj *Lisp_WriteString(LispBuiltin*); 515dfecf96Smrg 525dfecf96Smrgint LispGetColumn(LispObj*); 535dfecf96Smrg 545dfecf96Smrgint LispWriteChar(LispObj*, int); 555dfecf96Smrgint LispWriteChars(LispObj*, int, int); 565dfecf96Smrgint LispWriteStr(LispObj*, char*, long); 575dfecf96Smrg 585dfecf96Smrg /* write any lisp object to stream */ 595dfecf96Smrgint LispWriteObject(LispObj*, LispObj*); 605dfecf96Smrg 615dfecf96Smrg/* formatted output */ 625dfecf96Smrg /* object must be an integer */ 635dfecf96Smrgint LispFormatInteger(LispObj*, LispObj*, int, int, int, int, int, int, int); 645dfecf96Smrg /* must be in range 1 to 3999 for new roman, 1 to 4999 for old roman */ 655dfecf96Smrgint LispFormatRomanInteger(LispObj*, long, int); 665dfecf96Smrg /* must be in range -9999999 to 9999999 */ 675dfecf96Smrgint LispFormatEnglishInteger(LispObj*, long, int); 685dfecf96Smrg /* object must be a character */ 695dfecf96Smrgint LispFormatCharacter(LispObj*, LispObj*, int, int); 705dfecf96Smrg /* object must be a float */ 715dfecf96Smrgint LispFormatFixedFloat(LispObj*, LispObj*, int, int, int*, int, int, int); 725dfecf96Smrg /* object must be a float */ 735dfecf96Smrgint LispFormatExponentialFloat(LispObj*, LispObj*, 745dfecf96Smrg int, int, int*, int, int, int, int, int); 755dfecf96Smrg /* object must be a float */ 765dfecf96Smrgint LispFormatGeneralFloat(LispObj*, LispObj*, int, 775dfecf96Smrg int, int*, int, int, int, int, int); 785dfecf96Smrgint LispFormatDollarFloat(LispObj*, LispObj*, int, int, int, int, int, int); 795dfecf96Smrg 805dfecf96Smrg#endif /* Lisp_write_h */ 81