short image_offset = _DtCvFALSE;
_DtCvUnit segWidth;
_DtCvUnit yPos;
- _DtCvValue junk;
void *pChar;
_DtCvFlags saveEnd = new_flag &
(_DtCvTRAVERSAL_END | _DtCvLINK_END | _DtCvMARK_END);
_DtCvSegment *topSeg = NULL;
_DtCvSegment *topTab = NULL;
_DtCvSegment **tableSeg;
- _DtHelpDARegion *pReg;
while (seg_list != NULL)
{
int type )
{
int len = 0;
- const char *s1;
const wchar_t *wcs;
if (0 == type)
NULL };
/******** variables *********/
-static const char * EmptyStr = "";
#ifdef not_used
static const char * PeriodStr = ".";
#endif
char *id_string,
_DtCvTopicPtr *ret_topic )
{
- int cnt;
int result = 0;
int done = 0;
char *charSet = NULL;
_DtCvSegment *p_seg)
{
void *pChar;
- wchar_t fChar;
int wcFlag;
/*
strmove(((char *)pChar), &(((char *)pChar)[1]));
else
{
- int i;
wchar_t *wcChar = (wchar_t *) pChar;
while (0 != wcChar[0])
{
char *abbrev = NULL;
int result = 0;
- int done = 0;
_DtCvSegment *pHeadSeg;
_DtHelpCeLockInfo lockInfo;
mbstowcs(&wcStr[x], string, byte_len);
else
{
- int i;
wchar_t *wcp = (wchar_t *) string;
while (0 < byte_len)
//};
*/
+/*
static int dither_4X4[4][4] =
{
{ 0, 8, 2, 10 },
{ 0, 2 },
{ 3, 1}
};
+*/
/*static int dither_matrix_sz = 2; */
/*static int dither_matrix_sz = 4; */
{
XmString * pTopicString;
XmString prefixString;
- XmString labelString;
XmString *items;
char * tmpStr;
int i;
DtHelpDialogWidget hw = (DtHelpDialogWidget) w;
XmToggleButtonCallbackStruct status; /* the call data */
Widget sourceBtn; /* widget owning event */
+#if 0
Dimension height;
Dimension width;
- XmString labelString = NULL;
int n;
+#endif
+ XmString labelString = NULL;
Arg args[10];
/* make the dialog itself */
int i, j;
int result;
short done;
- Pixmap pixmap = 0;
XpmAttributes xpmAttr;
Visual vis2;
- XGCValues gcvalues;
float ratio = 1.0;
enum _DtGrLoadStatus status = _DtGrSUCCESS;
unsigned int pixWidth = 0;
unsigned int pixHeight = 0;
Dimension pWidth, pHeight;
- char *ptr;
Pixmap pix = 0, mask = 0;
_DtGrStream stream;
Screen *scrptr = ScreenOfDisplay (dpy, screen);
size_t num_items,
_DtGrStream *stream)
{
- size_t num_items_read;
unsigned nleft;
int n;
char *userErrorStr=NULL;
char *sysErrorStr=NULL;
char *tmpMsg=NULL;
- char *retTitle;
XmString labelString;
Arg args[10];
int n=0;
/* Static variables */
-static char helpOnHelp[] = "Help4Help";
\f
/* Supported resources for the HelpQuickDialog Widget */
#define HUSET 8 /* message catalog set */
/******** static variables ********/
-static char DirSlash[] = "/";
+
/******** data structures ********/
typedef struct ExecContext
XmString labelString2;
Widget noexecBtn;
Widget execBtn;
- Cursor cursor;
goodCmd = _DtHelpFilterExecCmdStr(helpWidget, executionPolicy,
commandStr, &filteredCmdStr, &invalidAlias,
Boolean queryNeeded;
char * filteredCmdStr = NULL;
ExecContext * execContext;
- DtHelpListStruct *pHelpInfo;
XmString labelString;
XmString labelString2;
Widget msgDlg;
following code can fail on IBM platform when XTHREADS and XUSE_MTSAFE_API
are defined.
*/
+/*
_Xgetpwparams pwd_buf;
+*/
struct passwd * pwd_ret;
/** -------------------------------------------------------------- *
Pixmap pixmap;
Pixmap maskPixmap;
XColor xcolors[2];
- int scr;
unsigned int cWidth;
unsigned int cHeight;
int useLargeCursors = 0;
Pixmap pixmap;
Pixmap maskPixmap;
XColor xcolors[2];
- int scr;
unsigned int cWidth;
unsigned int cHeight;
int useLargeCursors = 0;
*****************************************************************************/
static void my_output_message (j_common_ptr cinfo)
{
- char buffer[JMSG_LENGTH_MAX];
-
/*
** Uncommenting the lines below will cause error and warning messages
** from the JPEG library to be displayed to stderr instead of suppressed
*/
+ /*
+ ** char buffer[JMSG_LENGTH_MAX];
+ */
+
/*
** Create the message
**
static void init_source (
j_decompress_ptr cinfo)
{
- stream_src_ptr src = (stream_src_ptr) cinfo->src;
+/* stream_src_ptr src = (stream_src_ptr) cinfo->src; */
}
/******************************************************************************
int saveTravCnt = canvas->trav_cnt;
_DtCvUnit workWidth;
_DtCvUnit newLeft;
- _DtCvUnit rightMargin = 0;
_DtCvUnit saveLeft = layout->left;
_DtCvUnit saveYpos = layout->info.y_pos;
_DtCvUnit tableYpos;
_DtCvFrmtOption *colJustSpec;
_DtCvValue oldFound = layout->id_found;
- _DtCvValue haveHeads = False;
_DtCvValue haveBrds = False;
_DtCvValue saveState = layout->table_flag;
_DtCvValue saveAlignFlag = layout->info.align_flag;
int saveTravCnt = canvas->trav_cnt;
_DtCvUnit saveYPos = layout->info.y_pos;
_DtCvUnit saveMaxWidth = layout->max_width;
- _DtCvUnit saveY = layout->info.y_pos;
_DtCvUnit saveLeft = layout->left;
_DtCvUnit saveRight = layout->right;
_DtCvUnit maxWidth;
int *ret_cnt)
{
int getLn;
- int saveTravCnt = canvas->trav_cnt;
- int saveLnCnt = canvas->line_cnt;
- int saveTxtCnt = canvas->txt_cnt;
- int joinLine = layout->info.join_line;
const char *saveJustifyChar = layout->info.align_char;
_DtCvUnit yPad = 0;
_DtCvUnit xPad = 0;
_DtCvUnit saveFirst = layout->first;
_DtCvUnit saveYpos = layout->info.y_pos;
_DtCvValue saveStatic = layout->stat_flag;
- _DtCvValue botBrdr = False;
- _DtCvValue rightBrdr = False;
- _DtCvValue joinFlag = layout->info.join;
_DtCvValue saveBrdr = layout->brdr_flag;
_DtCvFrmtOption saveJustify = layout->txt_justify;
LayFrmtInfo frmtInfo;
LayoutInfo *layout)
{
int i;
- int txt_idx;
- int ln_idx;
_DtCvUnit topY;
_DtCvUnit botY;
- _DtCvUnit space;
_DtCvUnit maxWidth = canvas->metrics.width;
GrpInfo *nxtGrp;
- GrpInfo *grp;
/*
* fill in the max x of each group
_DtCvStatus selectStatus;
_DtCvStatus retStatus = _DtCvSTATUS_NONE;
_DtCanvasStruct *canvas = (_DtCanvasStruct *) canvas_handle;
- _DtCvSpaceMetrics oldLink = canvas->link_info;
- _DtCvSpaceMetrics oldTrav = canvas->traversal_info;
_DtCvUnit oldWidth = canvas->metrics.width;
LayoutInfo layOut;
_DtCvPointInfo selPt;
_DtCvUnit *ret_height,
_DtCvUnit *ret_y )
{
- int i;
_DtCvStatus result = _DtCvSTATUS_OK;
_DtCanvasStruct *canvas = (_DtCanvasStruct *) canvas_handle;
LayoutInfo layOut;
_DtCvSegmentI *saveSeg;
_DtCvSegmentI **retSeg;
_DtCvDspLine *lines = canvas->txt_lst;
- _DtCvFlags flag;
_DtCvFlags result = _DtCvSTATUS_NONE;
_DtCvSelectData *tmpBeg;
_DtCvSelectData *tmpEnd;
Dimension tstHeight;
Dimension oldWidth;
Dimension oldHeight;
- XEvent event;
- XmDrawnButtonCallbackStruct callBack;
DtHelpDispAreaStruct *pDAS = (DtHelpDispAreaStruct *) client_data;
/*
_DtCvPointer *ret_data)
{
_DtCvUnit topY;
- _DtCvUnit lastY;
_DtCvDspLine *lines = canvas->txt_lst;
_DtCvStringInfo strInfo = { NULL, 0, 1, NULL };
{
_DtCvUnit maxY;
_DtCvUnit botY;
- _DtCvUnit lastY;
int i;
int lineCnt = 0;
int junk;
_DtCvUnit y,
_DtCvSelectMode mode)
{
- int i;
_DtCanvasStruct *canvas = (_DtCanvasStruct *) canvas_handle;
_DtCvSelectData temp;
_DtCvPointer graphic_ptr )
{
Arg args[5];
- int i;
Colormap colormap;
_DtCvPointer client_data,
_DtCvPointer reg_info)
{
- DtHelpDispAreaStruct *pDAS = (DtHelpDispAreaStruct *) client_data;
_DtHelpDARegion *pReg = (_DtHelpDARegion *) reg_info;
if (True == pReg->inited)
int *x_hot, *y_hot; /* RETURNED */
#endif
{
- Pixmap pix; /* value to return */
unsigned char *data;
int res;
register ilJPEGPrivPtr pPriv;
ilError error;
int i;
- iljpgPtr pJPEGPriv;
iljpgPtr pPixels[ILJPG_MAX_COMPS];
long nBytesPerRow[ILJPG_MAX_COMPS];
ilImagePlaneInfo *pPlane;
)
{
register int i;
- register float *oxptr;
register int *zptr;
float ox[64];
register float in0, in1, in2, in3, in4, in5, in6, in7;
register int i;
register int *zptr;
float ox[64];
- register float in0, in2, in3, in4, in5, in6, in7;
+ register float in0, in2, in3, in4, in5, in7;
register float tmp0, tmp1, tmp2, tmp5, tmp6, tmp7;
register float tmp;
register float *oxaddr;
iljpgDehuffPtr pHuffPriv;
int coeff_ct = 0;
#define is_dc (!coeff_ct) /* First coefficient is DC */
- int i, delta;
+ int delta;
int len, zrun;
register BITBUF bitbuf, ch, c;
register int bitsleft;
next byte (which can't be a marker or error!); set into bitbuf.
*/
if (pHuffPriv->resetDone) {
- int resetSeen = FALSE;
pHuffPriv->resetDone = 0;
if (!ILJPG_DECODE_GET_BYTE (stream, ch, error))
return error; /* must be more bytes after restart */
ilImageDes des;
ilImageFormat format;
ilImageInfo *pInfo;
-long width, height;
int i;
ilError (*executeProc) ();
long imageSequenceNumber;
ilByte fourBytes [4];
ilFileOffset IFDOffset;
-ilFileImagePtr pFileImage, pFileImageHead, pPrevFileImage;
+ilFileImagePtr pFileImage, pPrevFileImage;
ilTIFFHeader header;
register ilFilePtr pFile;
register ilBool bigEndian;
register ilReadFilePrivPtr pPriv = (ilReadFilePrivPtr)pPrivate;
ilFileImagePtr pFileImage;
ilError error;
-long dstRowBytes;
register ilFileTag *pTag;
/* Data for tags to read: "numbers" is the array of tag ids, "nTags" in length.