Str=Str substr($0,last,RSTART) " " substr($0,last+RSTART,1) " "
last = last + RSTART + 1;
#
- # Test remaining part of input line for additional occurances
+ # Test remaining part of input line for additional occurrences
# of syntactically significant characters.
#
tstStr=substr($0,last)
if ( rec[SrcDefault] != "" )
syntaxError(SrcDefault " \"" rec[SrcDefault] "\" specified for a directory.")
if ( rec[LnkDefault] != "" )
- syntaxError(LnkDefault " \"" rec[LnkDefault] "\" specfied for a directory.")
+ syntaxError(LnkDefault " \"" rec[LnkDefault] "\" specified for a directory.")
rec[SrcDefault] = src;
} else if ( rec["status"] == "---cu-" ) {
</PARA>
<PARA><EMPHASIS>Char</EMPHASIS> contributes to Align. If the
value of Align is “char”, the value of Char
-should be a character on the first occurrance
+should be a character on the first occurrence
of which the entry is to be aligned. If that
character does not occur in the entry, the entry
is aligned to the left of the position determined
</PARA>
<PARA><EMPHASIS>Char</EMPHASIS> contributes to Align. If the
value of Align is “char”, the value of Char
-should be a character on the first occurrance
+should be a character on the first occurrence
of which the entry is to be aligned. If that
character does not occur in the entry, the entry
is aligned to the left (the original doc incorrectly
</PARA>
<PARA><EMPHASIS>Char</EMPHASIS> contributes to Align. If the
value of Align is “char”, the value of Char
-should be a character on the first occurrance
+should be a character on the first occurrence
of which the entry is to be aligned. If that
character does not occur in the entry, the entry
is aligned to the left (the original doc incorrectly
</PARA>
<PARA><EMPHASIS>Char</EMPHASIS> contributes to Align. If the
value of Align is “char”, the value of Char
-should be a character on the first occurrance
+should be a character on the first occurrence
of which the entry is to be aligned. If that
character does not occur in the entry, the entry
is aligned to the left of the position determined
</PARA>
<PARA><EMPHASIS>Char</EMPHASIS> contributes to Align. If the
value of Align is “char”, the value of Char
-should be a character on the first occurrance
+should be a character on the first occurrence
of which the entry is to be aligned. If that
character does not occur in the entry, the entry
is is aligned to the left (the original doc incorrectly
<entry><para><!--Original XRef content: 'Formal Markup199'--><xref role="JumpText"
linkend="HRDC.Sgml.mkr.7"></para></entry></row></tbody></tgroup></informaltable>
<sect1 id="HRDC.Sgml.div.2">
-<title>Document Type Defintion</title>
+<title>Document Type Definition</title>
<para>A <emphasis>Document Type Definition</emphasis> (DTD) defines a set
of elements used to create a structured (or hierarchical) document. The DTD
specifies the syntax for each element and governs how and where elements can
<varlistentry><term><literal>no_option</literal></term>
<listitem>
<para>A Bool indicating whether the IMS allows the command-line option or
-not. If True, any options specfied by <literal>−imsopt</literal> are
+not. If True, any options specified by <literal>−imsopt</literal> are
ignored, though the value of the <literal>cmd_param</literal> entry is always
applied regardless of this value. It should be True for the local IMS. The
default is False.</para>
<varlistentry><term>date = null | <emphasis>field_id</emphasis> [+ <emphasis>field_id</emphasis>] ...</term>
<listitem>
<para>Defines the document date for each document. It will
-be converted into a correctly formated fzk file date line.
+be converted into a correctly formatted fzk file date line.
</para>
<para><literal>null</literal> specifies undated documents. Undated documents
always qualify for searches irrespective of date
<varlistentry><term><literal>no_option</literal></term>
<listitem>
<para>A Bool attribute that indicates whether the IMS allows the command line
-option or not. If True, any options specfied by
+option or not. If True, any options specified by
<literal>-imsopt</literal> are ignored, though the value of the
<literal>cmd_param</literal> attribute is always applied regardless of
this value. True should be given for the local IM. The default is False.
(see the <CiteTitle>Common Desktop Environment Advanced User's and
System Administrator's Guide</CiteTitle>).
The built-in controls and controls provided by your system
-adminstrator are defined this way.</Para>
+administrator are defined this way.</Para>
<Para>If you delete a control defined in a configuration file, it you
may be more difficult to restore, since
there may not be an
else if (!strcmp(cmd, "quit")) break;
else
- fprintf(stderr, "Unknown command '%s' - ingored.\n", cmd);
+ fprintf(stderr, "Unknown command '%s' - ignored.\n", cmd);
}
putc(NL, stdout);
}
int dif_el=0, tot_el=0, tot_data=0, nchars, max_depth=0;
float pct;
- fprintf(outfp, "%-22s %s %s\n", "Element name", "Occurrances", "Character Content");
+ fprintf(outfp, "%-22s %s %s\n", "Element name", "Occurrences", "Character Content");
fprintf(outfp, "%-22s %s %s\n", "---------------", "-----------", "-----------------");
acc_tots(top, &tot_el, &tot_data, &max_depth);
case CMD_LINE: /* Llineno */
/* These lines come in 2 forms: "L123" and "L123 file.sgml".
- * Filename is given only at 1st occurance. Remember it.
+ * Filename is given only at 1st occurrence. Remember it.
*/
if ((cp = strchr(buf, ' '))) {
cp++;
char *gi; /* element name of tag under consideration */
char **gilist; /* list of element names (multiple gi's) */
char *context; /* context in tree - looking depth levels up */
- regexp *context_re; /* tree heirarchy looking depth levels up */
+ regexp *context_re; /* tree hierarchy looking depth levels up */
int depth; /* number of levels to look up the tree */
AttPair_t *attpair; /* attr name-value pairs */
int nattpairs; /* number of name-value pairs */
CDExc15544 Grouping items resizes scrolled list inappropriately
CDExc15593 PanedWindow doesn t attach to window when stretched past ed
CDExc15610 Can t reduce W value in main window prop ed
-CDExc15752 seperator displays twice when changing orientatio
+CDExc15752 separator displays twice when changing orientatio
CDExc15755 Foreground color is meaningless with etched Line Styl
CDExc15802 Changes to current project lost if open other project
CDExc15815 error messages should be multi-lin
CDExc12848 Add the ability to find marked tex
CDExc12852 Undo should handle multiple Undo
CDExc14500 EUC formatting does not work on HPUX 9.
-CDExc14501 Japanese text formated incorrectly on HPUX 9.
+CDExc14501 Japanese text formatted incorrectly on HPUX 9.
CDExc15025 first click loses persistent seleciton in click-to-typ
CDExc15067 Text Editor does not give an err if left margin > right margi
CDExc15355 New functions to get partial sections of tex
Component: other Sub-component: XmForm
-CDExc03525 Reseting Form attachments to add new widgets in the Form works improperly
+CDExc03525 Resetting Form attachments to add new widgets in the Form works improperly
Component: other Sub-component: XmManager
CDExc08655 run_PINames does not wor
CDExc08663 Running a manual test onto another display causes messages to be printed o
CDExc08785 Performance/Post/postText test should be looked at, it does not behave cor
-CDExc08853 SpinBox3a test says that there willbe a seperator between the two children
+CDExc08853 SpinBox3a test says that there willbe a separator between the two children
CDExc08865 UTMTransfer test has an option menu for secondary, and clipboard and prima
CDExc08882 PNotebook1 gives error - manually - Pause information exhauste
CDExc09053 Compiler warnings for Performance/Startup/edito
<para>A function that does the appropriate setting and creates a realized
<Symbol>XmPrintShell</Symbol> that it returns to the caller. This
function hides the details of the <literal>Xt</literal> to set up a valid print shell
-heirarchy for the application. It is also meant
+hierarchy for the application. It is also meant
to encourage consistency in the way applications root their print widget
hierarchy.
</para>
* retParent Returns a string with the locationID for the
* topic which is the parent of the current
* topic. If the current topic is at the top of
- * the heirarchy, a NULL string is returned.
+ * the hierarchy, a NULL string is returned.
* This string is NOT owned by the caller and
* should only be read or copied.
*
*
* Parameters: vol Specifies the loaded volume.
* topic Returns the locationID for the top topic in
- * the volume heirarchy. This string is NOT
+ * the volume hierarchy. This string is NOT
* owned by the caller and should only be read or
* copied.
*
* CEErrorReadEmpty
* CEErrorIllegalInfo
*
- * Purpose: Move 'src_ptr' to the next occurrance of a > character
+ * Purpose: Move 'src_ptr' to the next occurrence of a > character
* or the first character after the next space.
*
*****************************************************************************/
vol->startPosition = 1;
vol->nextVolPosition = 1;
- /* dont free indexXmStrsList here because they
+ /* don't free indexXmStrsList here because they
are reused for every search on this volume */
vol->curIndexXmStr = vol->indexXmStrsList;
{
VolHitsDisplay(hw,curFile);
- /* update the volume label to show state; False--dont insert */
+ /* update the volume label to show state; False--don't insert */
VolNameDisplay(hw,curFile,False);
}
}
&& NULL != hw->help_dialog.srch.volListHead )
return; /* RETURN: continue with search */
- /* if searching full index, False=dont free vol with full index */
+ /* if searching full index, False=don't free vol with full index */
if (hw->help_dialog.srch.fullIndex)
HitListFreeAllVolHits(hw,False);
/* else we're searching on the same word, but completed
srch->workProcId = 0;
}
- /* unmanage the srchForm dialog but dont destroy it */
+ /* unmanage the srchForm dialog but don't destroy it */
if (NULL != srch->srchForm)
{
XtUnmanageChild(srch->srchForm);
break; /* BREAK */
case SEARCH_RESULTS_STATUS:
/* if no hits found */
- if (hw->help_dialog.srch.hitsFound == False) /*dont use == True*/
+ if (hw->help_dialog.srch.hitsFound == False) /*don't use == True*/
{
if (hw->help_dialog.srch.fullIndex)
{
* will always be the help widget.
*****************************************************************************/
static void StartSearchCB(
- Widget w, /* dont use */
+ Widget w, /* don't use */
XtPointer clientData,
- XtPointer callData) /* dont use */
+ XtPointer callData) /* don't use */
{
char *srchWord = NULL;
DtHelpDialogWidget hw = (DtHelpDialogWidget) clientData;
hw->help_dialog.srch.searchInProgress = True;
- /* dont free srchWord */
+ /* don't free srchWord */
/* turn on "Stop" label */
UpdateActionButtonLabel(hw,NULL,False);
vol->showHitsWithVol = False;
}
/* update the volume label to show the state */
- /* False: dont insert hw item */
+ /* False: don't insert hw item */
VolNameDisplay(hw,file,False);
}
/* else don't otherwise handle a 0-hits volume */
topicCnt = - HitTopicsUndisplay(hw,file,hit,topicPosition+1);
hit->showTopicsWithHit = False;
}
- /* update the hit label to show the state; False--dont insert */
+ /* update the hit label to show the state; False--don't insert */
HitNameDisplay(hw,file,hit,topicPosition,False);
/* add to all the following */
"String data could not be formatted.";
const char _DtHelpMsg_0001[] =
- "Dymamic string data could not be formated.";
+ "Dymamic string data could not be formatted.";
const char _DtHelpMsg_0002[] =
"Man Page could not be formatted. The requested Man Page is either not present, or corrupt.";
fontList = XmFontListCopy (fontList);
#endif
- /* get formated volume title; volumeString is owned by caller */
+ /* get formatted volume title; volumeString is owned by caller */
_DtHelpFormatVolumeTitle(help->pDisplayArea,display->volumeHandle,
&volumeString,&fontList,&mod);
}
else
{
- /* update the variable contents of the dialog; dont set defaults */
+ /* update the variable contents of the dialog; don't set defaults */
_DtHelpUpdatePrintDialog(print,display,help,False);
}
/* Operation:
If this is the first character in the string the current node is set
to the top level of the tree. Otherwise we will transition to the next
- level in the tree and search for an occurance of the character there.
+ level in the tree and search for an occurrence of the character there.
if one is found we return with TRUE. If not the new node will be
added to the tree and FALSE will be returned.
Return:
If not the same, do ilConvert() to that format (recurse!), exit if error.
*/
switch (pCvtData->srcFormatCode) {
- case IL_DONT_CHECK_STD_FORMAT: /* filter converts format: dont check */
+ case IL_DONT_CHECK_STD_FORMAT: /* filter converts format: don't check */
break;
case IL_STD_FORMAT_BIT:
errorAcc += 3 * *pPrevError; /* 3 * error above right */
errorAcc >>= 4; /* /16 */
errorAcc += *pSrc++ ^ invert; /* + "x"; w/ blackIsZero handled */
- if (errorAcc >= 128) /* output white: dont set out bit */
+ if (errorAcc >= 128) /* output white: don't set out bit */
errorAcc -= 255; /* sub value of white from errorAcc */
else /* output black: errorAcc -= 0 */
outLong |= mask;
ilPtr pRGBMapPixels; /* ptr to pixels in rgbMapImage if non-null */
ilRect rect; /* piece of X image to read */
long stripHeight; /* height of each piece of drawable to read */
- int copyPixmapDepth; /* depth for copyPixmap, or 0 => dont create */
+ int copyPixmapDepth; /* depth for copyPixmap, or 0 => don't create */
Pixmap copyPixmap; /* pixmap to copy to/GetImage() from or null */
GC copyGC; /* GC to use to copy to "copyPixmap" */
int nRedOnes;
}
}
else {
- /* Dont have a strip's worth in buffer. If beingRecalled, then some lines
+ /* Don't have a strip's worth in buffer. If beingRecalled, then some lines
have been read out from beginning of buffer by next element. Copy the
the lines above that point down to the beginning of the buffer, and
set srcLine to the line past them.
}
else pData->srcLine += nLines;
- /* Dont have strip's worth, need more lines: if all lines read, write a
+ /* Don't have strip's worth, need more lines: if all lines read, write a
short final strip, otherwise write 0 lines and wait for more lines to
come in, written to pData->srcLine.
*/
imageInfo.pCompData = info.pCompData;
imageInfo.width = info.width;
imageInfo.height = info.height;
- imageInfo.clientPalette = TRUE; /* dont allocate anything */
+ imageInfo.clientPalette = TRUE; /* don't allocate anything */
imageInfo.clientCompData = TRUE;
imageInfo.clientPixels = TRUE;
if (!(feedImage = ilCreateClientImage (context, &imageInfo, 0))
break;
/* Parse group 3 TIFF options, assumed to be 0 if not present.
- As per TIFF spec, dont support if any unrecognized bits are not 0.
+ As per TIFF spec, don't support if any unrecognized bits are not 0.
Note that "group3CompData" is set to 0 below if comp = 2 (TIFF G3).
*/
case GROUP_3_OPTIONS:
ilFreeFileList (pFile); /* remove potential invalid image list */
- /* Dont have image list - read file and build the list. When done,
+ /* Don't have image list - read file and build the list. When done,
pFile->IFDTailPtrOffset points to the "next IFD" ptr which is null, i.e.
the next IFD ptr for the last image in the file. For a file with no images
that would be the ptr in the file header.
/* JPEG: write JIF with restart markers between strips.
For JIF-in-TIFF: add tags for a file ptr and length of the JIF image,
- and the restart interval, but dont know value until JIF image received.
+ and the restart interval, but don't know value until JIF image received.
*/
case IL_JPEG:
jpegProc = 1; /* baseline sequential process */
case 1: {
register ilPtr pDst, pSrc1, pSrc2;
- nLines--; /* dont count first line already in buffer */
+ nLines--; /* don't count first line already in buffer */
while (nLines >= 2) { /* two src lines, line between to interpolate */
nLines -= 2;
pSrc1 = pLine;
register int pixel, delta;
long rowBytesTimes4 = rowBytes << 2;
- nLines--; /* dont count first line already in buffer */
+ nLines--; /* don't count first line already in buffer */
while (nLines >= 4) { /* four src lines, line between to interpolate */
nLines -= 4;
pSrc = pLine;
}
else error = IL_OK;
- /* If aborting, free up pixels if they dont belong to client */
+ /* If aborting, free up pixels if they don't belong to client */
if (aborting) {
if (!pImage->i.clientPixels && pImagePlane->pPixels) {
IL_FREE (pImagePlane->pPixels);
long stripHeight;
ilPtr pCompData;
- /* Get pipe info, dont force decompression (yet). */
+ /* Get pipe info, don't force decompression (yet). */
ilGetPipeInfo (pipe, FALSE, &info, &des, &format);
/* Convert (and decompress) as necessary to dest image des */
* the list. The connection is not closed until a selection is made
* in the list, or the printer selection dialog is dismissed. This is
* because no assumptions about the Printer Info dialog's widget
- * heirarchy can be made.
+ * hierarchy can be made.
*
* Return value:
*
* generated dynamically. At the parse level it is equivalent
* to a separate 'word' with its own (undetermined) record set.
* So it's given its own slot in saveusr.stems. The word
- * in saveusr.stems is formated "@ssttv[v...]" where ss and tt are
+ * in saveusr.stems is formatted "@ssttv[v...]" where ss and tt are
* ascii numbers that index the original collocated words
* in saveusr.stems, and v... is the collocation value integer.
* For example, "@03005" represents the collocation of stem
PROGNAME"1350 Include list file name = '%s'.\n",
dblk->fname_inc);
- /* Dont reload the same file if it's already
+ /* Don't reload the same file if it's already
* been loaded into a previous dblk in a list.
* Code works just fine if dblist == NULL.
*/
PROGNAME"1448 Stoplist file name = '%s'.\n",
dblk->fname_stp);
- /* Dont reload the same file if it's already
+ /* Don't reload the same file if it's already
* been loaded into a previous dblk in a list.
* Code works just fine if dblist == NULL.
*/
PROGNAME"1740 Paice suffix file name = '%s'.\n",
dblk->fname_sfx);
- /* Dont reload the same file if it's already
+ /* Don't reload the same file if it's already
* been loaded into a previous dblk in a list,
* but flag it so it won't be freed at unload_language/REINIT.
* Code works just fine if dblist == NULL.
*/
/*-----------------------------------------------------------------------
- reclast.c - find last record occurance in database
+ reclast.c - find last record occurrence in database
reclast is used to setup a scan of a database by database number
backwards, and is complementary to recfrst.
/* ********************** LOCAL FUNCTION DECLARATIONS **************** */
/* ======================================================================
- d_reclast - find last record occurance in database
+ d_reclast - find last record occurrence in database
*/
int d_reclast( rec TASK_PARM DBN_PARM )
-int rec; /* record # to find last occurance of */
+int rec; /* record # to find last occurrence of */
TASK_DECL
DBN_DECL /* optional database number */
{
case SPC_Connection_EOF:
if (SPC_who_am_i == SPC_I_AM_A_DAEMON)
- spc_error_struct.format = (XeString) "><Client has disconneted (received EOF).";
+ spc_error_struct.format = (XeString) "><Client has disconnected (received EOF).";
else
spc_error_struct.format = (XeString) "><The dtspcd process on host '%s' has terminated.";
spc_error_struct.severity = XeError;
nchars=(*channel->read_filter)
(channel, connector, spc_iobuffer, SPC_BUFSIZ);
- /* Check nchars. If it is EXCEPT_FLAG, we had a special occurance (such
+ /* Check nchars. If it is EXCEPT_FLAG, we had a special occurrence (such
as an ioctl on a PTY). In any case, don't do any more processing */
if(nchars==EXCEPT_FLAG)
XeChar path_component[MAXPATHLEN+1];
int path_component_len;
int filename_len;
- int component_seperator=(int)':'; /* this is here because strchr takes an in */
+ int component_separator=(int)':'; /* this is here because strchr takes an in */
if(!filename)
return(FALSE);
path=getenv("PATH");
for( (path_rest=path ,
- next_colon=strchr(path_rest, component_seperator));
+ next_colon=strchr(path_rest, component_separator));
path_rest && *path_rest;
- next_colon=strchr(path_rest, component_seperator)) {
+ next_colon=strchr(path_rest, component_separator)) {
/*
** Copy path component into buffer
* "termOpts". This situation arises because
* the existing prompt data structures do NOT identify the
* location of the prompt and hence where to put the
- * user-supplied value; except by order of occurance.
+ * user-supplied value; except by order of occurrence.
*/
ProcessOneSegment(request, &(action->u.cmd.execHosts), prompts,
numPrompts, &argsOptionFound, &lastArgReferenced,
* "termOpts". This situation arises because
* the existing prompt data structures do NOT identify the
* location of the prompt and hence where to put the
- * user-supplied value; except by order of occurance.
+ * user-supplied value; except by order of occurrence.
*/
/* Set up the next host to execute on */
missingField = XtNewString (((char *) Dt11GETMESSAGE (6, 14, "The action definition \"%s\" in the file\n \"%s\"\n is missing the required field, \"%s\"\n for \"%s\" type actions.\n")));
- missingName = XtNewString (((char *) Dt11GETMESSAGE (4, 1, "A \"%s\" definition in the file:\n \"%s\"\n is missing a name. Add the name\n to the defintion.\n")));
+ missingName = XtNewString (((char *) Dt11GETMESSAGE (4, 1, "A \"%s\" definition in the file:\n \"%s\"\n is missing a name. Add the name\n to the definition.\n")));
unrecogMsgType2 = XtNewString (((char *) Dt11GETMESSAGE (6, 16, "The action definition \"%s\" in the file\n \"%s\"\n has the illegal value \"%s\" in the \"%s%s%s\" field.\n")));
}
*
* _DtActRetCmdChildArgs(childp, aargv)
*
- * Create an argment vector containing the returnable arguments for
+ * Create an argument vector containing the returnable arguments for
* a command action child. The vector pointer is passed in "aargv"
* space for it should already have been allocated by the caller.
* The number of returned arguments is returned by the function.
ptr += (len + offset);
/*
- * In preparation for the next pass, skip any other occurrances of
+ * In preparation for the next pass, skip any other occurrences of
* the terminator characters which were joined with the terminator
* we first encountered.
*/
*ptr += (len + offset);
/*
- * In preparation for the next pass, skip any other occurrances of
+ * In preparation for the next pass, skip any other occurrences of
* the terminator characters which were joined with the terminator
* we first encountered.
*/
/*
* Dt version of strchr(s, c).
- * Returns a pointer to the first occurance of 'c' in 's'.
+ * Returns a pointer to the first occurrence of 'c' in 's'.
*/
char *
/*
* Dt version of strrchr(s, c).
- * Returns a pointer to the last occurance of 'c' in 's'.
+ * Returns a pointer to the last occurrence of 'c' in 's'.
*/
char *
$ARGS$:
$RETURNS$:
True: strings match
-False: they dont
+False: they don't
/*================================================$SKIP$==*/
#endif
_DtMBStrchr (workStart, PATH_SEPARATOR, -1, &separator);
if (NULL == separator) _DtMBStrchr (workStart, EOS, -1, &separator);
if (NULL == separator) break; /* BREAK */
- workLen = separator - workStart; /* dont include +1 for EOS */
+ workLen = separator - workStart; /* don't include +1 for EOS */
/* copy over the path component */
strncpy(dbFile,workStart,workLen);
_DtXlateOpenAndMergeDb() opens a particular database and
merges it with an already opened one, overriding any
repeated specifications.
-_DtXlateOpenAllDbs() opens all occurances of a translation
+_DtXlateOpenAllDbs() opens all occurrences of a translation
database found in a search path and cumulatively merges
the contents, allowing for the override of existing
specifications as well as the addition of new ones.
The matchall character may be followed by a number when the <transtype>
is '>'. When this occurs, the string that matches the matchall
character may be referenced in the <opvalue> by using the sequence
-\<number>, as in "\1". The occurance is replaced with the matched
+\<number>, as in "\1". The occurrence is replaced with the matched
string.
/*=$END$================================================*/
#endif
} /* close scope of 'extern "C"'.... */
#endif /* __cplusplus */
-/* DONT'T ADD ANYTHING AFTER THIS #endif... */
+/* DON'T ADD ANYTHING AFTER THIS #endif... */
#endif /* _Dt_TermFunctionKey_h */
} /* close scope of 'extern "C"'.... */
#endif /* __cplusplus */
-/* DONT'T ADD ANYTHING AFTER THIS #endif... */
+/* DON'T ADD ANYTHING AFTER THIS #endif... */
#endif /* _Dt_TermFunctionKeyP_h */
/* initialize... */
- /* we need to insure that everthing is initialized. Let's do a
+ /* we need to insure that everything is initialized. Let's do a
* checklist...
*/
/* lower euid */
DebugF('F', 1, fprintf(stderr,
"%s() %s calling %s\n",
"_DtTermPrimCursorOn",
- "dont care",
+ "don't care",
"XmImVaSetValues()"));
(void) XmImVaSetValues(w,
XmNspotLocation, &point,
Debug('T', timeStamp("DtTermView Initialize() starting"));
- /* we need to insure that everthing is initialized. Let's do a
+ /* we need to insure that everything is initialized. Let's do a
* checklist...
*/
/* Widget term created below */
/* create the Term widget...
*/
i = 0;
- /* Checklist. Let's make sure we are setting everthing that term
+ /* Checklist. Let's make sure we are setting everything that term
* needs...
*/
full_available_height = available_height = 1;
}
else {
- /* Seperator need available_height plus the vertical_spacing */
+ /* Separator need available_height plus the vertical_spacing */
full_available_height = (available_height +
(COMBO_V_SPACING(combo) * 2));
}
/*
* _DtEditorDialogReplaceAllCB is attached to the "Change All" button
- * in the Find/Change dialog. It replaces all occurances of the "Find"
+ * in the Find/Change dialog. It replaces all occurrences of the "Find"
* string with the "Change To" string.
*/
timeout_tv.tv_usec = 0;
clnt_control(cl, CLSET_TIMEOUT, (char*)&timeout_tv);
- /* dont need to set vers_out since it should
+ /* don't need to set vers_out since it should
* be the same as that of the udp transport
*/
ci->tcpcl = cl;
}
/*
- * Dont limit the number of cached connections right now.
+ * Don't limit the number of cached connections right now.
* Udp client handle does not use up file descriptor only space.
* Tcp client handle is kept open only when there's at least one
* calendar registered with the host and the user probably won't
/* COMMON EXTENSIONS DECLARATIONS */
-/* EXTENSTION SET ID */
+/* EXTENSION SET ID */
/* Common Extension Set */
#define CSA_XS_COM ((CSA_uint32)0)
* /etc/profile. We are doing the "sourcing" prematurely in
* init.c. Additionally, a login C shell doesn't source the
* file /etc/profile thus not sourcing /etc/TIMEZONE thus not
- * allowing an adminstrator to globally set TZ for all users
+ * allowing an administrator to globally set TZ for all users
*/
if (Def_tz != NULL) /* Is there a TZ from defaults/login? */
tmp_tz = Def_tz;
/*
* Prints an error message if a ':' or a newline is found in the string.
* A message is also printed if the input string is too long.
- * The password sources use :'s as seperators, and are not allowed in the "gcos"
+ * The password sources use :'s as separators, and are not allowed in the "gcos"
* field. Newlines serve as delimiters between users in the password source,
* and so, those too, are checked for. (I don't think that it is possible to
* type them in, but better safe than sorry)
/* Currently, in both olit dnd protocol and
* motif dnd protocol, the destination side
- * DONT check the value from the source side!
+ * DON'T check the value from the source side!
*
* We will have to copy xe->property to
* drop_info->receiver_win if this is no longer
:type :choice
:choice-type :nonexclusive
:label-type :string
- :label "Resizeable:"
+ :label "Resizable:"
:label-position :west
:num-columns 1
:orientation :vertical
6 "Parent:"
7 "parent obj"
8 "Object1"
-9 "Resizeable:"
+9 "Resizable:"
10 "Attach To:"
11 "Offset:"
12 "Percentage:"
31 "Cancel"
32 "None"
33 " "
-34 "The Action3 button is specified as the\ndefault button, but it is not specfied\nto exist in the message dialog."
+34 "The Action3 button is specified as the\ndefault button, but it is not specified\nto exist in the message dialog."
35 "A string must be entered for the Action3 button."
36 "Apply Changes"
37 "No buttons are specified to exist in\nthe message dialog. There must be \nat least one button in the message."
:type :message
:message-type :error
:label "Application Builder"
- :message "The Action3 button is specified as the\ndefault button, but it is not specfied\nto exist in the message dialog."
+ :message "The Action3 button is specified as the\ndefault button, but it is not specified\nto exist in the message dialog."
:action1-label "OK"
:cancel-button :false
:help-button :true
return;
}
else
- fprintf(stderr, "Succesfully imported %s.\n", uil_file_name);
+ fprintf(stderr, "Successfully imported %s.\n", uil_file_name);
obj_set_flag(project, SaveNeededFlag);
util_file_name_has_extension(filename, "xbm"))
{
ext = strrchr(filebase, '.');
- ext[0] = '\0'; /* strip off extenstion */
+ ext[0] = '\0'; /* strip off extension */
util_set_help_data(catgets(Dtb_project_catd, 100, 117,
"The graphic file name extension should not be included\nwhen it is specified in the Graphic Filename field."), NULL, NULL);
fprintf(stderr, "%s", catgets(Dtb_project_catd, 1, 17,
"Files with extension .bip are assumend to be BIL project files, files with\n"));
fprintf(stderr, "%s", catgets(Dtb_project_catd, 1, 18,
-".bix extenstion are assumed to be encapsulated BIL files, and files\n"));
+".bix extension are assumed to be encapsulated BIL files, and files\n"));
fprintf(stderr, "%s", catgets(Dtb_project_catd, 1, 19,
"With a .bil extension are assumed to be BIL module files.\n\n"));
15 "file is specified, a project file containing the specified module(s) is\n"
16 "searched for in the current directory.\n\n"
17 "Files with extension .bip are assumend to be BIL project files, files with\n"
-18 ".bix extenstion are assumed to be encapsulated BIL files, and files\n"
+18 ".bix extension are assumed to be encapsulated BIL files, and files\n"
19 "with a .bil extension are assumed to be BIL module files.\n"
20 "Options (* = default, + = default with no project file):\n"
21 " -help (-h) Print out this help message\n"
" }\n"
"\n"
" /*\n"
- " * Set the approriate resources.\n"
+ " * Set the appropriate resources.\n"
" */\n"
" XtVaSetValues(widget, XmNlabelType, XmPIXMAP, NULL);\n"
" if (labelPixmap != 0)\n"
/* def */
"/*\n"
- " * Sets both the sensitive and insensitve pixmaps\n"
+ " * Sets both the sensitive and insensitive pixmaps\n"
" */\n"
"int\n"
"dtb_set_label_from_bitmap_data(\n"
/* def */
"/*\n"
- " * Sets both the sensitive and insensitve pixmaps\n"
+ " * Sets both the sensitive and insensitive pixmaps\n"
" */\n"
"int\n"
"dtb_set_label_from_xpm_data(\n"
}
/*
- * Set the approriate resources.
+ * Set the appropriate resources.
*/
XtVaSetValues(widget, XmNlabelType, XmPIXMAP, NULL);
if (labelPixmap != NULL)
/*
- * Sets both the sensitive and insensitve pixmaps
+ * Sets both the sensitive and insensitive pixmaps
*/
int
dtb_set_label_from_bitmap_data(
/*
- * Sets both the sensitive and insensitve pixmaps
+ * Sets both the sensitive and insensitive pixmaps
*/
int
dtb_set_label_from_xpm_data(
obj->info.window.resizable = resizable;
return 0;
}
- member_error(obj, "resizeable");
+ member_error(obj, "resizable");
return -1;
}
/* We should have cleared this to prepare for a mem fault */
/* If not, then something has gone haywire */
static STRING msg = NULL;
- msg = "MEMORY ACCESS VIOLATION OCCURED. ABORTING.\n";
+ msg = "MEMORY ACCESS VIOLATION OCCURRED. ABORTING.\n";
write(2, msg, strlen(msg));
abort();
}
}
}
- /* Deal with buffers that dont end with a new line. */
+ /* Deal with buffers that don't end with a new line. */
if ((cur - last_nl) > 76) {
encode = B_TRUE;
buf[size - 1] = '\0';
tmp_buf = strdup(name);
head = tmp_buf;
- if ((tail = strchr(head, DTFNS_SEPERATOR)) == NULL) {
+ if ((tail = strchr(head, DTFNS_SEPARATOR)) == NULL) {
/*
* No colon. Either one of the special FNS names or
* it is not an FNS name
if (strcmp(head, DTFNS_ORG_NAME) == 0) {
/* Starts with org:. Get org */
head = tail;
- if ((tail = strchr(head, DTFNS_SEPERATOR)) == NULL) {
+ if ((tail = strchr(head, DTFNS_SEPARATOR)) == NULL) {
/* just org:orgname */
strncpy(buf, head, size);
size -= strlen(buf);
org = head;
head = tail + 1;
- if ((tail = strchr(head, DTFNS_SEPERATOR)) == NULL) {
+ if ((tail = strchr(head, DTFNS_SEPARATOR)) == NULL) {
/*
* Hmmm... We have "org:orgname:something"
* Just return the description for an organization
#include <fns/fns.h>
-#define DTFNS_SEPERATOR ':'
+#define DTFNS_SEPARATOR ':'
#define DTFNS_ORG_NAME "org"
#define DTFNS_ORG_LEN 3
return (stat);
}
- /* we dont use the values specified by client */
+ /* we don't use the values specified by client */
for (i = 0; i < args->num_attrs; i++) {
if (strcmp(args->attrs[i].name.name,
CSA_CAL_ATTR_CALENDAR_NAME) == 0) {
else if (!strcmp(cmd, "quit")) break;
else
- fprintf(stderr, "Unknown command '%s' - ingored.\n", cmd);
+ fprintf(stderr, "Unknown command '%s' - ignored.\n", cmd);
}
putc(NL, stdout);
}
int dif_el=0, tot_el=0, tot_data=0, nchars, max_depth=0;
float pct;
- fprintf(outfp, "%-22s %s %s\n", "Element name", "Occurrances", "Character Content");
+ fprintf(outfp, "%-22s %s %s\n", "Element name", "Occurrences", "Character Content");
fprintf(outfp, "%-22s %s %s\n", "---------------", "-----------", "-----------------");
acc_tots(top, &tot_el, &tot_data, &max_depth);
case CMD_LINE: /* Llineno */
/* These lines come in 2 forms: "L123" and "L123 file.sgml".
- * Filename is given only at 1st occurance. Remember it.
+ * Filename is given only at 1st occurrence. Remember it.
*/
if ((cp = strchr(i18nBuf, ' '))) {
cp++;
char *gi; /* element name of tag under consideration */
char **gilist; /* list of element names (multiple gi's) */
char *context; /* context in tree - looking depth levels up */
- regexp *context_re; /* tree heirarchy looking depth levels up */
+ regexp *context_re; /* tree hierarchy looking depth levels up */
int depth; /* number of levels to look up the tree */
AttPair_t *attpair; /* attr name-value pairs */
int nattpairs; /* number of name-value pairs */
* SkipToChar --
*
* This function traverses a glob pattern looking for the next
- * unquoted occurance of the specified character at the same braces
+ * unquoted occurrence of the specified character at the same braces
* nesting level.
*
* Results:
case EPROTO: return "protocol error";
#endif
#ifdef EPROTONOSUPPORT
- case EPROTONOSUPPORT: return "protocol not suppored";
+ case EPROTONOSUPPORT: return "protocol not supported";
#endif
#ifdef EPROTOTYPE
case EPROTOTYPE: return "protocol wrong type for socket";
case ERREMOTE: return "object is remote";
#endif
#ifdef ESHUTDOWN
- case ESHUTDOWN: return "can't send afer socket shutdown";
+ case ESHUTDOWN: return "can't send after socket shutdown";
#endif
#ifdef ESOCKTNOSUPPORT
case ESOCKTNOSUPPORT: return "socket type not supported";
#endif /* _DTEXEC_NLS16 */
/*
- * Search from the end for underscore seperators.
+ * Search from the end for underscore separators.
*/
#ifdef _DTEXEC_NLS16
tick2 = (char *) Dt_strrchr( dtSvcProcIdG, '_' );
}
else {
/*
- * Unable to find _ (underscore) seperators.
+ * Unable to find _ (underscore) separators.
*/
free(dtSvcProcIdG);
dtSvcProcIdG = (char *) NULL;
else
tmpStr = (GETMESSAGE(11,54, "The move of the file/folder failed\ndue to some internal error. The internal\nerror given is:"));
catmsg = XtNewString(tmpStr);
- tmpStr = (GETMESSAGE(11,55, "Please see your System Adminstrator"));
+ tmpStr = (GETMESSAGE(11,55, "Please see your System Administrator"));
samsg = XtNewString(tmpStr);
}
action_area = Create_Action_Area(form, copyActions, NULL);
/* create the separator widget */
- separator = XtVaCreateManagedWidget("seperator",
+ separator = XtVaCreateManagedWidget("separator",
xmSeparatorWidgetClass,
form,
XmNbottomAttachment, XmATTACH_WIDGET,
54 The move of the file/folder failed\n\
due to some internal error. The internal\n\
error given is:
-55 Please see your System Adminstrator
+55 Please see your System Administrator
56 (Unknown):
57 You do not have permission to move the folder\n\
%s\n\
};
/*
- * Defintions and Macros
+ * Definitions and Macros
*/
#if 0
#define DEFAULT_FILE "/etc/copyright"
fprintf (outVolume, "*.topTopic: %s\n", ParentName);
/*
- * topic heirarchy
+ * topic hierarchy
*/
- fprintf (outVolume, "\n\n!# Topic Heirarchy\n");
+ fprintf (outVolume, "\n\n!# Topic Hierarchy\n");
fprintf (outVolume, "*.%s.parent: \n", ParentName);
for (next = TopicList; next && *next; next++)
fprintf (outVolume, "*.%s.parent: %s\n", *next, ParentName);
#include <X11/Xlibint.h> /* _XGetHostname() */
#include <X11/Xos.h> /* FIX: remove? */
#include <X11/Intrinsic.h> /* for Xt macros */
-/* dont use X11/StringDefs.h because it brings in the _XtStrings global */
+/* don't use X11/StringDefs.h because it brings in the _XtStrings global */
#include "HelpPrintI.h"
/* e.g. Dthelpprint.Printer{.<name>}.PaperSize */
#if defined(_AIX)
- stricmp = strcmp; /* AIX and USL dont have strcasecmp */
+ stricmp = strcmp; /* AIX and USL don't have strcasecmp */
#else
stricmp = strcasecmp;
#endif
char * tmp_string;
/** n.b.: If *appDB == NULL, the first XrmPutResource() call
- creates a database and stored its ref in appDB. We dont
+ creates a database and stored its ref in appDB. We don't
need to explicitly create the db. **/
str_type[0] = NULL;
state->curPageNumber = 1;
state->curLineNumber = 1;
- /* output topics but dont inhibit */
+ /* output topics but don't inhibit */
if ( processSubTopics )
{
state->sectNums[0] = 1; /* support section num printing */
/* Volumegen Input file suffixes */
#define HEIR_FILE_SUFFIX ".tpc" /* The input filename suffix used for topic */
- /* heirarchy files. */
+ /* hierarchy files. */
#define TLOC_FILE_SUFFIX ".idt" /* The input filename suffix used for topic */
/* location files. */
exit (1);
}
- /* Construct the name of the heirarchy file and open it. */
+ /* Construct the name of the hierarchy file and open it. */
fName = malloc (strlen (*(argv+1)) + strlen (HEIR_FILE_SUFFIX) + 1);
strcpy (fName, *(argv+1));
strcat (fName, HEIR_FILE_SUFFIX);
if ((heirFile = fopen (fName, "r")) == NULL) {
fprintf (stderr,
- "%s: error opening heirarchy file %s for reading\n",
+ "%s: error opening hierarchy file %s for reading\n",
*argv, fName);
perror (NULL);
exit (1);
}
- /* Generate topic list and heirarchy */
+ /* Generate topic list and hierarchy */
GenTopicList (heirFile, volFile);
GenTopicHeir (heirFile, volFile);
topicStack = PStackCreate();
fseek (infile, 0, SEEK_SET);
- fprintf (outfile, "# Topic Heirarchy\n");
+ fprintf (outfile, "# Topic Hierarchy\n");
prevToken = NULL;
while ((token = GetNextToken (infile, TRUE)) != NULL) {
remnant = 0;
/* First split out the "sort", "text" and "rid" fields. They are
- separated by an ASCII Record Seperator (036) character */
+ separated by an ASCII Record Separator (036) character */
pTo = sort;
pRestart = pFrom;
found = 0;
remnant = 0;
/* First split out the "sort", "text" and "rid" fields. They are
- separated by an ASCII Record Seperator (036) character */
+ separated by an ASCII Record Separator (036) character */
pTo = sort;
pRestart = pFrom;
found = 0;
RENEWSTR(com_opt, valp);
}
} else {
- DPR3(("\t[line=%d] unknow name '%s'\n", line_num, lp));
+ DPR3(("\t[line=%d] unknown name '%s'\n", line_num, lp));
}
}
break;
case data_t::VOID:
- throw(stringException("btree data_t_2_DBT: unknow key type"));
+ throw(stringException("btree data_t_2_DBT: unknown key type"));
}
}
showBookCaseInfo(DtMmdbGetBookCaseByIndex(i, j));
break;
default:
- fprintf(stderr, "bad argment list\n");
+ fprintf(stderr, "bad argument list\n");
}
fprintf(stderr, "infolib desc=%d\n", i);
showBookCaseInfo(DtMmdbGetBookCaseByLoc(i, argv[4]));
break;
default:
- fprintf(stderr, "bad argment list\n");
+ fprintf(stderr, "bad argument list\n");
}
fprintf(stderr, "infolib desc=%d\n", i);
showBookCaseInfo(DtMmdbGetBookCaseByIndex(i, j));
break;
default:
- fprintf(stderr, "bad argment list\n");
+ fprintf(stderr, "bad argument list\n");
}
fprintf(stderr, "infolib desc=%d\n", i);
showBookCaseInfo(DtMmdbGetBookCaseByLoc(i, argv[4]));
break;
default:
- fprintf(stderr, "bad argment list\n");
+ fprintf(stderr, "bad argument list\n");
}
fprintf(stderr, "infolib desc=%d\n", i);
}
free(return_positions);
- // The list of MarkCanvas objects is already in order of occurance
+ // The list of MarkCanvas objects is already in order of occurrence
// in the node, so we can just process them in order to create
// the revised set of MarkIcons.
SearchScopeAgent::~SearchScopeAgent()
{
#if 0
- // dont need to delete these because not called anyway - jbm
+ // don't need to delete these because not called anyway - jbm
// NOTE: Destroy should destroy & delete!
f_shell->Destroy();
// /////////////////////////////////////////////////////////////////
-// _select - beep if insensitve, call normal select action otherwise
+// _select - beep if insensitive, call normal select action otherwise
// /////////////////////////////////////////////////////////////////
void
/*
* grab space for arglist and copy args
- * The strings are copied after the argment vector
+ * The strings are copied after the argument vector
*/
struct dolnod *sh_argcreate __PARAM__((register char *argv[]), (argv)) __OTORP__(register char *argv[];){
register struct dolnod *dp;
***************************************************************/
#include "sfhdr.h"
-/* Read formated data from a stream
+/* Read formatted data from a stream
**
** Written by Kiem-Phong Vo (06/27/90)
*/
1 Access file "%1$s", host "%2$s" not found\n
2 ReadHostEntry\n
3 Access file %1$s, display %2$s unknown\n
-4 Cannot open access control file %1$s, no XDMCP reqeusts will be granted\n
+4 Cannot open access control file %1$s, no XDMCP requests will be granted\n
5 Domain/OS authentication error: %1$s (%2$s/%3$s)
6 Can not open server authorization file %1$s\n
7 Cannot write server authorization file %1$s\n
/* make sure the server gets reset after the session is over */
if (d->serverPid >= 2) {
- Debug("Reseting server: pid %d signal %d\n",
+ Debug("Resetting server: pid %d signal %d\n",
d->serverPid, d->resetSignal);
if (d->terminateServer == 0 && d->resetSignal)
}
/*
- * replace all occurrances of %LocalHost% and %DisplayName%
+ * replace all occurrences of %LocalHost% and %DisplayName%
* in the current substring...
*/
XmFONTLIST_DEFAULT_TAG));
/*
- * add a line seperator if this is a multi-line greeting...
+ * add a line separator if this is a multi-line greeting...
*/
if ( newLine == True ) {
#define MC_DEF_LOG_ACC_FILE "Access file \"%1$s\", host \"%2$s\" not found\n"
#define MC_DEF_LOG_HOST_ENT "ReadHostEntry\n"
#define MC_DEF_LOG_ACC_DPY "Access file %1$2s, display %1$2s unknown\n"
-#define MC_DEF_LOG_ACC_CTL "Cannot open access control file %1$s, no XDMCP reqeusts will be granted\n"
+#define MC_DEF_LOG_ACC_CTL "Cannot open access control file %1$s, no XDMCP requests will be granted\n"
#define MC_DEF_LOG_DOMAIN "Domain/OS authentication error: %1$s (%2$s/%3$s)"
#define MC_DEF_LOG_SRV_OPEN "Can not open server authorization file %1$s\n"
#define MC_DEF_LOG_SRV_WRT "Cannot write server authorization file %1$s\n"
size = strlen(from_hdr) + int(_myContentsSize) + 3;
buffer = new char[size];
- // Look for the first occurance of a colon or a newline.
+ // Look for the first occurrence of a colon or a newline.
char *sptr;
for (sptr = (char*) _myContents;
*sptr && *sptr != '\n' && *sptr != ':';
void
Notifier::removeInterval(IntervalId id)
{
- // The Id is really the TimerEvent structure pointer. We dont have
+ // The Id is really the TimerEvent structure pointer. We don't have
// a key for these objects so we will have to enumerate the entire
// list of timer events until we find the appropriate key.
//
// Create a fontlist that contains the glyph and user fonts
strcpy(buf, _user_font);
#if 0
- // Never refer to the "plain" tag so dont add it.
+ // Never refer to the "plain" tag so don't add it.
if (strchr(_user_font, '=') == NULL) {
// No tag. Add one
strcat(buf, "=plain, ");
int slot = lookupHeader(name);
if (slot < 0) {
- // We dont have a place for this information. We may need
+ // We don't have a place for this information. We may need
// to create a new header.
//
if (load_all) {
for (i=0, j=results.length(); i < j; i++) {
PropStringPair * psp = results[i];
int slot = lookupHeader(psp->label);
- // dont allow removal of default headers.
+ // don't allow removal of default headers.
HeaderList * hl = _header_list[slot];
if (!reservedHeader(hl->label)) {
if (slot != -1)
/*
- * Sets both the sensitive and insensitve pixmaps
+ * Sets both the sensitive and insensitive pixmaps
*/
int
dtb_set_label_from_bitmap_data(
}
/*
- * Set the approriate resources.
+ * Set the appropriate resources.
*/
XtVaSetValues(widget, XmNlabelType, XmPIXMAP, NULL);
if (labelPixmap != 0)
//
// logError() and logFatalError():
//
- // This will print out in a formated way all of the error information
+ // This will print out in a formatted way all of the error information
// that it can. it also sends the results to the system log device for
// bug tracking.
//
struct cmd * com = (struct cmd *)lex(word);
if (com == NONE) {
- // We dont know the command, so just copy the line.
+ // We don't know the command, so just copy the line.
//
fwrite(verbatim, 1, strlen(verbatim), outf);
return;
char * cur = (char *)hm_test((struct hash **)glob.g_alias, argv[0]);
if (!cur || (!clearAliases && hm_ismarked((struct hash **)glob.g_alias,
argv[0]))) {
- // Its been removed or written. Dont write it to the file.
+ // Its been removed or written. Don't write it to the file.
free(buf);
return;
}
}
// Create a new ignore line, leaving out the ignores that have
- // been removed. Also, dont write any ignores that have been
+ // been removed. Also, don't write any ignores that have been
// previously written.
//
for (ap = list; *ap; ap++) {
int i, j;
char *ptr = (char*)buf, *writebuf;
- // bug 5856: dont write out control M
+ // bug 5856: don't write out control M
// make a finite size buffer for writing
writebuf = (char*) malloc(bytes < SWS_BUFFERSIZE ? bytes : SWS_BUFFERSIZE);
// We must have an exact 1:1 mapping between the mime type and the
// CDE type to use this inverse mapping. If we have no hits then we
- // dont have any thing to use. If we have several hits, then we have
+ // don't have any thing to use. If we have several hits, then we have
// no idea which type is the correct type.
//
if (NULL != types) {
char *
MIMEBodyPart::getDescription(DtMailEnv &)
{
- // Dont have this return anything without checking
+ // Don't have this return anything without checking
// ramifications with getNameHeaderValue
// No need to clear error object here because we assume it has already
if (_body_env && _my_env == DTM_TRUE) {
// CMVC bug 2807
- // start points at the body part seperator. Need to
- // Skip seperator. Put in a sanity check until we know
+ // start points at the body part separator. Need to
+ // Skip separator. Put in a sanity check until we know
// this is the right fix
if (*start != '-' && *(start + 1) != '-') {
fprintf(
stderr,
- "RFCBodyPart::adjustBodyPartLocation(%.20s): Not a seperator\n",
+ "RFCBodyPart::adjustBodyPartLocation(%.20s): Not a separator\n",
start);
} else {
while (*start != '\n')
error.clear();
// First we need to see if we have this header. We are
- // only interested in the first occurance.
+ // only interested in the first occurrence.
//
ParsedHeader * hdr;
const char * real_name;
else {
// We must adjust the offset of every header in the parsed header
// structure. For those headers values that have been malloc()ed
- // (e.g. NAME_MASK or VALUE_MASK are set), dont have to do anything
+ // (e.g. NAME_MASK or VALUE_MASK are set), don't have to do anything
// as they are deallocated only when the header is destroyed.
//
for (int hdr = 0; hdr < _parsed_headers.length(); hdr++) {
}
- // Deal with buffers that dont end with a new line.
+ // Deal with buffers that don't end with a new line.
//
if ((cur - last_nl) > 76) {
encode = DTM_TRUE;
}
}
- // Deal with buffers that dont end with a new line.
+ // Deal with buffers that don't end with a new line.
//
if (strict_mime && ((cur - last_nl) > 76)) {
qprint_growth += 2;
const void *tmp_ptr;
error.clear();
bp->getContents(error, &tmp_ptr, &bp_len, NULL, &name, NULL, NULL);
- // We dont want to change the contents of the msg.
+ // We don't want to change the contents of the msg.
if (bp_len > 0) {
bp_contents = (char*)malloc((unsigned int)bp_len);
memcpy(bp_contents, (char*)tmp_ptr, (size_t)bp_len);
}
- // Deal with buffers that dont end with a new line.
+ // Deal with buffers that don't end with a new line.
//
if ((cur - last_nl) > 76) {
encode = DTM_TRUE;
break;
default:
//
- // locality otherwise -- assume remote dont lock
+ // locality otherwise -- assume remote don't lock
//
break;
}
unsigned long pagelimit = _mappings[map_slot]->map_size;
#if !defined(__linux__) && !defined(sun)
- // no madvise; dont use optimization
+ // no madvise; don't use optimization
madvise(
(char *)_mappings[map_slot]->map_region,
(size_t) pagelimit, MADV_SEQUENTIAL);
// tell the kernel to pull in the minimum number of extra pages.
//
#if !defined(__linux__) && !defined(sun)
- // no madvise; dont use optimization
+ // no madvise; don't use optimization
madvise(
(char *)_mappings[map_slot]->map_region,
(size_t) pagelimit, MADV_RANDOM);
// that new mail has arrived.
//
// 3. The file size is either smaller, or it is larger and the first
- // few bytes dont match #2. This is the worse possible case. This
+ // few bytes don't match #2. This is the worse possible case. This
// means that somebody has modified the object from beneath us.
// We will turn on our "lost state" mode and refuse to do any
// further processing. This thread exits immediately.
// lockNewMailboxFile -- before renaming a new mailbox file over an old
// mailbox file, we need to establish a lock on the new mailbox file is
// a lock was established on the old mailbox file. Since the .lock protocol
-// works on a file name basis we dont have to worry here, but if this
+// works on a file name basis we don't have to worry here, but if this
// system uses lockf() to lock the files we need to establish that lock
// on the new file first before renaming it over the old mailbox file.
//
long maxOpenFiles = sysconf(_SC_OPEN_MAX);
if (maxOpenFiles < 32) // less than 32 descriptors?
- maxOpenFiles = 1024; // dont believe it--assume lots
+ maxOpenFiles = 1024; // don't believe it--assume lots
for (int sig = 1; sig < NSIG; sig++)
(void) signal(sig, SIG_DFL); // REset all signal handlers
// less than 32 descriptors?
if (maxOpenFiles < 32)
{
- // dont believe it--assume lots
+ // don't believe it--assume lots
maxOpenFiles = 1024;
}
if (bp->flagIsSet(error, DtMailBodyPartDeletePending))
continue;
- // First, put out the message seperator. It is a very
+ // First, put out the message separator. It is a very
// weak line of 10 dashes.
//
buf.appendData("----------", 10);
// const unsigned long inputLen -- number of bytes in encoded source text
// Outputs:
// **outputBp -- will contain a -> a newly allocated buffer containing
-// the decoded message - dont forget to deallocate when done
+// the decoded message - don't forget to deallocate when done
// off -- contains the number of bytes in the decoded message at **buf
// Description
// This function will decode the specified source message according to the
long maxOpenFiles = sysconf(_SC_OPEN_MAX);
if (maxOpenFiles < 32) // less than 32 descriptors?
- maxOpenFiles = 1024; // dont believe it--assume lots
+ maxOpenFiles = 1024; // don't believe it--assume lots
for (int sig = 1; sig < NSIG; sig++)
(void) signal(sig, SIG_DFL); // reset all signal handlers
if (SafeDup2 (inputPipe[pipeReader], STDIN_FILENO) == -1) // input pipe reader is stdin
(void) SafeClose(outputPipe[pipeWriter]); // output pipe writer n/a
#if defined(O_NONBLOCK)
- fcntl(inputPipe[pipeWriter], F_SETFL, O_NONBLOCK); // we dont want to block writing to child
+ fcntl(inputPipe[pipeWriter], F_SETFL, O_NONBLOCK); // we don't want to block writing to child
#elif defined(FNBIO)
- (void) fcntl(inputPipe[pipeWriter], F_SETFL, FNBIO); // we dont want to block writing to child
+ (void) fcntl(inputPipe[pipeWriter], F_SETFL, FNBIO); // we don't want to block writing to child
#endif
// Ok, uncompress is out there spinning its wheels waiting for us
}
/*
- * Join the default sesssion,
+ * Join the default session,
* and register to deal with standard Desktop requests in the following
* manner (controlled by the Ttdt_contract_cb and shell arguments):
*
/************************************************************************
- * TTresetQuitArgs - resets TTDT_QUIT argments set in TTdt_message_acceptCB()
+ * TTresetQuitArgs - resets TTDT_QUIT arguments set in TTdt_message_acceptCB()
************************************************************************/
void
TTresetQuitArgs(
/************************************************************************
- * TTresetSaveArgs - resets TTDT_SAVE argments set in TTSaveContractCB()
+ * TTresetSaveArgs - resets TTDT_SAVE arguments set in TTSaveContractCB()
************************************************************************/
void
TTresetSaveArgs(
ptr += (len + offset);
/*
- * In preparation for the next pass, skip any other occurrances of
+ * In preparation for the next pass, skip any other occurrences of
* the terminator characters which were joined with the terminator
* we first encountered.
*/
// Dumps object to stdout
virtual void Dump(boolean verbose = false,
int level = 0);
- // Dumps object heirarchy to stdout
+ // Dumps object hierarchy to stdout
void DumpHierarchy(boolean verbose = false,
int level = 0);
// Dumps object to stdout
void Dump(boolean verbose = false,
int level = 0);
- // Dumps object heirarchy to stdout
+ // Dumps object hierarchy to stdout
void DumpHierarchy(boolean verbose = false,
int level = 0);
/*
* The directory for the specified session exists
* but it doesn't have any client databases. Start
- * a new user session. If a user wants a sesssion
+ * a new user session. If a user wants a session
* with no apps, they should create a zero-length
* session database.
*/
/*
* This is only involked when there is auto repeats set for
* specific keys only. It is VERY SLOW code so unless you
- * have to save off auto repeats for single keys - DONT
+ * have to save off auto repeats for single keys - DON'T
*/
while(tmpKey != NULL)
{
* If this is the first DT 3.0 session for a DT 2.0 user then we will
* also launch the helpviewer. If this is the first DT 3.0 session for a
* DT 2.0 user then we will also run convertVS.sh to change all
- * occurances of /usr/bin/X11/hpterm to .../dt/bin/hpterm,
+ * occurrences of /usr/bin/X11/hpterm to .../dt/bin/hpterm,
* /usr/bin/X11/xterm to .../dt/bin/xterm and
* /usr/bin/X11/xload to .../dt/bin/xload.
*
if (path != NULL)
{
/* Loop through paletteDirectories looking in each directory
- * till we find the palette file. Take first occurrance.
+ * till we find the palette file. Take first occurrence.
* Copy directory name into dir. Look for NULL or space
*/
* scaled to range 0 to 255.
* Fundamentally it's a word count of that word in the doc,
* but adjusted as follows:
- * 1) Large occurrances in small documents weigh more than
- * the same number of occurrances in large documents.
+ * 1) Large occurrences in small documents weigh more than
+ * the same number of occurrences in large documents.
* 2) Taking the log skews the ratio to be more linear,
* ie take advantage of higher ranges of the 'weight'.
* For example a word that occurs in 10% of the document,
/************************** HUFFCODE.C ******************************
* $XConsortium: huffcode.c /main/9 1996/11/14 15:31:05 rcs $
* 12/90.
- * Counts frequency of occurrance of every possible byte value of input text.
+ * Counts frequency of occurrence of every possible byte value of input text.
* Creates Huffman Code Table based on byte frequencies and writes it
* in 2 formats to 2 different output files.
* The encode table (.huf) maintains the frequency counts and explicitly
typedef struct {
char bit; /* '0' or '1' (assoc with link to
* father) */
- long count; /* freq of occurrance of char */
+ long count; /* freq of occurrence of char */
int sort; /* specifies output sort order */
int father; /* index points UP toward root of
* tree */
!*menu_popup.menuAccelerator: <Key>osfMenu
! The following resources define dtterm's appearance. They follow the
-! current dtterm widget heirarchy which may change in future releases
+! current dtterm widget hierarchy which may change in future releases
! of dtterm without notice.
!
! Widget Class Instance Name
or separating individual flags or ranges by commas.
It is possible to specify bits in the same fashion. If no value bits
-are specified, all 100 bits are set. If no flags are specfied, none
+are specified, all 100 bits are set. If no flags are specified, none
are set. Individual entries may be separated by spaces. A few examples:
A-z: sets all debug bits
/* this function only supports returning position of one char (not
- a string). "num" is the occurance of the character's position to
+ a string). "num" is the occurrence of the character's position to
return. */
Static short
strpos2(Char *S1, Char *S2, short num)
* Set the keyboard input focus to the newly managed window if appropriate:
* - focus is automatically set only if the focus policy is explicit
* - if there is a system modal window active then set the focus only
- * if the new window is in the system modal heirarchy
+ * if the new window is in the system modal hierarchy
* - focus is automatically set if startupKeyFocus is selected or
* the new window is a system modal window or the current focus window
* has the new window as an application modal subordinate
*/
for (i = 0; i < nitems; i++) {
if (pAtoms[i] == wmGD.xa_OL_DECOR_RESIZE)
- *pDecor |= OLDecorResizeable;
+ *pDecor |= OLDecorResizable;
else if (pAtoms[i] == wmGD.xa_OL_DECOR_HEADER)
*pDecor |= OLDecorHeader;
else if (pAtoms[i] == wmGD.xa_OL_DECOR_CLOSE)
if (GetOLDecorAdd(pCD,&OLdecor))
{
- if (OLdecor & OLDecorResizeable)
+ if (OLdecor & OLDecorResizable)
{
decorMask |= WM_DECOR_RESIZEH;
}
if (GetOLDecorDel(pCD,&OLdecor))
{
- if (OLdecor & OLDecorResizeable)
+ if (OLdecor & OLDecorResizable)
{
decorMask &= ~MWM_DECOR_RESIZEH;
}
#define OLDecorFooter (1L<<1)
#define OLDecorPushPin (1L<<2)
#define OLDecorCloseButton (1L<<3)
-#define OLDecorResizeable (1L<<4)
+#define OLDecorResizable (1L<<4)
#define OLDecorIconName (1L<<5)
#define OLDecorWarpToPin (1L<<6)
if ((pSD->pDtSessionItems[count].workspaces =
(String)XtMalloc ((unsigned int) (strlen((char *)string) + 1))) == NULL)
{
- Warning (((char *)GETMESSAGE(60, 2, "Insufficient memory for workspaces list in sesssion item")));
+ Warning (((char *)GETMESSAGE(60, 2, "Insufficient memory for workspaces list in session item")));
return;
}
NULL)
{
Warning (((char *)GETMESSAGE(60, 38,
- "Insufficient memory for host name in sesssion item")));
+ "Insufficient memory for host name in session item")));
return;
}
WmScreenData *pSD = pCD->pSD;
/*
- * All occurances of maxHeight and maxWidth in this routing has been
+ * All occurrences of maxHeight and maxWidth in this routing has been
* hacked to use maxHeightLimit and maxWidthLimit as the real max when
* maximumClientSize is set to 'horizontal' or 'vertical', since
* pCD->maxHeight and pCD->maxWidth is fiddle to on reconfiguration.
$ local keyboard.
$
1 Insufficient memory for session geometry item
-2 Insufficient memory for workspaces list in sesssion item
+2 Insufficient memory for workspaces list in session item
3 Insufficient memory for commandArgv array
4 Insufficient memory for commandArgv item
5 Insufficient memory for Dt Session Hints
35 Insufficient memory for config file conversion
36 Insufficient memory to process included file: %s
37 Expected '{'
-38 Insufficient memory for host name in sesssion item
+38 Insufficient memory for host name in session item
39 Could not reopen configuration file %s
$ Message 40 is used to remap the menu accelerator
#define calendarbw_m.xbm_height 98
#define calendarbw_m.xbm_x_hot 0
#define calendarbw_m.xbm_y_hot 0
-static char calanderbw_m.xbm_bits[] = {
+static char calendarbw_m.xbm_bits[] = {
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00, 0x60, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x03, 0x00, 0x00,
0x00, 0x00, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x80, 0x07, 0x00,
interner Fehler fehlgeschlagen. \n\
Der interne Fehler ist:"
-55 "Den Systemadminstrator benachrichtigen"
+55 "Den Systemadministrator benachrichtigen"
56 "(Unbekannt):"
1 "Insufficient memory for session geometry item"
-2 "Insufficient memory for workspaces list in sesssion item"
+2 "Insufficient memory for workspaces list in session item"
3 "Insufficient memory for commandArgv array"
37 "Expected '{' "
-38 "Insufficient memory for host name in sesssion item"
+38 "Insufficient memory for host name in session item"
39 "Could not reopen configuration file %s"
$ Message 40 is used to remap the menu accelerator
$ local keyboard.
$
1 Insufficient memory for session geometry item
-2 Insufficient memory for workspaces list in sesssion item
+2 Insufficient memory for workspaces list in session item
3 Insufficient memory for commandArgv array
4 Insufficient memory for commandArgv item
5 Insufficient memory for Dt Session Hints
35 Insufficient memory for config file conversion
36 Insufficient memory to process included file: %s
37 Expected '{'
-38 Insufficient memory for host name in sesssion item
+38 Insufficient memory for host name in session item
39 Could not reopen configuration file %s
$ Message 40 is used to remap the menu accelerator
1 "Insufficient memory for session geometry item"
-2 "Insufficient memory for workspaces list in sesssion item"
+2 "Insufficient memory for workspaces list in session item"
3 "Insufficient memory for commandArgv array"
37 "Expected '{' "
-38 "Insufficient memory for host name in sesssion item"
+38 "Insufficient memory for host name in session item"
39 "Could not reopen configuration file %s"
$ Message 40 is used to remap the menu accelerator
1 "Insufficient memory for session geometry item"
-2 "Insufficient memory for workspaces list in sesssion item"
+2 "Insufficient memory for workspaces list in session item"
3 "Insufficient memory for commandArgv array"
37 "Expected '{' "
-38 "Insufficient memory for host name in sesssion item"
+38 "Insufficient memory for host name in session item"
39 "Could not reopen configuration file %s"
$ Message 40 is used to remap the menu accelerator
$ local keyboard.
$
1 Insufficient memory for session geometry item
-2 Insufficient memory for workspaces list in sesssion item
+2 Insufficient memory for workspaces list in session item
3 Insufficient memory for commandArgv array
4 Insufficient memory for commandArgv item
5 Insufficient memory for Dt Session Hints
35 Insufficient memory for config file conversion
36 Insufficient memory to process included file: %s
37 Expected '{'
-38 Insufficient memory for host name in sesssion item
+38 Insufficient memory for host name in session item
39 Could not reopen configuration file %s
$ Message 40 is used to remap the menu accelerator
$ local keyboard.
$
1 Insufficient memory for session geometry item
-2 Insufficient memory for workspaces list in sesssion item
+2 Insufficient memory for workspaces list in session item
3 Insufficient memory for commandArgv array
4 Insufficient memory for commandArgv item
5 Insufficient memory for Dt Session Hints
35 Insufficient memory for config file conversion
36 Insufficient memory to process included file: %s
37 Expected '{'
-38 Insufficient memory for host name in sesssion item
+38 Insufficient memory for host name in session item
39 Could not reopen configuration file %s
$ Message 40 is used to remap the menu accelerator
31 "Cancel"
32 "None"
33 " "
-34 "The Action3 button is specified as the\ndefault button, but it is not specfied\nto exist in the message dialog."
+34 "The Action3 button is specified as the\ndefault button, but it is not specified\nto exist in the message dialog."
35 "A string must be entered for the Action3 button."
36 "Apply Changes"
37 "No buttons are specified to exist in\nthe message dialog. There must be \nat least one button in the message."
15 "file is specified, a project file containing the specified module(s) is\n"
16 "searched for in the current directory.\n\n"
17 "Files with extension .bip are assumend to be BIL project files, files with\n"
-18 ".bix extenstion are assumed to be encapsulated BIL files, and files\n"
+18 ".bix extension are assumed to be encapsulated BIL files, and files\n"
19 "with a .bil extension are assumed to be BIL module files.\n"
20 "Options (* = default, + = default with no project file):\n"
21 " -help (-h) Print out this help message\n"
$ local keyboard.
$
1 Insufficient memory for session geometry item
-2 Insufficient memory for workspaces list in sesssion item
+2 Insufficient memory for workspaces list in session item
3 Insufficient memory for commandArgv array
4 Insufficient memory for commandArgv item
5 Insufficient memory for Dt Session Hints
35 Insufficient memory for config file conversion
36 Insufficient memory to process included file: %s
37 Expected '{'
-38 Insufficient memory for host name in sesssion item
+38 Insufficient memory for host name in session item
39 Could not reopen configuration file %s
$ Message 40 is used to remap the menu accelerator
$ local keyboard.
$
1 Insufficient memory for session geometry item
-2 Insufficient memory for workspaces list in sesssion item
+2 Insufficient memory for workspaces list in session item
3 Insufficient memory for commandArgv array
4 Insufficient memory for commandArgv item
5 Insufficient memory for Dt Session Hints
35 Insufficient memory for config file conversion
36 Insufficient memory to process included file: %s
37 Expected '{'
-38 Insufficient memory for host name in sesssion item
+38 Insufficient memory for host name in session item
39 Could not reopen configuration file %s
$ Message 40 is used to remap the menu accelerator
if( DtInitialize(XtDisplay(toplevel), toplevel, argv[0],
"Dt_TYPE") == False)
{
- printf(" couldn't initialize everthing\n");
+ printf(" couldn't initialize everything\n");
exit(1);
}
The files in this directory contain the DT 3.0 action and
filetype definitions.
- The syntax for the DT 3.0 defintions is much different than the
+ The syntax for the DT 3.0 definitions is much different than the
DT 2.0 syntax. The most significant change is that the each
field in a definition is on a separate line and each field is
identified by a keyword. Other important changes are: filetype
if (DtInitialize(XtDisplay(toplevel), toplevel, argv[0],
"Dttype") == False)
{
- fprintf(stderr, "couldn't initialize everthing\n");
+ fprintf(stderr, "couldn't initialize everything\n");
return(0);
}
$ Do not Translate
2 "Dttype"
$ Do not Translate
-3 "couldn't initialize everthing\n"
+3 "couldn't initialize everything\n"
4 "NULL"
$ this should mean a "Empty string".
5 "=============== %s ===============\n"