/* $Header: /cvsroot/macperl/perl/macos/ext/Mac/Gestalt/Gestalt.xs,v 1.3 2002/11/13 02:04:51 pudge Exp $ * * Copyright (c) 1996 Matthias Neeracher * * You may distribute under the terms of the Perl Artistic License, * as specified in the README file. * * $Log: Gestalt.xs,v $ * Revision 1.3 2002/11/13 02:04:51 pudge * Aieeeeee! Big ol' Carbon update. * * Revision 1.2 2000/09/09 22:18:26 neeri * Dynamic libraries compile under 5.6 * * Revision 1.1 2000/08/14 03:39:30 neeri * Checked into Sourceforge * * Revision 1.2 1997/11/18 00:52:26 neeri * MacPerl 5.1.5 * * Revision 1.1 1997/04/07 20:49:45 neeri * Synchronized with MacPerl 5.1.4a1 * */ #define MAC_CONTEXT #include "EXTERN.h" #include "perl.h" #include "XSUB.h" #ifndef MACOS_TRADITIONAL #include "../Carbon.h" #endif #include MODULE = Mac::Gestalt PACKAGE = Mac::Gestalt =head2 Functions =over 4 =item Gestalt SELECTOR Implements the Gestalt query code. Return C if an error was detected. =cut long Gestalt(selector) OSType selector CODE: if (gMacPerl_OSErr = Gestalt(selector, &RETVAL)) { XSRETURN_UNDEF; } OUTPUT: RETVAL =back =cut