Back to index

lightning-sunbird  0.9+nobinonly
Functions
mac_xpidl.h File Reference
#include <stdio.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

size_t mac_get_file_length (const char *filename)
 Returns the length of a file, assuming it is always located in the project's output directory.
void mac_warning (const char *warning_message)
void mac_error (const char *error_message)

Function Documentation

void mac_error ( const char *  error_message)

Definition at line 338 of file mac_xpidl.cpp.

{
       CWReportMessage(gPluginContext, 0, error_message, 0, messagetypeError, 0);
}
size_t mac_get_file_length ( const char *  filename)

Returns the length of a file, assuming it is always located in the project's output directory.

Returns the length of a file, assuming it is always located in the project's object code directory.

Definition at line 321 of file mac_xpidl.cpp.

{
       long dataSize= 0, rsrcSize = 0;
       FSSpec filespec;
       if (CWGetOutputFileDirectory(gPluginContext, &filespec) != noErr)
              return 0;
       c2p_strcpy(filespec.name, filename);
       if (FSpGetFileSize(&filespec, &dataSize, &rsrcSize) != noErr)
              return 0;
       return dataSize;
}

Here is the call graph for this function:

void mac_warning ( const char *  warning_message)

Definition at line 333 of file mac_xpidl.cpp.

{
       CWReportMessage(gPluginContext, 0, warning_message, 0, messagetypeWarning, 0);
}

Here is the caller graph for this function: