/* This file is part of DITABIS, a File Format plugin for Adobe Photoshop Copyright (C) 2003-6 Toby Thain, toby@telegraphics.com.au This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "world.h" // must come before Photoshop includes #include "PIFormat.h" #include "file_compat.h" #define PINEWHANDLE gpb->handleProcs->newProc #define PIDISPOSEHANDLE gpb->handleProcs->disposeProc #define PIGETHANDLESIZE gpb->handleProcs->getSizeProc #define PISETHANDLESIZE gpb->handleProcs->setSizeProc #define PILOCKHANDLE gpb->handleProcs->lockProc #define PIUNLOCKHANDLE gpb->handleProcs->unlockProc #include /* general-purpose constants */ enum{ LF = 012, CR = 015, }; struct node_t { struct node_t *next; int length; Boolean iscomment; char *text; }; OSErr read_start(FormatRecordPtr pb,long *data); OSErr read_continue(FormatRecordPtr pb,long *data); OSErr read_finish(FormatRecordPtr pb,long *data); void readheader(FILEREF r,Boolean keepmetadata); Handle build_metadata(FormatRecordPtr pb); long lesser(long a,long b);