Changeset 142 for trunk/src/helpers


Ignore:
Timestamp:
Feb 21, 2002, 8:24:22 PM (24 years ago)
Author:
umoeller
Message:

misc. updates

Location:
trunk/src/helpers
Files:
28 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/helpers/apps.c

    r141 r142  
    786786 */
    787787
    788 VOID CallBatchCorrectly(PPROGDETAILS pProgDetails,
    789                         PXSTRING pstrParams,        // in/out: modified parameters (reallocated)
    790                         const char *pcszEnvVar,     // in: env var spec'g command proc
    791                                                     // (e.g. "OS2_SHELL"); can be NULL
    792                         const char *pcszDefProc)    // in: def't command proc (e.g. "CMD.EXE")
     788static VOID CallBatchCorrectly(PPROGDETAILS pProgDetails,
     789                               PXSTRING pstrParams,        // in/out: modified parameters (reallocated)
     790                               const char *pcszEnvVar,     // in: env var spec'g command proc
     791                                                           // (e.g. "OS2_SHELL"); can be NULL
     792                               const char *pcszDefProc)    // in: def't command proc (e.g. "CMD.EXE")
    793793{
    794794    // XXX.CMD file as executable:
     
    899899 *      wrapper around WinStartApp which copies all the
    900900 *      parameters into a contiguous block of tiled memory.
     901 *
    901902 *      This might fix some of the problems with truncated
    902  *      environments we were having.
     903 *      environments we were having because apparently the
     904 *      WinStartApp thunking to 16-bit doesn't always work.
    903905 *
    904906 *@@added V0.9.18 (2002-02-13) [umoeller]
    905907 */
    906908
    907 APIRET CallWinStartApp(HAPP *phapp,            // out: application handle if NO_ERROR is returned
    908                        HWND hwndNotify,        // in: notify window or NULLHANDLE
    909                        const PROGDETAILS *pcProgDetails, // in: program spec (req.)
    910                        PCSZ pcszParamsPatched)
     909static APIRET CallWinStartApp(HAPP *phapp,            // out: application handle if NO_ERROR is returned
     910                              HWND hwndNotify,        // in: notify window or NULLHANDLE
     911                              const PROGDETAILS *pcProgDetails, // in: program spec (req.)
     912                              PCSZ pcszParamsPatched)
    911913{
    912914    ULONG   cb,
     
    932934
    933935    // allocate a chunk of tiled memory from OS/2 to make sure
    934     // this is aligned on a 64K memory... otherwise we keep getting
    935     // hangs if this is memory that was allocated by some other thread
     936    // this is aligned on a 64K memory (backed up by a 16-bit
     937    // LDT selector)
    936938    cb = sizeof(PROGDETAILS);
    937939    if (cbTitle = strhSize(pcProgDetails->pszTitle))
  • trunk/src/helpers/cctl_chart.c

    r95 r142  
    281281 */
    282282
    283 VOID DrawCenteredText(HPS hpsMem,
    284                       PPOINTL pptlMiddlePoint,
    285                       const char *pcsz)
     283static VOID DrawCenteredText(HPS hpsMem,
     284                             PPOINTL pptlMiddlePoint,
     285                             const char *pcsz)
    286286{
    287287    if (pcsz)
     
    354354 */
    355355
    356 VOID PaintBarChart(HPS hpsMem,
    357                    PRECTL prclWholeStatic,    // in: rectl to paint into
    358                    PCHARTDATA pChartData,     // in: chart data
    359                    PCHARTSTYLE pChartStyle,   // in: chart style
    360                    double dTotal,             // in: sum of all values in pChartData
    361                    LONG lTextColor,           // in: description text color (RGB)
    362                    HRGN* paRegions)           // out: GPI regions for each data item
     356static VOID PaintBarChart(HPS hpsMem,
     357                          PRECTL prclWholeStatic,    // in: rectl to paint into
     358                          PCHARTDATA pChartData,     // in: chart data
     359                          PCHARTSTYLE pChartStyle,   // in: chart style
     360                          double dTotal,             // in: sum of all values in pChartData
     361                          LONG lTextColor,           // in: description text color (RGB)
     362                          HRGN* paRegions)           // out: GPI regions for each data item
    363363{
    364364    ULONG       ulYBottomNow = 0;
     
    557557 */
    558558
    559 VOID PaintPieChart(HPS hpsMem,
    560                    PRECTL prclWholeStatic,    // in: rectl to paint into
    561                    PCHARTDATA pChartData,     // in: chart data
    562                    PCHARTSTYLE pChartStyle,   // in: chart style
    563                    double dTotal,             // in: sum of all values in pChartData
    564                    LONG lTextColor,           // in: description text color (RGB)
    565                    HRGN* paRegions)           // out: GPI regions for each data item
     559static VOID PaintPieChart(HPS hpsMem,
     560                          PRECTL prclWholeStatic,    // in: rectl to paint into
     561                          PCHARTDATA pChartData,     // in: chart data
     562                          PCHARTSTYLE pChartStyle,   // in: chart style
     563                          double dTotal,             // in: sum of all values in pChartData
     564                          LONG lTextColor,           // in: description text color (RGB)
     565                          HRGN* paRegions)           // out: GPI regions for each data item
    566566{
    567567    ULONG       ulYBottomNow = 0;
     
    10961096 */
    10971097
    1098 VOID CleanupBitmap(PCHARTCDATA pChtCData)
     1098static VOID CleanupBitmap(PCHARTCDATA pChtCData)
    10991099{
    11001100    if (pChtCData)
     
    11511151 */
    11521152
    1153 VOID CleanupData(PCHARTCDATA pChtCData)
     1153static VOID CleanupData(PCHARTCDATA pChtCData)
    11541154{
    11551155    if (pChtCData)
     
    12031203 */
    12041204
    1205 VOID SetChartData(HWND hwndChart,
    1206                   PCHARTCDATA pChtCData,
    1207                   PCHARTDATA pcdNew)
     1205static VOID SetChartData(HWND hwndChart,
     1206                         PCHARTCDATA pChtCData,
     1207                         PCHARTDATA pcdNew)
    12081208{
    12091209    ULONG        ul = 0;
     
    12741274 */
    12751275
    1276 VOID PaintChart(HWND hwndChart,
    1277                 PCHARTCDATA pChtCData,
    1278                 HPS hps,
    1279                 PRECTL prclPaint)
     1276static VOID PaintChart(HWND hwndChart,
     1277                       PCHARTCDATA pChtCData,
     1278                       HPS hps,
     1279                       PRECTL prclPaint)
    12801280{
    12811281    RECTL   rclStatic;
     
    14511451 */
    14521452
    1453 LONG FindItemFromPoint(PCHARTCDATA pChtCData,
    1454                        LONG lx,
    1455                        LONG ly)
     1453static LONG FindItemFromPoint(PCHARTCDATA pChtCData,
     1454                              LONG lx,
     1455                              LONG ly)
    14561456{
    14571457    // LONG lRegionFound = -1; // none
     
    14921492 */
    14931493
    1494 VOID SendWMControl(HWND hwndChart,
    1495                    MPARAM mp1Mouse,
    1496                    USHORT usNotify,
    1497                    ULONG ulEmphasis,            // 0 or 1
    1498                    LONG lIndex)
     1494static VOID SendWMControl(HWND hwndChart,
     1495                          MPARAM mp1Mouse,
     1496                          USHORT usNotify,
     1497                          ULONG ulEmphasis,            // 0 or 1
     1498                          LONG lIndex)
    14991499{
    15001500    HWND hwndOwner;
     
    15241524 */
    15251525
    1526 BOOL SetEmphasis(HWND hwndChart,
    1527                  PCHARTCDATA pChtCData,
    1528                  ULONG ulEmphasis,      // in: 0 == selection, 1 == source emphasis
    1529                  MPARAM mp1,            // in: mp1 with mouse values or -1 if none
    1530                  LONG lIndex,
    1531                  BOOL fIsContextMenu)
     1526static BOOL SetEmphasis(HWND hwndChart,
     1527                        PCHARTCDATA pChtCData,
     1528                        ULONG ulEmphasis,      // in: 0 == selection, 1 == source emphasis
     1529                        MPARAM mp1,            // in: mp1 with mouse values or -1 if none
     1530                        LONG lIndex,
     1531                        BOOL fIsContextMenu)
    15321532{
    15331533    BOOL brc = FALSE;
  • trunk/src/helpers/cctl_checkcnr.c

    r74 r142  
    215215 */
    216216
    217 VOID CnrCheckboxClicked(PCHECKBOXCNROWNER pcbco,
    218                         PCHECKBOXRECORDCORE precc,
    219                         BOOL fToggleAndNotify) // if TRUE, toggle state and notify owner (CN_RECORDCHECKED)
     217static VOID CnrCheckboxClicked(PCHECKBOXCNROWNER pcbco,
     218                               PCHECKBOXRECORDCORE precc,
     219                               BOOL fToggleAndNotify) // if TRUE, toggle state and notify owner (CN_RECORDCHECKED)
    220220{
    221221    if (precc->ulStyle & WS_VISIBLE)
     
    838838 */
    839839
    840 ULONG EXPENTRY fncbFindCheckRecord(HWND hwndCnr,             // in: container
    841                                    PRECORDCORE preccThis,    // in: current record (from cnrhForAllRecords)
    842                                    ULONG ulItemID,           // in: item ID to find
    843                                    ULONG ulppRecc)           // out: PRECORDCORE* if found
     840static ULONG EXPENTRY fncbFindCheckRecord(HWND hwndCnr,             // in: container
     841                                          PRECORDCORE preccThis,    // in: current record (from cnrhForAllRecords)
     842                                          ULONG ulItemID,           // in: item ID to find
     843                                          ULONG ulppRecc)           // out: PRECORDCORE* if found
    844844{
    845845    ULONG   ulrc = 0;
  • trunk/src/helpers/cctl_combo.c

    r128 r142  
    125125 */
    126126
    127 VOID PaintButtonBitmap(HWND hwnd,
    128                        PCOMBODATA pcd)
     127static VOID PaintButtonBitmap(HWND hwnd,
     128                              PCOMBODATA pcd)
    129129{
    130130    HPS hps;
     
    157157 */
    158158
    159 MRESULT EXPENTRY fnwpSubclassedComboButton(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     159static MRESULT EXPENTRY fnwpSubclassedComboButton(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    160160{
    161161    MRESULT mrc = 0;
     
    193193 */
    194194
    195 VOID ShowListbox(HWND hwnd,      // in: subclassed entry field
    196                  PCOMBODATA pcd,
    197                  BOOL fShow)    // in: TRUE == show, FALSE == hide
     195static VOID ShowListbox(HWND hwnd,      // in: subclassed entry field
     196                        PCOMBODATA pcd,
     197                        BOOL fShow)    // in: TRUE == show, FALSE == hide
    198198{
    199199    BOOL fHilite = FALSE;
     
    261261 */
    262262
    263 MRESULT EXPENTRY fnwpComboSubclass(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     263static MRESULT EXPENTRY fnwpComboSubclass(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    264264{
    265265    MRESULT     mrc = 0;
  • trunk/src/helpers/cctl_progbar.c

    r21 r142  
    101101 */
    102102
    103 VOID PaintProgress(PPROGRESSBARDATA pData,
    104                    HWND hwndBar,
    105                    PRECTL prclWin,      // in: window rectangle (WinQueryWindowRect)
    106                    HPS hps)
     103static VOID PaintProgress(PPROGRESSBARDATA pData,
     104                          HWND hwndBar,
     105                          PRECTL prclWin,      // in: window rectangle (WinQueryWindowRect)
     106                          HPS hps)
    107107{
    108108    POINTL  ptlText; // , aptlText[TXTBOX_COUNT];
  • trunk/src/helpers/cctl_splitwin.c

    r99 r142  
    9797 */
    9898
    99 VOID PaintSplitWindow(HWND hwndSplit)
     99static VOID PaintSplitWindow(HWND hwndSplit)
    100100{
    101101    HPS     hps = WinBeginPaint(hwndSplit, (HPS)0, NULL);
     
    251251 */
    252252
    253 VOID TrackSplitBar(HWND hwndBar,
    254                    PSPLITBARDATA pData)
     253static VOID TrackSplitBar(HWND hwndBar,
     254                          PSPLITBARDATA pData)
    255255{
    256256    TRACKINFO   track;
     
    400400 */
    401401
    402 VOID PaintSplitBar(HWND hwndBar,
    403                    PSPLITBARDATA pData)
     402static VOID PaintSplitBar(HWND hwndBar,
     403                          PSPLITBARDATA pData)
    404404{
    405405    HPS     hps;
  • trunk/src/helpers/cctl_tooltip.c

    r96 r142  
    135135 */
    136136
    137 BOOL LockSubclassedTools(VOID)
     137static BOOL LockSubclassedTools(VOID)
    138138{
    139139    if (!G_hmtxSubclassedTools)
     
    163163 */
    164164
    165 VOID UnlockSubclassedTools(VOID)
     165static VOID UnlockSubclassedTools(VOID)
    166166{
    167167    DosReleaseMutexSem(G_hmtxSubclassedTools);      // was missing V0.9.12 (2001-05-03) [umoeller]
     
    196196 */
    197197
    198 PSUBCLASSEDTOOL FindSubclassedTool(HWND hwndTool)
     198static PSUBCLASSEDTOOL FindSubclassedTool(HWND hwndTool)
    199199{
    200200    PLISTNODE pNode = lstQueryFirstNode(&G_llSubclassedTools);
     
    285285 */
    286286
    287 BOOL SubclassTool(HWND hwndTooltip,
    288                   HWND hwndTool)
     287static BOOL SubclassTool(HWND hwndTooltip,
     288                         HWND hwndTool)
    289289{
    290290    BOOL    brc = FALSE;
     
    325325 */
    326326
    327 BOOL UnSubclassTool(HWND hwndTool)
     327static BOOL UnSubclassTool(HWND hwndTool)
    328328{
    329329    PSUBCLASSEDTOOL pst = FindSubclassedTool(hwndTool);
     
    406406 */
    407407
    408 VOID UpdateTooltipPresColors(HWND hwndTooltip)      // in: tooltip control
     408static VOID UpdateTooltipPresColors(HWND hwndTooltip)      // in: tooltip control
    409409{
    410410    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    439439 */
    440440
    441 MRESULT TtmCreate(HWND hwndTooltip,
    442                   MPARAM mp2)
     441static MRESULT TtmCreate(HWND hwndTooltip,
     442                         MPARAM mp2)
    443443{
    444444    PTOOLTIPDATA pttd;
     
    510510 */
    511511
    512 BOOL TtmTimer(HWND hwndTooltip, MPARAM mp1)
     512static BOOL TtmTimer(HWND hwndTooltip, MPARAM mp1)
    513513{
    514514    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    553553 */
    554554
    555 VOID TtmPaint(HWND hwndTooltip)
     555static VOID TtmPaint(HWND hwndTooltip)
    556556{
    557557    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    645645 */
    646646
    647 VOID TtmDestroy(HWND hwndTooltip)
     647static VOID TtmDestroy(HWND hwndTooltip)
    648648{
    649649    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    691691 */
    692692
    693 MRESULT TtmAddTool(HWND hwndTooltip, MPARAM mp2)
     693static MRESULT TtmAddTool(HWND hwndTooltip, MPARAM mp2)
    694694{
    695695    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    732732 */
    733733
    734 VOID TtmDelTool(HWND hwndTooltip, MPARAM mp2)
     734static VOID TtmDelTool(HWND hwndTooltip, MPARAM mp2)
    735735{
    736736    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    780780 */
    781781
    782 VOID TtmRelayEvent(HWND hwndTooltip, MPARAM mp2)
     782static VOID TtmRelayEvent(HWND hwndTooltip, MPARAM mp2)
    783783{
    784784    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    854854 */
    855855
    856 MRESULT TtmGetDelayTime(HWND hwndTooltip, MPARAM mp1)
     856static MRESULT TtmGetDelayTime(HWND hwndTooltip, MPARAM mp1)
    857857{
    858858    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    879879 */
    880880
    881 VOID TtmSetDelayTime(HWND hwndTooltip, MPARAM mp1, MPARAM mp2)
     881static VOID TtmSetDelayTime(HWND hwndTooltip, MPARAM mp1, MPARAM mp2)
    882882{
    883883    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    912912 */
    913913
    914 VOID TtmGetText(HWND hwndTooltip, MPARAM mp2)
     914static VOID TtmGetText(HWND hwndTooltip, MPARAM mp2)
    915915{
    916916    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    955955 */
    956956
    957 MRESULT TtmEnumTools(HWND hwndTooltip, MPARAM mp1, MPARAM mp2)
     957static MRESULT TtmEnumTools(HWND hwndTooltip, MPARAM mp1, MPARAM mp2)
    958958{
    959959    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    980980 */
    981981
    982 MRESULT TtmGetCurrentTool(HWND hwndTooltip, MPARAM mp2)
     982static MRESULT TtmGetCurrentTool(HWND hwndTooltip, MPARAM mp2)
    983983{
    984984    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    10031003 */
    10041004
    1005 MRESULT TtmGetToolInfo(HWND hwndTooltip, MPARAM mp2)
     1005static MRESULT TtmGetToolInfo(HWND hwndTooltip, MPARAM mp2)
    10061006{
    10071007    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    10421042 */
    10431043
    1044 VOID FormatTooltip(HWND hwndTooltip,
    1045                    PTOOLTIPDATA pttd,
    1046                    PPOINTL pptlPointer)      // in: current pointer pos or NULL
     1044static VOID FormatTooltip(HWND hwndTooltip,
     1045                          PTOOLTIPDATA pttd,
     1046                          PPOINTL pptlPointer)      // in: current pointer pos or NULL
    10471047{
    10481048    // find out how much space we need
     
    11621162 */
    11631163
    1164 VOID TtmUpdateTipText(HWND hwndTooltip,
    1165                       const char *pcszNewText)
     1164static VOID TtmUpdateTipText(HWND hwndTooltip,
     1165                             const char *pcszNewText)
    11661166{
    11671167    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
     
    12121212 */
    12131213
    1214 VOID TtmShowTooltip(HWND hwndTooltip,
    1215                     BOOL fShow)  // if TRUE: show, else: HIDE
     1214static VOID TtmShowTooltip(HWND hwndTooltip,
     1215                           BOOL fShow)  // if TRUE: show, else: HIDE
    12161216{
    12171217    PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1);
  • trunk/src/helpers/comctl.c

    r132 r142  
    977977 */
    978978
    979 PANIMATIONDATA CreateAnimationData(HAB hab,
    980                                    HWND hwndStatic,
    981                                    USHORT cAnimations)
     979static PANIMATIONDATA CreateAnimationData(HAB hab,
     980                                          HWND hwndStatic,
     981                                          USHORT cAnimations)
    982982{
    983983    PANIMATIONDATA pa = NULL;
  • trunk/src/helpers/debug.c

    r121 r142  
    362362 ********************************************************************/
    363363
    364 int Read16CodeView(FILE *LogFile, PXDEBUGINFO pxdi, int fh, int TrapSeg, int TrapOff, CHAR *FileName);
    365 int Read32PmDebug(FILE *LogFile, PXDEBUGINFO pxdi, int fh, int TrapSeg, int TrapOff, CHAR *FileName);
     364static int Read16CodeView(FILE *LogFile, PXDEBUGINFO pxdi, int fh, int TrapSeg, int TrapOff, CHAR *FileName);
     365static int Read32PmDebug(FILE *LogFile, PXDEBUGINFO pxdi, int fh, int TrapSeg, int TrapOff, CHAR *FileName);
    366366
    367367/*
     
    384384 */
    385385
    386 VOID WriteDebugInfo(FILE *LogFile,              // in: open log file
    387                     PXDEBUGINFO pxdi)           // in: debug info
     386static VOID WriteDebugInfo(FILE *LogFile,              // in: open log file
     387                           PXDEBUGINFO pxdi)           // in: debug info
    388388{
    389389    fprintf(LogFile,
     
    617617 */
    618618
    619 int Read32PmDebug(FILE *LogFile,        // in: text log file to write to
    620                   PXDEBUGINFO pxdi,
    621                   int ModuleFile,       // in: module file opened with sopen()
    622                   int TrapSeg,
    623                   int TrapOff,
    624                   CHAR *FileName)
     619static int Read32PmDebug(FILE *LogFile,        // in: text log file to write to
     620                         PXDEBUGINFO pxdi,
     621                         int ModuleFile,       // in: module file opened with sopen()
     622                         int TrapSeg,
     623                         int TrapOff,
     624                         CHAR *FileName)
    625625{
    626626    static unsigned int CurrSymSeg, NrSymbol,
     
    10491049 */
    10501050
    1051 int Read16CodeView(FILE *LogFile,       // in: text log file to write to
    1052                    PXDEBUGINFO pxdi,
    1053                    int fh,
    1054                    int TrapSeg,
    1055                    int TrapOff,
    1056                    CHAR *FileName)
     1051static int Read16CodeView(FILE *LogFile,       // in: text log file to write to
     1052                          PXDEBUGINFO pxdi,
     1053                          int fh,
     1054                          int TrapSeg,
     1055                          int TrapOff,
     1056                          CHAR *FileName)
    10571057{
    10581058    static unsigned short int offset,
     
    12141214 */
    12151215
    1216 VOID var_value(void *varptr,        // in: address of the variable on the stack
    1217                char *pszBuf,        // out: information
    1218                BYTE type)           // in: type; if >= 32, we'll call DosQueryMem
     1216static VOID var_value(void *varptr,        // in: address of the variable on the stack
     1217                      char *pszBuf,        // out: information
     1218                      BYTE type)           // in: type; if >= 32, we'll call DosQueryMem
    12191219{
    12201220    ULONG           Size = 1,
     
    12981298 */
    12991299
    1300 BOOL search_userdefs(FILE *LogFile,     // in: text log file to write to
    1301                      ULONG stackofs,
    1302                      USHORT var_no)
     1300static BOOL search_userdefs(FILE *LogFile,     // in: text log file to write to
     1301                            ULONG stackofs,
     1302                            USHORT var_no)
    13031303{
    13041304    USHORT          pos;
     
    13421342 */
    13431343
    1344 BOOL search_pointers(FILE *LogFile,     // in: text log file to write to
    1345                      ULONG stackofs,
    1346                      USHORT var_no)
     1344static BOOL search_pointers(FILE *LogFile,     // in: text log file to write to
     1345                            ULONG stackofs,
     1346                            USHORT var_no)
    13471347{
    13481348    USHORT          pos, upos;
  • trunk/src/helpers/dialog.c

    r137 r142  
    230230#define PM_GROUP_SPACING_TOP        16
    231231
    232 APIRET ProcessTable(PTABLEDEF pTableDef,
    233                     const CONTROLPOS *pcpTable,
    234                     PROCESSMODE ProcessMode,
    235                     PDLGPRIVATE pDlgData);
     232static APIRET ProcessTable(PTABLEDEF pTableDef,
     233                           const CONTROLPOS *pcpTable,
     234                           PROCESSMODE ProcessMode,
     235                           PDLGPRIVATE pDlgData);
    236236
    237237/*
     
    241241 */
    242242
    243 VOID SetDlgFont(PCONTROLDEF pControlDef,
    244                 PDLGPRIVATE pDlgData)
     243static VOID SetDlgFont(PCONTROLDEF pControlDef,
     244                       PDLGPRIVATE pDlgData)
    245245{
    246246    LONG lPointSize = 0;
     
    307307 */
    308308
    309 APIRET CalcAutoSizeText(PCONTROLDEF pControlDef,
    310                         BOOL fMultiLine,          // in: if TRUE, multiple lines
    311                         ULONG ulWidth,            // in: proposed width of control
    312                         PSIZEL pszlAuto,          // out: computed size
    313                         PDLGPRIVATE pDlgData)
     309static APIRET CalcAutoSizeText(PCONTROLDEF pControlDef,
     310                               BOOL fMultiLine,          // in: if TRUE, multiple lines
     311                               ULONG ulWidth,            // in: proposed width of control
     312                               PSIZEL pszlAuto,          // out: computed size
     313                               PDLGPRIVATE pDlgData)
    314314{
    315315    APIRET arc = NO_ERROR;
     
    373373 */
    374374
    375 APIRET CalcAutoSize(PCONTROLDEF pControlDef,
    376                     ULONG ulWidth,            // in: proposed width of control
    377                     PSIZEL pszlAuto,          // out: computed size
    378                     PDLGPRIVATE pDlgData)
     375static APIRET CalcAutoSize(PCONTROLDEF pControlDef,
     376                           ULONG ulWidth,            // in: proposed width of control
     377                           PSIZEL pszlAuto,          // out: computed size
     378                           PDLGPRIVATE pDlgData)
    379379{
    380380    APIRET arc = NO_ERROR;
     
    476476 */
    477477
    478 APIRET ColumnCalcSizes(PCOLUMNDEF pColumnDef,
    479                        PROCESSMODE ProcessMode,     // in: PROCESS_1_CALC_SIZES or PROCESS_3_CALC_FINAL_TABLE_SIZES
    480                        PDLGPRIVATE pDlgData)
     478static APIRET ColumnCalcSizes(PCOLUMNDEF pColumnDef,
     479                              PROCESSMODE ProcessMode,     // in: PROCESS_1_CALC_SIZES or PROCESS_3_CALC_FINAL_TABLE_SIZES
     480                              PDLGPRIVATE pDlgData)
    481481{
    482482    APIRET arc = NO_ERROR;
     
    602602 */
    603603
    604 APIRET ColumnCalcPositions(PCOLUMNDEF pColumnDef,
    605                            PROWDEF pOwningRow,          // in: current row from ProcessRow
    606                            PLONG plX,                   // in/out: PROCESS_4_CALC_POSITIONS only
    607                            PDLGPRIVATE pDlgData)
     604static APIRET ColumnCalcPositions(PCOLUMNDEF pColumnDef,
     605                                  PROWDEF pOwningRow,          // in: current row from ProcessRow
     606                                  PLONG plX,                   // in/out: PROCESS_4_CALC_POSITIONS only
     607                                  PDLGPRIVATE pDlgData)
    608608{
    609609    APIRET arc = NO_ERROR;
     
    689689 */
    690690
    691 APIRET ColumnCreateControls(PCOLUMNDEF pColumnDef,
    692                             PDLGPRIVATE pDlgData)
     691static APIRET ColumnCreateControls(PCOLUMNDEF pColumnDef,
     692                                   PDLGPRIVATE pDlgData)
    693693{
    694694    APIRET      arc = NO_ERROR;
     
    977977 */
    978978
    979 APIRET ProcessColumn(PCOLUMNDEF pColumnDef,
    980                      PROWDEF pOwningRow,          // in: current row from ProcessRow
    981                      PROCESSMODE ProcessMode,     // in: processing mode (see ProcessAll)
    982                      PLONG plX,                   // in/out: PROCESS_4_CALC_POSITIONS only
    983                      PDLGPRIVATE pDlgData)
     979static APIRET ProcessColumn(PCOLUMNDEF pColumnDef,
     980                            PROWDEF pOwningRow,          // in: current row from ProcessRow
     981                            PROCESSMODE ProcessMode,     // in: processing mode (see ProcessAll)
     982                            PLONG plX,                   // in/out: PROCESS_4_CALC_POSITIONS only
     983                            PDLGPRIVATE pDlgData)
    984984{
    985985    APIRET arc = NO_ERROR;
     
    11271127 */
    11281128
    1129 APIRET ProcessRow(PROWDEF pRowDef,
    1130                   PTABLEDEF pOwningTable,     // in: current table from ProcessTable
    1131                   PROCESSMODE ProcessMode,    // in: processing mode (see ProcessAll)
    1132                   PLONG plY,                  // in/out: current y position (decremented)
    1133                   PDLGPRIVATE pDlgData)
     1129static APIRET ProcessRow(PROWDEF pRowDef,
     1130                         PTABLEDEF pOwningTable,     // in: current table from ProcessTable
     1131                         PROCESSMODE ProcessMode,    // in: processing mode (see ProcessAll)
     1132                         PLONG plY,                  // in/out: current y position (decremented)
     1133                         PDLGPRIVATE pDlgData)
    11341134{
    11351135    APIRET  arc = NO_ERROR;
     
    12041204 */
    12051205
    1206 APIRET ProcessTable(PTABLEDEF pTableDef,
    1207                     const CONTROLPOS *pcpTable,       // in: table position with PROCESS_4_CALC_POSITIONS
    1208                     PROCESSMODE ProcessMode,          // in: processing mode (see ProcessAll)
    1209                     PDLGPRIVATE pDlgData)
     1206static APIRET ProcessTable(PTABLEDEF pTableDef,
     1207                           const CONTROLPOS *pcpTable,       // in: table position with PROCESS_4_CALC_POSITIONS
     1208                           PROCESSMODE ProcessMode,          // in: processing mode (see ProcessAll)
     1209                           PDLGPRIVATE pDlgData)
    12101210{
    12111211    APIRET  arc = NO_ERROR;
     
    12971297 */
    12981298
    1299 APIRET ProcessAll(PDLGPRIVATE pDlgData,
    1300                   PROCESSMODE ProcessMode)
     1299static APIRET ProcessAll(PDLGPRIVATE pDlgData,
     1300                         PROCESSMODE ProcessMode)
    13011301{
    13021302    APIRET arc = NO_ERROR;
     
    13531353 */
    13541354
    1355 APIRET CreateColumn(PROWDEF pCurrentRow,
    1356                     BOOL fIsNestedTable,
    1357                     PVOID pvDefinition,       // in: either PTABLEDEF or PCONTROLDEF
    1358                     PCOLUMNDEF *ppColumnDef)    // out: new COLUMNDEF
     1355static APIRET CreateColumn(PROWDEF pCurrentRow,
     1356                           BOOL fIsNestedTable,
     1357                           PVOID pvDefinition,       // in: either PTABLEDEF or PCONTROLDEF
     1358                           PCOLUMNDEF *ppColumnDef)    // out: new COLUMNDEF
    13591359{
    13601360    APIRET arc = NO_ERROR;
     
    13991399 */
    14001400
    1401 VOID FreeTable(PTABLEDEF pTable)
     1401static VOID FreeTable(PTABLEDEF pTable)
    14021402{
    14031403    // for each table, clean up the rows
     
    14571457 */
    14581458
    1459 APIRET Dlg0_Init(PDLGPRIVATE *ppDlgData,
    1460                  PCSZ pcszControlsFont)
     1459static APIRET Dlg0_Init(PDLGPRIVATE *ppDlgData,
     1460                        PCSZ pcszControlsFont)
    14611461{
    14621462    PDLGPRIVATE pDlgData;
     
    14801480 */
    14811481
    1482 APIRET Dlg1_ParseTables(PDLGPRIVATE pDlgData,
    1483                         PCDLGHITEM paDlgItems,      // in: definition array
    1484                         ULONG cDlgItems)           // in: array item count (NOT array size)
     1482static APIRET Dlg1_ParseTables(PDLGPRIVATE pDlgData,
     1483                               PCDLGHITEM paDlgItems,      // in: definition array
     1484                               ULONG cDlgItems)           // in: array item count (NOT array size)
    14851485{
    14861486    APIRET      arc = NO_ERROR;
     
    16511651 */
    16521652
    1653 APIRET Dlg2_CalcSizes(PDLGPRIVATE pDlgData)
     1653static APIRET Dlg2_CalcSizes(PDLGPRIVATE pDlgData)
    16541654{
    16551655    APIRET arc;
     
    16861686 */
    16871687
    1688 APIRET Dlg3_PositionAndCreate(PDLGPRIVATE pDlgData,
    1689                               HWND *phwndFocusItem)       // out: item to give focus to
     1688static APIRET Dlg3_PositionAndCreate(PDLGPRIVATE pDlgData,
     1689                                     HWND *phwndFocusItem)       // out: item to give focus to
    16901690{
    16911691    APIRET arc = NO_ERROR;
     
    17351735 */
    17361736
    1737 VOID Dlg9_Cleanup(PDLGPRIVATE *ppDlgData)
     1737static VOID Dlg9_Cleanup(PDLGPRIVATE *ppDlgData)
    17381738{
    17391739    PDLGPRIVATE pDlgData;
  • trunk/src/helpers/dosh.c

    r137 r142  
    30463046
    30473047    strcpy(szFilename, pszExisting);
    3048     pszLastDot = strrchr(szFilename, '.');
    3049     if (!pszLastDot)
     3048
     3049    if (!(pszLastDot = strrchr(szFilename, '.')))
    30503050        // no dot in filename:
    30513051        pszLastDot = szFilename + strlen(szFilename);
     3052
    30523053    do
    30533054    {
     
    34153416    {
    34163417        ULONG   cbBuf = CCHMAXPATH - 3;
    3417         *pszBuf = ulCurDisk + 'A' - 1;
    3418         *(pszBuf + 1) = ':';
    3419         *(pszBuf + 2) = '\\';
     3418        pszBuf[0] = ulCurDisk + 'A' - 1;
     3419        pszBuf[1] = ':';
     3420        pszBuf[2] = '\\';
     3421        pszBuf[3] = '\0';
    34203422        arc = DosQueryCurrentDir(0, pszBuf + 3, &cbBuf);
    34213423    }
     
    39813983 */
    39823984
    3983 VOID GetInfoSegs(VOID)
     3985static VOID GetInfoSegs(VOID)
    39843986{
    39853987    SEL     GlobalInfoSegSelector,
  • trunk/src/helpers/dosh2.c

    r135 r142  
    368368 */
    369369
    370 APIRET CopyToBuffer(PSZ pszTarget,      // out: target buffer
    371                     PCSZ pcszSource,    // in: source string
    372                     ULONG cbTarget)     // in: size of target buffer
     370static APIRET CopyToBuffer(PSZ pszTarget,      // out: target buffer
     371                           PCSZ pcszSource,    // in: source string
     372                           ULONG cbTarget)     // in: size of target buffer
    373373{
    374374    ULONG ulLength = strlen(pcszSource);
     
    485485 */
    486486
    487 APIRET FindFile(const char *pcszCommand,      // in: command (e.g. "lvm")
    488                 PSZ pszExecutable,            // out: full path (e.g. "F:\os2\lvm.exe")
    489                 ULONG cbExecutable)           // in: sizeof (*pszExecutable)
     487static APIRET FindFile(const char *pcszCommand,      // in: command (e.g. "lvm")
     488                       PSZ pszExecutable,            // out: full path (e.g. "F:\os2\lvm.exe")
     489                       ULONG cbExecutable)           // in: sizeof (*pszExecutable)
    490490{
    491491    APIRET arc = NO_ERROR;
     
    784784 */
    785785
    786 APIRET AppendPartition(PARTITIONINFO **pppiFirst,
    787                        PARTITIONINFO **pppiThis,    // in/out: partition info; pointer will be advanced
    788                        PUSHORT posCount,            // in/out: partition count
    789                        BYTE bDisk,                  // in: disk of partition
    790                        const char *pszBootName,     // in: boot partition name
    791                        CHAR cLetter,                // in/out: drive letter
    792                        BYTE bFsType,                // in: file system type
    793                        BOOL fPrimary,               // in: primary?
    794                        BOOL fBootable,
    795                        ULONG ulSectors)             // in: no. of sectors
     786static APIRET AppendPartition(PARTITIONINFO **pppiFirst,
     787                              PARTITIONINFO **pppiThis,    // in/out: partition info; pointer will be advanced
     788                              PUSHORT posCount,            // in/out: partition count
     789                              BYTE bDisk,                  // in: disk of partition
     790                              const char *pszBootName,     // in: boot partition name
     791                              CHAR cLetter,                // in/out: drive letter
     792                              BYTE bFsType,                // in: file system type
     793                              BOOL fPrimary,               // in: primary?
     794                              BOOL fBootable,
     795                              ULONG ulSectors)             // in: no. of sectors
    796796{
    797797    APIRET arc = NO_ERROR;
     
    10131013 */
    10141014
    1015 APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst,
    1016                             PARTITIONINFO **pppiThis,
    1017                             PUSHORT posCount,       // in/out: partition count
    1018                             PCHAR pcLetter,         // in/out: drive letter counter
    1019                             UINT BmDisk,            // in: physical disk (1, 2, 3, ...) of boot manager or null
    1020                             PAR_INFO* pBmInfo,      // in: info returned by doshGetBootManager or NULL
    1021                             UINT iDisk)             // in: system's physical disk count
     1015static APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst,
     1016                                   PARTITIONINFO **pppiThis,
     1017                                   PUSHORT posCount,       // in/out: partition count
     1018                                   PCHAR pcLetter,         // in/out: drive letter counter
     1019                                   UINT BmDisk,            // in: physical disk (1, 2, 3, ...) of boot manager or null
     1020                                   PAR_INFO* pBmInfo,      // in: info returned by doshGetBootManager or NULL
     1021                                   UINT iDisk)             // in: system's physical disk count
    10221022{
    10231023    APIRET  arc = NO_ERROR;
     
    11001100 */
    11011101
    1102 APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst,
    1103                         PARTITIONINFO **pppiThis,
    1104                         PUSHORT posCount,
    1105                         PCHAR pcLetter,
    1106                         PAR_INFO* PrInfo,                    // in: MBR entry of extended partition
    1107                         UINT PrDisk,
    1108                         PAR_INFO* BmInfo)
     1102static APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst,
     1103                               PARTITIONINFO **pppiThis,
     1104                               PUSHORT posCount,
     1105                               PCHAR pcLetter,
     1106                               PAR_INFO* PrInfo,                    // in: MBR entry of extended partition
     1107                               UINT PrDisk,
     1108                               PAR_INFO* BmInfo)
    11091109{
    11101110    APIRET          arc = NO_ERROR;
     
    11891189 */
    11901190
    1191 APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst,
    1192                             PARTITIONINFO **pppiThis,
    1193                             PUSHORT posCount,
    1194                             PCHAR pcLetter,
    1195                             PAR_INFO* BmInfo,
    1196                             UINT iDisk)                // in: disk to query
     1191static APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst,
     1192                                   PARTITIONINFO **pppiThis,
     1193                                   PUSHORT posCount,
     1194                                   PCHAR pcLetter,
     1195                                   PAR_INFO* BmInfo,
     1196                                   UINT iDisk)                // in: disk to query
    11971197{
    11981198    APIRET          arc = NO_ERROR;
     
    12341234 */
    12351235
    1236 APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos,
    1237                            USHORT *pcPartitions,
    1238                            PUSHORT pusContext)              // out: error context
     1236static APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos,
     1237                                  USHORT *pcPartitions,
     1238                                  PUSHORT pusContext)              // out: error context
    12391239{
    12401240    APIRET          arc = NO_ERROR;
     
    13071307 */
    13081308
    1309 VOID CleanPartitionInfos(PPARTITIONINFO ppiThis)
     1309static VOID CleanPartitionInfos(PPARTITIONINFO ppiThis)
    13101310{
    13111311    while (ppiThis)
     
    20142014 */
    20152015
    2016 BOOL PerformMatch(PCSZ pMask,
    2017                   PCSZ pName,
    2018                   int fHasDot)
     2016static BOOL PerformMatch(PCSZ pMask,
     2017                         PCSZ pName,
     2018                         int fHasDot)
    20192019{
    20202020    while (TRUE)
  • trunk/src/helpers/exeh.c

    r140 r142  
    546546 */
    547547
    548 VOID ParseBldLevel(PEXECUTABLE pExec)
     548static VOID ParseBldLevel(PEXECUTABLE pExec)
    549549{
    550550    PCSZ    pStartOfVendor,
     
    703703 *      and pszInfo fields are also set. In the above examples,
    704704 *      this would return the following information:
     705 *
    705706 +          pszVendor = "Ulrich M”ller"
    706707 +          pszVersion = "0.9.0"
    707708 +          pszInfo = "XWorkplace Sound Support Module"
     709 *
     710 *      See ParseBldLevel for extended formats.
    708711 *
    709712 *      If that string is not in BLDLEVEL format, only
     
    10131016 */
    10141017
    1015 APIRET ScanLXEntryTable(PEXECUTABLE pExec,
    1016                         PFSYSFUNCTION paFunctions,
    1017                         PULONG pcEntries)        // out: entry table entry count; ptr can be NULL
     1018static APIRET ScanLXEntryTable(PEXECUTABLE pExec,
     1019                               PFSYSFUNCTION paFunctions,
     1020                               PULONG pcEntries)        // out: entry table entry count; ptr can be NULL
    10181021{
    10191022    ULONG  ulDummy;
     
    12541257 */
    12551258
    1256 APIRET ScanNEEntryTable(PEXECUTABLE pExec,
    1257                         PFSYSFUNCTION paFunctions,
    1258                         PULONG pcEntries)        // out: entry table entry count; ptr can be NULL
     1259static APIRET ScanNEEntryTable(PEXECUTABLE pExec,
     1260                               PFSYSFUNCTION paFunctions,
     1261                               PULONG pcEntries)        // out: entry table entry count; ptr can be NULL
    12591262{
    12601263    ULONG  ulDummy;
     
    13491352 */
    13501353
    1351 int _Optlink Compare(const void *key,
    1352                      const void *element)
     1354static int _Optlink Compare(const void *key,
     1355                            const void *element)
    13531356{
    13541357    USHORT        usOrdinal = *((PUSHORT) key);
     
    13781381 */
    13791382
    1380 APIRET ScanNameTable(PEXECUTABLE pExec,
    1381                      ULONG cFunctions,
    1382                      PFSYSFUNCTION paFunctions)
     1383static APIRET ScanNameTable(PEXECUTABLE pExec,
     1384                            ULONG cFunctions,
     1385                            PFSYSFUNCTION paFunctions)
    13831386{
    13841387    ULONG   ulDummy;
     
    21352138 */
    21362139
    2137 APIRET ExpandIterdata1(char *pabTarget,         // out: page data (pagesize as in lx spec)
    2138                        int cbTarget,            // in: sizeof *pabTarget (pagesize as in lx spec)
    2139                        const char *pabSource,   // in: compressed source data in EXEPACK:1 format
    2140                        int cbSource)            // in: sizeof *pabSource
     2140static APIRET ExpandIterdata1(char *pabTarget,         // out: page data (pagesize as in lx spec)
     2141                              int cbTarget,            // in: sizeof *pabTarget (pagesize as in lx spec)
     2142                              const char *pabSource,   // in: compressed source data in EXEPACK:1 format
     2143                              int cbSource)            // in: sizeof *pabSource
    21412144{
    21422145    PLXITER             pIter = (PLXITER)pabSource;
     
    22002203 */
    22012204
    2202 void memcpyw(char *pch1, const char *pch2, size_t cch)
     2205static void memcpyw(char *pch1, const char *pch2, size_t cch)
    22032206{
    22042207    /*
     
    22342237 */
    22352238
    2236 void memcpyb(char *pch1, const char *pch2, size_t cch)
     2239static void memcpyb(char *pch1, const char *pch2, size_t cch)
    22372240{
    22382241    /*
     
    22612264 *      (C) Knut Stange Osmundsen. Used with permission.
    22622265 *
     2266 *      Note that we call special (slow) memcpy versions
     2267 *      here because the standard memcpy will fail on
     2268 *      certain bit combinations here for some unknown
     2269 *      reason.
     2270 *
    22632271 *@@added V0.9.16 (2001-12-08) [umoeller]
    22642272 */
    22652273
    2266 APIRET ExpandIterdata2(char *pachPage,
    2267                        int cchPage,
    2268                        const char *pachSrcPage,
    2269                        int cchSrcPage)
     2274static APIRET ExpandIterdata2(char *pachPage,              // out: page data (pagesize as in lx spec)
     2275                              int cchPage,                 // in: sizeof *pachPage (pagesize as in lx spec)
     2276                              const char *pachSrcPage,     // in: compressed source data in EXEPACK:1 format
     2277                              int cchSrcPage)              // in: size of source buf
    22702278{
    22712279    char *          pachDestPage = pachPage; /* Store the pointer for boundrary checking. */
     
    24792487 */
    24802488
    2481 APIRET GetOfsFromPageTableIndex(PEXECUTABLE pExec,   // in: executable from exehOpen
    2482                                 ULONG ulObjPageTblIndexThis,  // in: object page table index to look for
    2483                                 PULONG pulFlags,        // out: page flags
    2484                                 PULONG pulSize,         // out: page size
    2485                                 PULONG pulPageOfs)      // out: page ofs (add pLXHeader->ulDataPagesOfs to this)
     2489static APIRET GetOfsFromPageTableIndex(PEXECUTABLE pExec,   // in: executable from exehOpen
     2490                                       ULONG ulObjPageTblIndexThis,  // in: object page table index to look for
     2491                                       PULONG pulFlags,        // out: page flags
     2492                                       PULONG pulSize,         // out: page size
     2493                                       PULONG pulPageOfs)      // out: page ofs (add pLXHeader->ulDataPagesOfs to this)
    24862494{
    24872495    OBJECTPAGETABLEENTRY *pObjPageTblEntry;
     
    25092517 *      loads and possibly unpacks one LX page.
    25102518 *
     2519 *      In order to reduce memory allocations, the
     2520 *      caller is responsible for allocating a temp
     2521 *      buffer, which must be passed in with
     2522 *      pabCompressed.
     2523 *
     2524 *      Returns:
     2525 *
     2526 *      --  NO_ERROR: pbData was filled with data,
     2527 *          which is pLXHeader->ulPageSize in size.
     2528 *
     2529 *      --  ERROR_INVALID_SEGMENT_NUMBER: segment
     2530 *          number is out of range.
     2531 *
     2532 *      --  ERROR_BAD_FORMAT: compressed page data
     2533 *          is screwed somehow, or page size is
     2534 *          too large.
     2535 *
     2536 *      plus the error codes of doshReadAt.
     2537 *
    25112538 *@@added V0.9.16 (2002-01-05) [umoeller]
    25122539 */
    25132540
    2514 APIRET exehReadLXPage(PEXECUTABLE pExec,
    2515                       ULONG ulObjPageTblIndex,
     2541APIRET exehReadLXPage(PEXECUTABLE pExec,        // in: executable from exehOpen
     2542                      ULONG ulObjPageTblIndex,  // in: page table index to read
    25162543                      ULONG ulExeOffset,        // in: for resources, pLXHeader->ulDataPagesOfs
    25172544                      PBYTE pabCompressed,      // in: ptr to temp buffer which must be
    25182545                                                // pLXHeader->ulPageSize + 4 bytes in size
    2519                       PBYTE pbData)             // in: ptr to buffer which receives actual
     2546                      PBYTE pbData)             // out: ptr to buffer which receives actual
    25202547                                                // uncompressed page data (pLXHeader->ulPageSize)
    25212548{
     
    26172644 *      --  ERROR_NOT_ENOUGH_MEMORY
    26182645 *
    2619  *      --  ERROR_INVALID_SEGMENT_NUMBER
    2620  *
    2621  *      --  ERROR_BAD_FORMAT: cannot handle resource
    2622  *          format (probably error in decompression
    2623  *          code).
    2624  *
    2625  *      plus the error codes from doshReadAt.
     2646 *      plus the error codes from exehReadLXPage.
    26262647 *
    26272648 *@@added V0.9.16 (2001-12-08) [umoeller]
     
    31433164            {
    31443165                free(pThis);
    3145                 pThis = NULL;
     3166                *papsz[ul] = NULL;
    31463167            }
    31473168        }
  • trunk/src/helpers/gpih.c

    r140 r142  
    208208 */
    209209
    210 VOID HackColor(PBYTE pb, double dFactor)
     210static VOID HackColor(PBYTE pb, double dFactor)
    211211{
    212212    ULONG ul = (ULONG)((double)(*pb) * dFactor);
  • trunk/src/helpers/memdebug.c

    r133 r142  
    223223 */
    224224
    225 VOID LogError(const char *pcszFormat,     // in: format string (like with printf)
    226               ...)                        // in: additional stuff (like with printf)
     225static VOID LogError(const char *pcszFormat,     // in: format string (like with printf)
     226                     ...)                        // in: additional stuff (like with printf)
    227227{
    228228    if (G_pMemdLogFunc)
     
    244244 */
    245245
    246 PHEAPITEM FindHeapItem(void *p)
     246static PHEAPITEM FindHeapItem(void *p)
    247247{
    248248    return ((PHEAPITEM)treeFind(G_pHeapItemsRoot,
     
    257257 */
    258258
    259 VOID FillHeapItem(PHEAPITEM pHeapItem,
    260                   void *prc,
    261                   size_t stSize,
    262                   const char *pcszSourceFile, // in: source file name
    263                   unsigned long ulLine,       // in: source line
    264                   const char *pcszFunction)   // in: function name
     259static VOID FillHeapItem(PHEAPITEM pHeapItem,
     260                         void *prc,
     261                         size_t stSize,
     262                         const char *pcszSourceFile, // in: source file name
     263                         unsigned long ulLine,       // in: source line
     264                         const char *pcszFunction)   // in: function name
    265265{
    266266    pHeapItem->ulSize = stSize;
     
    287287 */
    288288
    289 VOID CheckMagics(const char *pcszParentFunc,
    290                  PHEAPITEM pHeapItem,
    291                  PBYTE p,
    292                  const char *pcszSourceFile, // in: source file name
    293                  unsigned long ulLine,       // in: source line
    294                  const char *pcszFunction)   // in: function name
     289static VOID CheckMagics(const char *pcszParentFunc,
     290                        PHEAPITEM pHeapItem,
     291                        PBYTE p,
     292                        const char *pcszSourceFile, // in: source file name
     293                        unsigned long ulLine,       // in: source line
     294                        const char *pcszFunction)   // in: function name
    295295{
    296296    void    *pBeforeMagic = ((PBYTE)p) - sizeof(MEMBLOCKMAGIC_HEAD);
  • trunk/src/helpers/memdebug_win.c

    r123 r142  
    201201
    202202    /*
    203      *@@ memdCreateRecordsVAC:
     203     *@@ CreateRecordsVAC:
    204204     *
    205205     *@@added V0.9.3 (2000-04-10) [umoeller]
    206206     */
    207207
    208     VOID memdCreateRecordsVAC(HWND hwndCnr)
     208    VOID CreateRecordsVAC(HWND hwndCnr)
    209209    {
    210210        // count heap items
     
    267267
    268268/*
    269  *@@ memdCreateRecords:
     269 *@@ CreateRecords:
    270270 *
    271271 *@@added V0.9.3 (2000-04-10) [umoeller]
    272272 */
    273273
    274 VOID memdCreateRecords(HWND hwndCnr,
    275                        PULONG pulTotalItems,
    276                        PULONG pulAllocatedItems,
    277                        PULONG pulFreedItems,
    278                        PULONG pulTotalBytes,
    279                        PULONG pulAllocatedBytes,
    280                        PULONG pulFreedBytes)
     274static VOID CreateRecords(HWND hwndCnr,
     275                          PULONG pulTotalItems,
     276                          PULONG pulAllocatedItems,
     277                          PULONG pulFreedItems,
     278                          PULONG pulTotalBytes,
     279                          PULONG pulAllocatedBytes,
     280                          PULONG pulFreedBytes)
    281281{
    282282    // count heap items
     
    411411 */
    412412
    413 SHORT EXPENTRY mnu_fnCompareIndex(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
     413static SHORT EXPENTRY mnu_fnCompareIndex(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
    414414{
    415415    pStorage = pStorage; // to keep the compiler happy
     
    429429 */
    430430
    431 SHORT EXPENTRY mnu_fnCompareSourceFile(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
     431static SHORT EXPENTRY mnu_fnCompareSourceFile(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
    432432{
    433433    HAB habDesktop = WinQueryAnchorBlock(HWND_DESKTOP);
     
    458458 */
    459459
    460 SHORT EXPENTRY mnu_fnCompareSize(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
     460static SHORT EXPENTRY mnu_fnCompareSize(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
    461461{
    462462    pStorage = pStorage; // to keep the compiler happy
     
    478478 */
    479479
    480 SHORT EXPENTRY mnu_fnCompareAddress(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
     480static SHORT EXPENTRY mnu_fnCompareAddress(PMEMRECORD pmrc1, PMEMRECORD  pmrc2, PVOID pStorage)
    481481{
    482482    pStorage = pStorage; // to keep the compiler happy
     
    512512 */
    513513
    514 MRESULT EXPENTRY memd_fnwpMemDebug(HWND hwndClient, ULONG msg, MPARAM mp1, MPARAM mp2)
     514static MRESULT EXPENTRY memd_fnwpMemDebug(HWND hwndClient, ULONG msg, MPARAM mp1, MPARAM mp2)
    515515{
    516516    MRESULT mrc = 0;
     
    612612                    }
    613613
    614                     memdCreateRecords(hwndCnr,
    615                                       &ulTotalItems,
    616                                       &ulAllocatedItems,
    617                                       &ulFreedItems,
    618                                       &ulTotalBytes,
    619                                       &ulAllocatedBytes,
    620                                       &ulFreedBytes);
     614                    CreateRecords(hwndCnr,
     615                                  &ulTotalItems,
     616                                  &ulAllocatedItems,
     617                                  &ulFreedItems,
     618                                  &ulTotalBytes,
     619                                  &ulAllocatedBytes,
     620                                  &ulFreedBytes);
    621621
    622622                    BEGIN_CNRINFO()
  • trunk/src/helpers/nls.c

    r136 r142  
    2222
    2323/*
    24  *      Copyright (C) 1997-2001 Ulrich M”ller.
     24 *      Copyright (C) 1997-2002 Ulrich M”ller.
    2525 *      This file is part of the "XWorkplace helpers" source package.
    2626 *      This is free software; you can redistribute it and/or modify
     
    268268
    269269    nlsDateTime(pszBuf,
    270                  NULL,          // no time
    271                  &dt,
    272                  ulDateFormat,
    273                  cDateSep,
    274                  0, 0);         // no time
     270                NULL,          // no time
     271                &dt,
     272                ulDateFormat,
     273                cDateSep,
     274                0, 0);         // no time
    275275}
    276276
     
    326326 *@@added V0.9.0 (99-11-07) [umoeller]
    327327 *@@changed V0.9.16 (2001-12-05) [pr]: fixed AM/PM hour bug
     328 *@@changed V0.9.18 (2002-02-13) [umoeller]: fixed AM/PM hour bug fix
    328329 */
    329330
     
    387388            if (pDateTime->hours >= 12)  // V0.9.16 (2001-12-05) [pr] if (pDateTime->hours > 12)
    388389            {
     390                // yeah cool Paul, now we get 00:20 PM if it's 20 past noon
     391                // V0.9.18 (2002-02-13) [umoeller]
     392                ULONG ulHours;
     393                if (!(ulHours = pDateTime->hours % 12))
     394                    ulHours = 12;
     395
    389396                // >= 12h: PM.
    390397                PrfQueryProfileString(HINI_USER,
     
    395402                sprintf(pszTime, "%02d%c%02d%c%02d %s",
    396403                        // leave 12 == 12 (not 0)
    397                         pDateTime->hours % 12,
     404                        ulHours,
    398405                            cTimeSep,
    399406                        pDateTime->minutes,
  • trunk/src/helpers/semaphores.c

    r113 r142  
    171171 */
    172172
    173 APIRET LockGlobal(VOID)
     173static APIRET LockGlobal(VOID)
    174174{
    175175    if (!G_hmtxGlobal)
     
    188188 */
    189189
    190 VOID UnlockGlobal(VOID)
     190static VOID UnlockGlobal(VOID)
    191191{
    192192    DosReleaseMutexSem(G_hmtxGlobal);
  • trunk/src/helpers/shapewin.c

    r110 r142  
    308308 */
    309309
    310 void spanFree(PSHPSPAN pSpan)
     310static void spanFree(PSHPSPAN pSpan)
    311311{
    312312    if (pSpan != NULL)
     
    319319 */
    320320
    321 PSHPSPAN spanCreate(void)
     321static PSHPSPAN spanCreate(void)
    322322{
    323323    PSHPSPAN pSpan;
     
    342342 */
    343343
    344 PSHPSPAN spanExpand(PSHPSPAN pOld)
     344static PSHPSPAN spanExpand(PSHPSPAN pOld)
    345345{
    346346    PSHPSPAN pNew;
     
    369369 */
    370370
    371 PSHPSPAN spanAppend(PSHPSPAN pSpan,
    372                     int y,       // bottom y; top y = y+1
    373                     int x1,      // left x
    374                     int x2)      // right x
     371static PSHPSPAN spanAppend(PSHPSPAN pSpan,
     372                           int y,       // bottom y; top y = y+1
     373                           int x1,      // left x
     374                           int x2)      // right x
    375375{
    376376    int     i;
     
    425425     */
    426426
    427     BOOL ptisin(PSHPSPAN pSpan, int x, int y)
     427    static BOOL ptisin(PSHPSPAN pSpan, int x, int y)
    428428    {
    429429        int     i;
     
    453453     */
    454454
    455     void dumpSpan(PSHPSPAN pSpan)
     455    static void dumpSpan(PSHPSPAN pSpan)
    456456    {
    457457        int     i, maxx, maxy, x, y;
     
    497497 */
    498498
    499 void shprgnDraw(HPS hps, PSHPREGION pRgn)
     499static void shprgnDraw(HPS hps, PSHPREGION pRgn)
    500500{
    501501    POINTL      apt[3];
     
    518518 */
    519519
    520 MRESULT EXPENTRY shp_fnwpShapeRegion(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     520static MRESULT EXPENTRY shp_fnwpShapeRegion(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    521521{
    522522    PSHPREGION   pRgn;
     
    590590 */
    591591
    592 int shpmgrWMAdjustWindowPos(PSHPWINCTLDATA pCtrl, PSWP pSwp)
     592static int shpmgrWMAdjustWindowPos(PSHPWINCTLDATA pCtrl, PSWP pSwp)
    593593{
    594594    int         i   ;
     
    656656 */
    657657
    658 int shpmgrUpdateRegions(PSHPWINCTLDATA pCtrl, PRECTL pRect)
     658static int shpmgrUpdateRegions(PSHPWINCTLDATA pCtrl, PRECTL pRect)
    659659{
    660660    RECTL       rect, intern;
     
    702702 */
    703703
    704 PSHPSPAN shpmgrParseBitmap(HPS hps, PBITMAPINFOHEADER2 bmih2)
     704static PSHPSPAN shpmgrParseBitmap(HPS hps, PBITMAPINFOHEADER2 bmih2)
    705705{
    706706    int             blen, hlen;
     
    815815 */
    816816
    817 int shpmgrWMCreate_Bitmap2Regions(PSHPWINCTLDATA pCtrl,  // in: shape control data
    818                                   HPS hpsMask)      // in: HPS with selected bitmap
     817static int shpmgrWMCreate_Bitmap2Regions(PSHPWINCTLDATA pCtrl,  // in: shape control data
     818                                         HPS hpsMask)      // in: HPS with selected bitmap
    819819{
    820820    HAB             hab;
     
    937937 */
    938938
    939 int shpmgrWMCreate_Regions2Windows(PSHPWINCTLDATA pCtrl)
     939static int shpmgrWMCreate_Regions2Windows(PSHPWINCTLDATA pCtrl)
    940940{
    941941    int         i   ;
     
    10051005 */
    10061006
    1007 int shpmgrFreeRegion(PSHPWINCTLDATA pCtrl)
     1007static int shpmgrFreeRegion(PSHPWINCTLDATA pCtrl)
    10081008{
    10091009    int         i   ;
     
    10351035 */
    10361036
    1037 PSHPWINCTLDATA shpmgrWMCreate(HWND hwnd, // in: shape window
    1038                               PCREATESTRUCT pWin,    // in: create struct of WM_CREATE
    1039                               PSHPCTLDATA pData)       // in: SHPCTLDATA struct (WM_CREATE mp1)
     1037static PSHPWINCTLDATA shpmgrWMCreate(HWND hwnd, // in: shape window
     1038                                     PCREATESTRUCT pWin,    // in: create struct of WM_CREATE
     1039                                     PSHPCTLDATA pData)       // in: SHPCTLDATA struct (WM_CREATE mp1)
    10401040{
    10411041    PSHPWINCTLDATA   pCtrl;
     
    10891089 */
    10901090
    1091 void shpmgrWMDestroy(PSHPWINCTLDATA pCtrl)
     1091static void shpmgrWMDestroy(PSHPWINCTLDATA pCtrl)
    10921092{
    10931093    if (pCtrl == NULL)
     
    11391139 */
    11401140
    1141 MRESULT EXPENTRY shp_fnwpShapeMgr(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
     1141static MRESULT EXPENTRY shp_fnwpShapeMgr(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)
    11421142{
    11431143    PSHPWINCTLDATA   pCtrl;
  • trunk/src/helpers/textv_html.c

    r91 r142  
    175175 */
    176176
    177 VOID AppendChar(PCOPYTARGET pct,  // in/out: formatting buffer
    178                 unsigned char c)
     177static VOID AppendChar(PCOPYTARGET pct,  // in/out: formatting buffer
     178                       unsigned char c)
    179179{
    180180    // calculate ofs where to store next char
     
    204204 */
    205205
    206 VOID AppendString(PCOPYTARGET pct,  // in/out: formatting buffer
    207                   char *ach)
     206static VOID AppendString(PCOPYTARGET pct,  // in/out: formatting buffer
     207                         char *ach)
    208208{
    209209    ULONG cbAppend = strlen(ach);
     
    240240 */
    241241
    242 VOID AppendLinebreakCheck(PCOPYTARGET pct)
     242static VOID AppendLinebreakCheck(PCOPYTARGET pct)
    243243{
    244244    if ((!pct->fPRE) && (pct->fNeedsLinebreak))
     
    267267 */
    268268
    269 VOID AppendEscapeWith3Decimals(PCOPYTARGET pct,  // in/out: formatting buffer
    270                                char *ach,
    271                                USHORT us)
     269static VOID AppendEscapeWith3Decimals(PCOPYTARGET pct,  // in/out: formatting buffer
     270                                      char *ach,
     271                                      USHORT us)
    272272{
    273273    CHAR szDecimal[10];
     
    286286 */
    287287
    288 VOID AppendEscapeWith4Decimals(PCOPYTARGET pct,  // in/out: formatting buffer
    289                                char *ach,
    290                                USHORT us)
     288static VOID AppendEscapeWith4Decimals(PCOPYTARGET pct,  // in/out: formatting buffer
     289                                      char *ach,
     290                                      USHORT us)
    291291{
    292292    CHAR szDecimal[10];
     
    314314 */
    315315
    316 VOID StartList(PCOPYTARGET pct,     // in/out: formatting buffer
    317                ULONG ulListType)    // list type:
    318                                     // 0: unordered (UL)
    319                                     // 1: ordered (OL)
    320                                     // 2: definition lists (DL)
     316static VOID StartList(PCOPYTARGET pct,     // in/out: formatting buffer
     317                      ULONG ulListType)    // list type:
     318                                           // 0: unordered (UL)
     319                                           // 1: ordered (OL)
     320                                           // 2: definition lists (DL)
    321321{
    322322    PLISTDESC pListDesc;
     
    361361 */
    362362
    363 VOID StopList(PCOPYTARGET pct)
     363static VOID StopList(PCOPYTARGET pct)
    364364{
    365365    if (pct->ulListLevel)
     
    414414 */
    415415
    416 VOID TagTITLE(PCOPYTARGET pct)
     416static VOID TagTITLE(PCOPYTARGET pct)
    417417{
    418418    // pSource currently points to <TITLE tag
     
    447447 */
    448448
    449 VOID TagP(PCOPYTARGET pct)
     449static VOID TagP(PCOPYTARGET pct)
    450450{
    451451    // append newline:
     
    464464}
    465465
    466 VOID TagBR(PCOPYTARGET pct)
     466static VOID TagBR(PCOPYTARGET pct)
    467467{
    468468    AppendChar(pct,
     
    482482}
    483483
    484 VOID TagPRE(PCOPYTARGET pct)
     484static VOID TagPRE(PCOPYTARGET pct)
    485485{
    486486    // start of PRE tag:
     
    507507}
    508508
    509 VOID TagXPRE(PCOPYTARGET pct)
     509static VOID TagXPRE(PCOPYTARGET pct)
    510510{
    511511    pct->fPRE = FALSE;
     
    527527}
    528528
    529 VOID TagH1(PCOPYTARGET pct)
     529static VOID TagH1(PCOPYTARGET pct)
    530530{
    531531    pct->fNeedsLinebreak = TRUE;
     
    537537}
    538538
    539 VOID TagXH1(PCOPYTARGET pct)
     539static VOID TagXH1(PCOPYTARGET pct)
    540540{
    541541    AppendString(pct,
     
    548548}
    549549
    550 VOID TagH2(PCOPYTARGET pct)
     550static VOID TagH2(PCOPYTARGET pct)
    551551{
    552552    pct->fNeedsLinebreak = TRUE;
     
    558558}
    559559
    560 VOID TagXH2(PCOPYTARGET pct)
     560static VOID TagXH2(PCOPYTARGET pct)
    561561{
    562562    AppendString(pct,
     
    569569}
    570570
    571 VOID TagH3(PCOPYTARGET pct)
     571static VOID TagH3(PCOPYTARGET pct)
    572572{
    573573    pct->fNeedsLinebreak = TRUE;
     
    579579}
    580580
    581 VOID TagXH3(PCOPYTARGET pct)
     581static VOID TagXH3(PCOPYTARGET pct)
    582582{
    583583    AppendString(pct,
     
    590590}
    591591
    592 VOID TagH4(PCOPYTARGET pct)
     592static VOID TagH4(PCOPYTARGET pct)
    593593{
    594594    pct->fNeedsLinebreak = TRUE;
     
    600600}
    601601
    602 VOID TagXH4(PCOPYTARGET pct)
     602static VOID TagXH4(PCOPYTARGET pct)
    603603{
    604604    AppendString(pct,
     
    611611}
    612612
    613 VOID TagH5(PCOPYTARGET pct)
     613static VOID TagH5(PCOPYTARGET pct)
    614614{
    615615    pct->fNeedsLinebreak = TRUE;
     
    621621}
    622622
    623 VOID TagXH5(PCOPYTARGET pct)
     623static VOID TagXH5(PCOPYTARGET pct)
    624624{
    625625    AppendString(pct,
     
    632632}
    633633
    634 VOID TagH6(PCOPYTARGET pct)
     634static VOID TagH6(PCOPYTARGET pct)
    635635{
    636636    pct->fNeedsLinebreak = TRUE;
     
    642642}
    643643
    644 VOID TagXH6(PCOPYTARGET pct)
     644static VOID TagXH6(PCOPYTARGET pct)
    645645{
    646646    AppendString(pct,
     
    653653}
    654654
    655 VOID TagUL(PCOPYTARGET pct)
     655static VOID TagUL(PCOPYTARGET pct)
    656656{
    657657    StartList(pct,
     
    659659}
    660660
    661 VOID TagXUL(PCOPYTARGET pct)
     661static VOID TagXUL(PCOPYTARGET pct)
    662662{
    663663    StopList(pct);
    664664}
    665665
    666 VOID TagOL(PCOPYTARGET pct)
     666static VOID TagOL(PCOPYTARGET pct)
    667667{
    668668    StartList(pct,
     
    670670}
    671671
    672 VOID TagXOL(PCOPYTARGET pct)
     672static VOID TagXOL(PCOPYTARGET pct)
    673673{
    674674    StopList(pct);
    675675}
    676676
    677 VOID TagLI(PCOPYTARGET pct)
     677static VOID TagLI(PCOPYTARGET pct)
    678678{
    679679    PLISTDESC pListDesc;
     
    709709}
    710710
    711 VOID TagDL(PCOPYTARGET pct)
     711static VOID TagDL(PCOPYTARGET pct)
    712712{
    713713    StartList(pct,
     
    715715}
    716716
    717 VOID TagXDL(PCOPYTARGET pct)
     717static VOID TagXDL(PCOPYTARGET pct)
    718718{
    719719    StopList(pct);
     
    721721}
    722722
    723 VOID TagDT(PCOPYTARGET pct)
     723static VOID TagDT(PCOPYTARGET pct)
    724724{
    725725    pct->fNeedsLinebreak = TRUE;
     
    727727}
    728728
    729 VOID TagDD(PCOPYTARGET pct)
     729static VOID TagDD(PCOPYTARGET pct)
    730730{
    731731    pct->fNeedsLinebreak = TRUE;
     
    736736}
    737737
    738 VOID TagTR(PCOPYTARGET pct)
     738static VOID TagTR(PCOPYTARGET pct)
    739739{
    740740    pct->fNeedsLinebreak = TRUE;
    741741}
    742742
    743 VOID TagB(PCOPYTARGET pct)
     743static VOID TagB(PCOPYTARGET pct)
    744744{
    745745    AppendString(pct,
     
    747747}
    748748
    749 VOID TagXB(PCOPYTARGET pct)
     749static VOID TagXB(PCOPYTARGET pct)
    750750{
    751751    AppendString(pct,
     
    753753}
    754754
    755 VOID TagI(PCOPYTARGET pct)
     755static VOID TagI(PCOPYTARGET pct)
    756756{
    757757    AppendString(pct,
     
    759759}
    760760
    761 VOID TagXI(PCOPYTARGET pct)
     761static VOID TagXI(PCOPYTARGET pct)
    762762{
    763763    AppendString(pct,
     
    765765}
    766766
    767 VOID TagU(PCOPYTARGET pct)
     767static VOID TagU(PCOPYTARGET pct)
    768768{
    769769    AppendString(pct,
     
    771771}
    772772
    773 VOID TagXU(PCOPYTARGET pct)
     773static VOID TagXU(PCOPYTARGET pct)
    774774{
    775775    AppendString(pct,
     
    777777}
    778778
    779 VOID TagSTRIKE(PCOPYTARGET pct)
     779static VOID TagSTRIKE(PCOPYTARGET pct)
    780780{
    781781    AppendString(pct,
     
    783783}
    784784
    785 VOID TagXSTRIKE(PCOPYTARGET pct)
     785static VOID TagXSTRIKE(PCOPYTARGET pct)
    786786{
    787787    AppendString(pct,
     
    789789}
    790790
    791 VOID TagCODE(PCOPYTARGET pct)
     791static VOID TagCODE(PCOPYTARGET pct)
    792792{
    793793    AppendEscapeWith3Decimals(pct,
     
    796796}
    797797
    798 VOID TagXCODE(PCOPYTARGET pct)
     798static VOID TagXCODE(PCOPYTARGET pct)
    799799{
    800800    AppendEscapeWith3Decimals(pct,
     
    803803}
    804804
    805 VOID TagA(PCOPYTARGET pct)
     805static VOID TagA(PCOPYTARGET pct)
    806806{
    807807    CHAR    szAnchor[10];
     
    875875}
    876876
    877 VOID TagXA(PCOPYTARGET pct)
     877static VOID TagXA(PCOPYTARGET pct)
    878878{
    879879    if (pct->fInLink)
     
    899899 */
    900900
    901 PFNPROCESSTAG FindTagProcessor(PSZ pszTag)
     901static PFNPROCESSTAG FindTagProcessor(PSZ pszTag)
    902902{
    903903    PFNPROCESSTAG pProcessor = NULL;
     
    12701270 */
    12711271
    1272 VOID HandleTag(PCOPYTARGET pct)
     1272static VOID HandleTag(PCOPYTARGET pct)
    12731273{
    12741274    PSZ     pStartOfTag = pct->pSource;
     
    14251425 */
    14261426
    1427 unsigned char ConvertEscape(PSZ pszTag)
     1427static unsigned char ConvertEscape(PSZ pszTag)
    14281428{
    14291429    CHAR c0, c1;
     
    18821882 */
    18831883
    1884 VOID HandleEscape(PCOPYTARGET pct)
     1884static VOID HandleEscape(PCOPYTARGET pct)
    18851885{
    18861886    // ampersand:
  • trunk/src/helpers/textview.c

    r137 r142  
    278278 */
    279279
    280 VOID SetSubFont(HPS hps,
    281                 PXFMTFONT pFont,
    282                 ULONG ulPointSize,
    283                 PSZ pszFaceName,
    284                 ULONG flFormat)
     280static VOID SetSubFont(HPS hps,
     281                       PXFMTFONT pFont,
     282                       ULONG ulPointSize,
     283                       PSZ pszFaceName,
     284                       ULONG flFormat)
    285285{
    286286    CHAR    ac[256];
     
    336336
    337337/*
    338  *@@ txvSetFormatFont:
     338 *@@ SetFormatFont:
    339339 *      creates logical fonts from the specified
    340340 *      font information.
     
    343343 */
    344344
    345 VOID txvSetFormatFont(HPS hps,           // in: HPS to select default font into
    346                       PXFMTCHARACTER pxfmtc, // in/out: format data
    347                       ULONG ulPointSize, // in: font point size (e.g. 12) or 0
    348                       PSZ pszFaceName)   // in: font face name (e.g. "Courier") or NULL
     345static VOID SetFormatFont(HPS hps,           // in: HPS to select default font into
     346                          PXFMTCHARACTER pxfmtc, // in/out: format data
     347                          ULONG ulPointSize, // in: font point size (e.g. 12) or 0
     348                          PSZ pszFaceName)   // in: font face name (e.g. "Courier") or NULL
    349349{
    350350    pxfmtc->lPointSize = ulPointSize;
     
    385385 */
    386386
    387 VOID AppendCharNoCheck(char **ppszNew,
    388                        PULONG pcbNew,
    389                        char **ppTarget,
    390                        char c)
     387static VOID AppendCharNoCheck(char **ppszNew,
     388                              PULONG pcbNew,
     389                              char **ppTarget,
     390                              char c)
    391391{
    392392    ULONG   cbSizeThis = *ppTarget - *ppszNew;
     
    494494 */
    495495
    496 PSZ strhFindEOL2(PSZ *ppszSearchIn,        // in: where to search
    497                  PULONG pulOffset)       // out: offset (ptr can be NULL)
     496static PSZ strhFindEOL2(PSZ *ppszSearchIn,        // in: where to search
     497                        PULONG pulOffset)       // out: offset (ptr can be NULL)
    498498{
    499499    PSZ     pThis = *ppszSearchIn,
     
    554554 *@@ FORMATLINEBUF:
    555555 *      worker structure to store various data
    556  *      in txvFormatText in between txvCreateWord
     556 *      in txvFormatText in between CreateWord
    557557 *      calls. This has been created for speed
    558558 *      so we don't have to pass all these on
     
    590590
    591591/*
    592  *@@ txvCreateWord:
     592 *@@ CreateWord:
    593593 *
    594594 *      --  If the word ends with one or several spaces,
     
    613613 */
    614614
    615 PTXVWORD txvCreateWord(HPS hps,
    616                         PSZ *ppStartOfWord,
    617                         PFORMATLINEBUF pflbuf)
     615static PTXVWORD CreateWord(HPS hps,
     616                           PSZ *ppStartOfWord,
     617                           PFORMATLINEBUF pflbuf)
    618618{
    619619    PTXVWORD   pWord = NULL;
     
    745745 */
    746746
    747 PTXVWORD ProcessEscapes(char **ppCurrent,          // in/out: current position; initially points to esc char
    748                         PXFORMATDATA pxfd,         // in/out: formatting data
    749                         PFORMATLINEBUF pflbuf,     // in/out: formatting buffer
    750                         BOOL fWordsProcessed)      // FALSE during step 1 (words processing),
    751                                                    // TRUE during step 2 (rectangles correlation)
     747static PTXVWORD ProcessEscapes(char **ppCurrent,          // in/out: current position; initially points to esc char
     748                               PXFORMATDATA pxfd,         // in/out: formatting data
     749                               PFORMATLINEBUF pflbuf,     // in/out: formatting buffer
     750                               BOOL fWordsProcessed)      // FALSE during step 1 (words processing),
     751                                                          // TRUE during step 2 (rectangles correlation)
    752752{
    753753    PTXVWORD pEscapeWord = NULL;
     
    11551155                    }
    11561156
    1157                     if (pWord = txvCreateWord(hps,
    1158                                               &pCurrent, // advanced to next word
    1159                                               &flbuf))
     1157                    if (pWord = CreateWord(hps,
     1158                                           &pCurrent, // advanced to next word
     1159                                           &flbuf))
    11601160                    {
    11611161                        lstAppendItem(&pxfd->llWords, pWord);
     
    14111411 */
    14121412
    1413 VOID DrawListMarker(HPS hps,
    1414                     PRECTL prclLine,        // current line rectangle
    1415                     PTXVWORD pWordThis,    // current word
    1416                     LONG lViewXOfs)         // in: x offset to paint; 0 means rightmost
     1413static VOID DrawListMarker(HPS hps,
     1414                           PRECTL prclLine,        // current line rectangle
     1415                           PTXVWORD pWordThis,    // current word
     1416                           LONG lViewXOfs)         // in: x offset to paint; 0 means rightmost
    14171417{
    14181418    POINTL ptl;
     
    18651865 */
    18661866
    1867 VOID UpdateTextViewPresData(HWND hwndTextView,
    1868                             PTEXTVIEWWINDATA ptxvd)
     1867static VOID UpdateTextViewPresData(HWND hwndTextView,
     1868                                   PTEXTVIEWWINDATA ptxvd)
    18691869{
    18701870    PSZ pszFont;
     
    18871887                              &pszFaceName))
    18881888        {
    1889             txvSetFormatFont(ptxvd->hps,
     1889            SetFormatFont(ptxvd->hps,
    18901890                             &ptxvd->xfd.fmtcStandard,
    18911891                             ulSize,
     
    19201920 */
    19211921
    1922 VOID AdjustViewRects(HWND hwndTextView,
    1923                      PTEXTVIEWWINDATA ptxvd)
     1922static VOID AdjustViewRects(HWND hwndTextView,
     1923                            PTEXTVIEWWINDATA ptxvd)
    19241924{
    19251925    ULONG ulScrollCX = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL),
     
    19921992 */
    19931993
    1994 VOID FormatText2Screen(HWND hwndTextView,
    1995                        PTEXTVIEWWINDATA ptxvd,
    1996                        BOOL fAlreadyRecursing,  // in: set this to FALSE when calling
    1997                        BOOL fFullRecalc)
     1994static VOID FormatText2Screen(HWND hwndTextView,
     1995                              PTEXTVIEWWINDATA ptxvd,
     1996                              BOOL fAlreadyRecursing,  // in: set this to FALSE when calling
     1997                              BOOL fFullRecalc)
    19981998{
    19991999    ULONG   ulWinCX,
     
    20802080 */
    20812081
    2082 VOID PaintViewText2Screen(PTEXTVIEWWINDATA ptxvd,
    2083                           PRECTL prcl2Paint)  // in: invalid rectangle, can be NULL == paint all
     2082static VOID PaintViewText2Screen(PTEXTVIEWWINDATA ptxvd,
     2083                                 PRECTL prcl2Paint)  // in: invalid rectangle, can be NULL == paint all
    20842084{
    20852085    ULONG   ulLineIndex = 0;
     
    21002100 */
    21012101
    2102 VOID PaintViewFocus(HPS hps,
    2103                     PTEXTVIEWWINDATA ptxvd,
    2104                     BOOL fFocus)
     2102static VOID PaintViewFocus(HPS hps,
     2103                           PTEXTVIEWWINDATA ptxvd,
     2104                           BOOL fFocus)
    21052105{
    21062106    POINTL  ptl;
     
    21312131 */
    21322132
    2133 VOID RepaintWord(PTEXTVIEWWINDATA ptxvd,
    2134                  PTXVWORD pWordThis,
    2135                  LONG lColor)
     2133static VOID RepaintWord(PTEXTVIEWWINDATA ptxvd,
     2134                        PTXVWORD pWordThis,
     2135                        LONG lColor)
    21362136{
    21372137    POINTL ptlStart;
     
    21842184 */
    21852185
    2186 VOID RepaintAnchor(PTEXTVIEWWINDATA ptxvd,
    2187                    LONG lColor)
     2186static VOID RepaintAnchor(PTEXTVIEWWINDATA ptxvd,
     2187                          LONG lColor)
    21882188{
    21892189    PLISTNODE pNode = ptxvd->pWordNodeFirstInAnchor;
     
    22552255 */
    22562256
    2257 MRESULT EXPENTRY fnwpTextView(HWND hwndTextView, ULONG msg, MPARAM mp1, MPARAM mp2)
     2257static MRESULT EXPENTRY fnwpTextView(HWND hwndTextView, ULONG msg, MPARAM mp1, MPARAM mp2)
    22582258{
    22592259    MRESULT mrc = 0;
     
    23652365
    23662366                // set "code" format
    2367                 txvSetFormatFont(ptxvd->hps,
     2367                SetFormatFont(ptxvd->hps,
    23682368                                 &ptxvd->xfd.fmtcCode,
    23692369                                 6,
     
    32063206 */
    32073207
    3208 PRQINFO3* prthEnumQueues(PULONG pulReturned)    // out: no. of queues found
     3208static PRQINFO3* prthEnumQueues(PULONG pulReturned)    // out: no. of queues found
    32093209{
    32103210    SPLERR  rc;
     
    32483248 */
    32493249
    3250 VOID prthFreeBuf(PVOID pprq3)
     3250static VOID prthFreeBuf(PVOID pprq3)
    32513251{
    32523252    if (pprq3)
     
    32703270 */
    32713271
    3272 HDC prthCreatePrinterDC(HAB hab,
    3273                         PRQINFO3 *pprq3,
    3274                         PLONG palRes)  // out: 2 longs holding horizontal and vertical
    3275                                        // printer resolution in pels per inch
     3272static HDC prthCreatePrinterDC(HAB hab,
     3273                               PRQINFO3 *pprq3,
     3274                               PLONG palRes)  // out: 2 longs holding horizontal and vertical
     3275                                              // printer resolution in pels per inch
    32763276{
    32773277    HDC     hdc = NULLHANDLE;
     
    33163316 */
    33173317
    3318 HCINFO* prthQueryForms(HDC hdc,
    3319                        PULONG pulCount)
     3318static HCINFO* prthQueryForms(HDC hdc,
     3319                              PULONG pulCount)
    33203320{
    33213321    HCINFO  *pahci = NULL;
     
    33483348 */
    33493349
    3350 HPS prthCreatePS(HAB hab,       // in: anchor block
    3351                  HDC hdc,       // in: printer device context
    3352                  ULONG ulUnits) // in: one of:
    3353                                 // -- PU_PELS
    3354                                 // -- PU_LOMETRIC
    3355                                 // -- PU_HIMETRIC
    3356                                 // -- PU_LOENGLISH
    3357                                 // -- PU_HIENGLISH
    3358                                 // -- PU_TWIPS
     3350static HPS prthCreatePS(HAB hab,       // in: anchor block
     3351                        HDC hdc,       // in: printer device context
     3352                        ULONG ulUnits) // in: one of:
     3353                                       // -- PU_PELS
     3354                                       // -- PU_LOMETRIC
     3355                                       // -- PU_HIMETRIC
     3356                                       // -- PU_LOENGLISH
     3357                                       // -- PU_HIENGLISH
     3358                                       // -- PU_TWIPS
    33593359{
    33603360    SIZEL   sizel;
     
    33783378 */
    33793379
    3380 VOID prthStartDoc(HDC hdc,
    3381                   PSZ pszDocTitle)
     3380static VOID prthStartDoc(HDC hdc,
     3381                         PSZ pszDocTitle)
    33823382{
    33833383    DevEscape(hdc,
     
    33983398 */
    33993399
    3400 VOID prthNextPage(HDC hdc)
     3400static VOID prthNextPage(HDC hdc)
    34013401{
    34023402    DevEscape(hdc,
     
    34173417 */
    34183418
    3419 VOID prthEndDoc(HDC hdc,
    3420                 HPS hps)
     3419static VOID prthEndDoc(HDC hdc,
     3420                       HPS hps)
    34213421{
    34223422    DevEscape(hdc, DEVESC_ENDDOC, 0L, 0L, 0, NULL);
     
    34743474    txvInitFormat(&xfd);
    34753475
    3476     /* txvSetFormatFont(hps,
     3476    /* SetFormatFont(hps,
    34773477                     &xfd,
    34783478                     ulSize,
  • trunk/src/helpers/threads.c

    r132 r142  
    8484 */
    8585
    86 BOOL LockThreadInfos(VOID)
     86static BOOL LockThreadInfos(VOID)
    8787{
    8888    APIRET arc = NO_ERROR;
     
    110110 */
    111111
    112 VOID UnlockThreadInfos(VOID)
     112static VOID UnlockThreadInfos(VOID)
    113113{
    114114    DosReleaseMutexSem(G_hmtxThreadInfos);
     
    125125 */
    126126
    127 VOID _Optlink thr_fntGeneric(PVOID ptiMyself)
     127static VOID _Optlink thr_fntGeneric(PVOID ptiMyself)
    128128{
    129129    PTHREADINFO pti = (PTHREADINFO)ptiMyself;
  • trunk/src/helpers/timer.c

    r127 r142  
    157157 */
    158158
    159 BOOL LockTimers(VOID)
     159static BOOL LockTimers(VOID)
    160160{
    161161    if (!G_hmtxTimers)
     
    174174 */
    175175
    176 VOID UnlockTimers(VOID)
     176static VOID UnlockTimers(VOID)
    177177{
    178178    DosReleaseMutexSem(G_hmtxTimers);
     
    188188 */
    189189
    190 PXTIMER FindTimer(PXTIMERSET pSet,          // in: timer set (from tmrCreateSet)
    191                   HWND hwnd,                // in: timer target window
    192                   USHORT usTimerID)         // in: timer ID
     190static PXTIMER FindTimer(PXTIMERSET pSet,          // in: timer set (from tmrCreateSet)
     191                         HWND hwnd,                // in: timer target window
     192                         USHORT usTimerID)         // in: timer ID
    193193{
    194194    PLINKLIST pllXTimers;
     
    223223 */
    224224
    225 VOID RemoveTimer(PXTIMERSET pSet,       // in: timer set (from tmrCreateSet)
    226                  PXTIMER pTimer)        // in: timer to remove.
     225static VOID RemoveTimer(PXTIMERSET pSet,       // in: timer set (from tmrCreateSet)
     226                        PXTIMER pTimer)        // in: timer to remove.
    227227{
    228228    PLINKLIST pllXTimers;
     
    247247 */
    248248
    249 VOID AdjustPMTimer(PXTIMERSET pSet)
     249static VOID AdjustPMTimer(PXTIMERSET pSet)
    250250{
    251251    PLINKLIST pllXTimers = (PLINKLIST)pSet->pvllXTimers;
  • trunk/src/helpers/vcard.c

    r139 r142  
    6666 ********************************************************************/
    6767
    68 VOID FreeList(PLINKLIST *ppll);
     68static VOID FreeList(PLINKLIST *ppll);
    6969
    7070/* ******************************************************************
     
    7979 */
    8080
    81 VOID Translate(PXSTRING pstr,
    82                ULONG cpCurrent)
     81static VOID Translate(PXSTRING pstr,
     82                      ULONG cpCurrent)
    8383{
    8484    ULONG ul;
     
    107107 */
    108108
    109 APIRET DecodeStringList(PCSZ pStart,
    110                         PCSZ pEnd,
    111                         PXSTRING *ppaStrings,
    112                         PULONG pcStrings,
    113                         PXSTRING *ppstrLast,        // out: last string stored
    114                         ULONG cpCurrent)            // in: current codepage
     109static APIRET DecodeStringList(PCSZ pStart,
     110                               PCSZ pEnd,
     111                               PXSTRING *ppaStrings,
     112                               PULONG pcStrings,
     113                               PXSTRING *ppstrLast,        // out: last string stored
     114                               ULONG cpCurrent)            // in: current codepage
    115115{
    116116    if (!pStart || !pEnd)
     
    299299 */
    300300
    301 APIRET Tokenize(ULONG ulLevel,
    302                 PSZ *ppszInput,
    303                 PLINKLIST pllParent,
    304                 ULONG cpCurrent)
     301static APIRET Tokenize(ULONG ulLevel,
     302                       PSZ *ppszInput,
     303                       PLINKLIST pllParent,
     304                       ULONG cpCurrent)
    305305{
    306306    PSZ         pLineThis = *ppszInput;
     
    474474 */
    475475
    476 PVCFPROPERTY FindValues(PLINKLIST pll,
    477                         PCSZ pcszProperty,
    478                         PCSZ pcszParameter)
     476static PVCFPROPERTY FindValues(PLINKLIST pll,
     477                               PCSZ pcszProperty,
     478                               PCSZ pcszParameter)
    479479{
    480480    PLISTNODE   pNode;
     
    503503 */
    504504
    505 VOID CopyStrings(PVCFPROPERTY pProp,
    506                  PCSZ *papcszValues,
    507                  ULONG cValues)
     505static VOID CopyStrings(PVCFPROPERTY pProp,
     506                        PCSZ *papcszValues,
     507                        ULONG cValues)
    508508{
    509509    ULONG ul;
     
    531531 */
    532532
    533 ULONG GetFlagStrings(PXSTRING pastrParameters,
    534                      ULONG cParameters,
    535                      const PCSZ **apcsz,
    536                      const ULONG *afl,
    537                      ULONG cStrings,
    538                      ULONG flDefault)
     533static ULONG GetFlagStrings(PXSTRING pastrParameters,
     534                            ULONG cParameters,
     535                            const PCSZ **apcsz,
     536                            const ULONG *afl,
     537                            ULONG cStrings,
     538                            ULONG flDefault)
    539539{
    540540    ULONG ul, ul2;
     
    584584 */
    585585
    586 VOID AppendAddress(PVCARD pvc,
    587                    PVCFPROPERTY pProp)
     586static VOID AppendAddress(PVCARD pvc,
     587                          PVCFPROPERTY pProp)
    588588{
    589589    if (pvc->paDeliveryAddresses = (PVCADDRESS)realloc(
     
    611611 */
    612612
    613 VOID AppendLabel(PVCARD pvc,
    614                  PVCFPROPERTY pProp)
     613static VOID AppendLabel(PVCARD pvc,
     614                        PVCFPROPERTY pProp)
    615615{
    616616    if (pvc->paLabels = (PVCLABEL)realloc(
     
    672672 */
    673673
    674 VOID AppendTel(PVCARD pvc,
    675                PVCFPROPERTY pProp)
     674static VOID AppendTel(PVCARD pvc,
     675                      PVCFPROPERTY pProp)
    676676{
    677677    if (pvc->paPhones = (PVCPHONE)realloc(pvc->paPhones,
     
    816816 */
    817817
    818 VOID FreeList(PLINKLIST *ppll)
     818static VOID FreeList(PLINKLIST *ppll)
    819819{
    820820    PLISTNODE pNode = lstQueryFirstNode(*ppll);
  • trunk/src/helpers/wphandle.c

    r140 r142  
    196196 */
    197197
    198 VOID FreeChildrenTree(TREE **ppChildrenTree,
    199                       PLONG plCount)
     198static VOID FreeChildrenTree(TREE **ppChildrenTree,
     199                             PLONG plCount)
    200200{
    201201    LONG    cItems = *plCount;
     
    229229 */
    230230
    231 APIRET NukeNameTrees(PHANDLESBUF pHandlesBuf)
     231static APIRET NukeNameTrees(PHANDLESBUF pHandlesBuf)
    232232{
    233233    APIRET arc = NO_ERROR;
     
    854854 */
    855855
    856 APIRET ComposeThis(PHANDLESBUF pHandlesBuf,
    857                    USHORT usHandle,         // in: handle to search for
    858                    PXSTRING pstrFilename,   // in/out: filename
    859                    PNODE *ppNode)           // out: node found (ptr can be NULL)
     856static APIRET ComposeThis(PHANDLESBUF pHandlesBuf,
     857                          USHORT usHandle,         // in: handle to search for
     858                          PXSTRING pstrFilename,   // in/out: filename
     859                          PNODE *ppNode)           // out: node found (ptr can be NULL)
    860860{
    861861    APIRET          arc = NO_ERROR;
  • trunk/src/helpers/xml.c

    r127 r142  
    343343 */
    344344
    345 int TREEENTRY CompareXStrings(ULONG ul1,
    346                               ULONG ul2)
     345static int TREEENTRY CompareXStrings(ULONG ul1,
     346                                     ULONG ul2)
    347347{
    348348    return (strhcmp(((PXSTRING)ul1)->psz,
     
    914914 */
    915915
    916 APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle,
    917                             PXMLCONTENT pModel,
    918                             TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree
    919                                                        // (passed to all recursions)
     916static APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle,
     917                                   PXMLCONTENT pModel,
     918                                   TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree
     919                                                              // (passed to all recursions)
    920920{
    921921    APIRET arc = NO_ERROR;
     
    10741074 */
    10751075
    1076 VOID ValidateElement(PXMLDOM pDom,
    1077                      PDOMNODE pNewElement,     // in: new element
    1078                      PCMELEMENTDECLNODE pParentElementDecl)
    1079                                                // in: element decl of element's parent
     1076static VOID ValidateElement(PXMLDOM pDom,
     1077                            PDOMNODE pNewElement,     // in: new element
     1078                            PCMELEMENTDECLNODE pParentElementDecl)
     1079                                                      // in: element decl of element's parent
    10801080{
    10811081    if (pDom && pNewElement)
     
    12331233 */
    12341234
    1235 VOID ValidateAttributeType(PXMLDOM pDom,
    1236                            PDOMNODE pAttrib,
    1237                            PCMATTRIBUTEDECLBASE *ppAttribDeclBase)
     1235static VOID ValidateAttributeType(PXMLDOM pDom,
     1236                                  PDOMNODE pAttrib,
     1237                                  PCMATTRIBUTEDECLBASE *ppAttribDeclBase)
    12381238{
    12391239    PDOMNODE pElement = pAttrib->pParentNode;
     
    12971297 */
    12981298
    1299 VOID ValidateAllAttributes(PXMLDOM pDom,
    1300                            PCMATTRIBUTEDECLBASE pAttribDeclBase,
    1301                            PDOMNODE pNewElement)
     1299static VOID ValidateAllAttributes(PXMLDOM pDom,
     1300                                  PCMATTRIBUTEDECLBASE pAttribDeclBase,
     1301                                  PDOMNODE pNewElement)
    13021302{
    13031303    PCMATTRIBUTEDECL pDeclThis
     
    13661366 */
    13671367
    1368 PDOMSTACKITEM PopElementStack(PXMLDOM pDom,
    1369                               PLISTNODE *ppListNode)
     1368static PDOMSTACKITEM PopElementStack(PXMLDOM pDom,
     1369                                     PLISTNODE *ppListNode)
    13701370{
    13711371    PDOMSTACKITEM   pStackItem = NULL;
     
    13961396 */
    13971397
    1398 VOID PushElementStack(PXMLDOM pDom,
    1399                       PDOMNODE pDomNode)
     1398static VOID PushElementStack(PXMLDOM pDom,
     1399                             PDOMNODE pDomNode)
    14001400{
    14011401    PDOMSTACKITEM pNew = (PDOMSTACKITEM)malloc(sizeof(*pNew));
     
    14361436 */
    14371437
    1438 int EXPATENTRY UnknownEncodingHandler(void *pUserData,   // in: out PXMLDOM really
    1439                                       const XML_Char *pcszName,
    1440                                       XML_Encoding *pEncoding)
     1438static int EXPATENTRY UnknownEncodingHandler(void *pUserData,   // in: out PXMLDOM really
     1439                                             const XML_Char *pcszName,
     1440                                             XML_Encoding *pEncoding)
    14411441{
    14421442    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    15011501 */
    15021502
    1503 void EXPATENTRY StartElementHandler(void *pUserData,      // in: our PXMLDOM really
    1504                                     const char *pcszElement,
    1505                                     const char **papcszAttribs)
     1503static void EXPATENTRY StartElementHandler(void *pUserData,      // in: our PXMLDOM really
     1504                                           const char *pcszElement,
     1505                                           const char **papcszAttribs)
    15061506{
    15071507    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    15961596 */
    15971597
    1598 void EXPATENTRY EndElementHandler(void *pUserData,      // in: our PXMLDOM really
    1599                                   const XML_Char *name)
     1598static void EXPATENTRY EndElementHandler(void *pUserData,      // in: our PXMLDOM really
     1599                                         const XML_Char *name)
    16001600{
    16011601    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    16321632 */
    16331633
    1634 void EXPATENTRY CharacterDataHandler(void *pUserData,      // in: our PXMLDOM really
    1635                                      const XML_Char *s,
    1636                                      int len)
     1634static void EXPATENTRY CharacterDataHandler(void *pUserData,      // in: our PXMLDOM really
     1635                                            const XML_Char *s,
     1636                                            int len)
    16371637{
    16381638    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    17431743 */
    17441744
    1745 void EXPATENTRY CommentHandler(void *pUserData,      // in: our PXMLDOM really
    1746                                const XML_Char *data)
     1745static void EXPATENTRY CommentHandler(void *pUserData,      // in: our PXMLDOM really
     1746                                      const XML_Char *data)
    17471747{
    17481748    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    17781778 */
    17791779
    1780 void EXPATENTRY StartDoctypeDeclHandler(void *pUserData,
    1781                                         const XML_Char *pcszDoctypeName,
    1782                                         const XML_Char *pcszSysid,
    1783                                         const XML_Char *pcszPubid,
    1784                                         int fHasInternalSubset)
     1780static void EXPATENTRY StartDoctypeDeclHandler(void *pUserData,
     1781                                               const XML_Char *pcszDoctypeName,
     1782                                               const XML_Char *pcszSysid,
     1783                                               const XML_Char *pcszPubid,
     1784                                               int fHasInternalSubset)
    17851785{
    17861786    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    18171817 */
    18181818
    1819 void EXPATENTRY EndDoctypeDeclHandler(void *pUserData)      // in: our PXMLDOM really
     1819static void EXPATENTRY EndDoctypeDeclHandler(void *pUserData)      // in: our PXMLDOM really
    18201820{
    18211821    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    18361836 */
    18371837
    1838 void EXPATENTRY NotationDeclHandler(void *pUserData,      // in: our PXMLDOM really
    1839                                     const XML_Char *pcszNotationName,
    1840                                     const XML_Char *pcszBase,
    1841                                     const XML_Char *pcszSystemId,
    1842                                     const XML_Char *pcszPublicId)
     1838static void EXPATENTRY NotationDeclHandler(void *pUserData,      // in: our PXMLDOM really
     1839                                           const XML_Char *pcszNotationName,
     1840                                           const XML_Char *pcszBase,
     1841                                           const XML_Char *pcszSystemId,
     1842                                           const XML_Char *pcszPublicId)
    18431843{
    18441844    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    19041904 */
    19051905
    1906 int EXPATENTRY ExternalEntityRefHandler(void *pUserData,      // in: our PXMLDOM really
    1907                                         XML_Parser parser,
    1908                                         const XML_Char *pcszContext,
    1909                                         const XML_Char *pcszBase,
    1910                                         const XML_Char *pcszSystemId,
    1911                                         const XML_Char *pcszPublicId)
     1906static int EXPATENTRY ExternalEntityRefHandler(void *pUserData,      // in: our PXMLDOM really
     1907                                               XML_Parser parser,
     1908                                               const XML_Char *pcszContext,
     1909                                               const XML_Char *pcszBase,
     1910                                               const XML_Char *pcszSystemId,
     1911                                               const XML_Char *pcszPublicId)
    19121912{
    19131913    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    19911991 */
    19921992
    1993 void EXPATENTRY ElementDeclHandler(void *pUserData,      // in: our PXMLDOM really
    1994                                    const XML_Char *pcszName,
    1995                                    XMLCONTENT *pModel)
     1993static void EXPATENTRY ElementDeclHandler(void *pUserData,      // in: our PXMLDOM really
     1994                                          const XML_Char *pcszName,
     1995                                          XMLCONTENT *pModel)
    19961996{
    19971997    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    20412041 */
    20422042
    2043 APIRET AddEnum(PCMATTRIBUTEDECL pDecl,
    2044                const char *p,           // in: start of name
    2045                const char *pNext)       // in: end of name (not included)
     2043static APIRET AddEnum(PCMATTRIBUTEDECL pDecl,
     2044                      const char *p,           // in: start of name
     2045                      const char *pNext)       // in: end of name (not included)
    20462046{
    20472047    // PSZ pszType = strhSubstr(p, pNext);
     
    20902090 */
    20912091
    2092 void EXPATENTRY AttlistDeclHandler(void *pUserData,      // in: our PXMLDOM really
    2093                                    const XML_Char *pcszElementName,
    2094                                    const XML_Char *pcszAttribName,
    2095                                    const XML_Char *pcszAttribType,
    2096                                    const XML_Char *pcszDefault,
    2097                                    int fIsRequired)
     2092static void EXPATENTRY AttlistDeclHandler(void *pUserData,      // in: our PXMLDOM really
     2093                                          const XML_Char *pcszElementName,
     2094                                          const XML_Char *pcszAttribName,
     2095                                          const XML_Char *pcszAttribType,
     2096                                          const XML_Char *pcszDefault,
     2097                                          int fIsRequired)
    20982098{
    20992099    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    22722272 */
    22732273
    2274 void EXPATENTRY EntityDeclHandler(void *pUserData,      // in: our PXMLDOM really
    2275                                   const XML_Char *pcszEntityName,
    2276                                   int fIsParameterEntity,
    2277                                   const XML_Char *pcszValue,
    2278                                   int iValueLength,
    2279                                   const XML_Char *pcszBase,
    2280                                   const XML_Char *pcszSystemId,
    2281                                   const XML_Char *pcszPublicId,
    2282                                   const XML_Char *pcszNotationName)
     2274static void EXPATENTRY EntityDeclHandler(void *pUserData,      // in: our PXMLDOM really
     2275                                         const XML_Char *pcszEntityName,
     2276                                         int fIsParameterEntity,
     2277                                         const XML_Char *pcszValue,
     2278                                         int iValueLength,
     2279                                         const XML_Char *pcszBase,
     2280                                         const XML_Char *pcszSystemId,
     2281                                         const XML_Char *pcszPublicId,
     2282                                         const XML_Char *pcszNotationName)
    22832283{
    22842284    PXMLDOM     pDom = (PXMLDOM)pUserData;
     
    29792979 */
    29802980
    2981 VOID WriteNodes(PXSTRING pxstr,
    2982                 PDOMNODE pDomNode)       // in: node whose children are to be written (initially DOCUMENT)
     2981static VOID WriteNodes(PXSTRING pxstr,
     2982                       PDOMNODE pDomNode)       // in: node whose children are to be written (initially DOCUMENT)
    29832983{
    29842984    PLISTNODE pListNode;
  • trunk/src/helpers/xmlparse.c

    r98 r142  
    848848 */
    849849
    850 XML_Parser
    851 XML_ParserCreate_MM(const XML_Char * encodingName,
    852                     const XML_Memory_Handling_Suite * memsuite,
    853                     const XML_Char * nameSep)
     850XML_Parser XML_ParserCreate_MM(const XML_Char * encodingName,
     851                               const XML_Memory_Handling_Suite * memsuite,
     852                               const XML_Char * nameSep)
    854853{
    855854
     
    11411140}
    11421141
    1143 static
    1144 void destroyBindings(BINDING * bindings, XML_Parser parser)
     1142static void destroyBindings(BINDING * bindings, XML_Parser parser)
    11451143{
    11461144    for (;;)
     
    24772475 * } */
    24782476
    2479 static
    2480 XMLERROR contentProcessor(XML_Parser parser,
    2481                           const char *start,
    2482                           const char *end,
    2483                           const char **endPtr)
     2477static XMLERROR contentProcessor(XML_Parser parser,
     2478                                 const char *start,
     2479                                 const char *end,
     2480                                 const char **endPtr)
    24842481{
    24852482    return doContent(parser, 0, encoding, start, end, endPtr);
    24862483}
    24872484
    2488 static
    2489 XMLERROR externalEntityInitProcessor(XML_Parser parser,
    2490                                      const char *start,
    2491                                      const char *end,
    2492                                      const char **endPtr)
     2485static XMLERROR externalEntityInitProcessor(XML_Parser parser,
     2486                                            const char *start,
     2487                                            const char *end,
     2488                                            const char **endPtr)
    24932489{
    24942490    XMLERROR result = initializeEncoding(parser);
     
    25002496}
    25012497
    2502 static
    2503 XMLERROR externalEntityInitProcessor2(XML_Parser parser,
    2504                                       const char *start,
    2505                                       const char *end,
    2506                                       const char **endPtr)
     2498static XMLERROR externalEntityInitProcessor2(XML_Parser parser,
     2499                                             const char *start,
     2500                                             const char *end,
     2501                                             const char **endPtr)
    25072502{
    25082503    const char *next;
     
    25352530}
    25362531
    2537 static
    2538 XMLERROR externalEntityInitProcessor3(XML_Parser parser,
    2539                                       const char *start,
    2540                                       const char *end,
    2541                                       const char **endPtr)
     2532static XMLERROR externalEntityInitProcessor3(XML_Parser parser,
     2533                                             const char *start,
     2534                                             const char *end,
     2535                                             const char **endPtr)
    25422536{
    25432537    const char *next;
     
    25772571}
    25782572
    2579 static
    2580 XMLERROR externalEntityContentProcessor(XML_Parser parser,
    2581                                         const char *start,
    2582                                         const char *end,
    2583                                         const char **endPtr)
     2573static XMLERROR externalEntityContentProcessor(XML_Parser parser,
     2574                                               const char *start,
     2575                                               const char *end,
     2576                                               const char **endPtr)
    25842577{
    25852578    return doContent(parser, 1, encoding, start, end, endPtr);
     
    33823375}
    33833376
    3384 static
    3385 int addBinding(XML_Parser parser, PREFIX * prefix, const ATTRIBUTE_ID * attId, const XML_Char * uri, BINDING ** bindingsPtr)
     3377static int addBinding(XML_Parser parser,
     3378                      PREFIX * prefix,
     3379                      const ATTRIBUTE_ID * attId,
     3380                      const XML_Char * uri,
     3381                      BINDING ** bindingsPtr)
    33863382{
    33873383    BINDING *b;
     
    34393435 * the whole file is parsed with one call. */
    34403436
    3441 static
    3442 XMLERROR cdataSectionProcessor(XML_Parser parser,
    3443                                const char *start,
    3444                                const char *end,
    3445                                const char **endPtr)
     3437static XMLERROR cdataSectionProcessor(XML_Parser parser,
     3438                                      const char *start,
     3439                                      const char *end,
     3440                                      const char **endPtr)
    34463441{
    34473442    XMLERROR result = doCdataSection(parser, encoding, &start, end, endPtr);
     
    34583453 * the section is not yet closed. */
    34593454
    3460 static
    3461 XMLERROR doCdataSection(XML_Parser parser,
    3462                         const ENCODING * enc,
    3463                         const char **startPtr,
    3464                         const char *end,
    3465                         const char **nextPtr)
     3455static XMLERROR doCdataSection(XML_Parser parser,
     3456                               const ENCODING * enc,
     3457                               const char **startPtr,
     3458                               const char *end,
     3459                               const char **nextPtr)
    34663460{
    34673461    const char *s = *startPtr;
     
    35693563 * the whole file is parsed with one call. */
    35703564
    3571 static
    3572 XMLERROR ignoreSectionProcessor(XML_Parser parser,
    3573                                 const char *start,
    3574                                 const char *end,
    3575                                 const char **endPtr)
     3565static XMLERROR ignoreSectionProcessor(XML_Parser parser,
     3566                                       const char *start,
     3567                                       const char *end,
     3568                                       const char **endPtr)
    35763569{
    35773570    XMLERROR result = doIgnoreSection(parser, encoding, &start, end, endPtr);
     
    35883581 * the section is not yet closed. */
    35893582
    3590 static
    3591 XMLERROR doIgnoreSection(XML_Parser parser,
    3592                          const ENCODING * enc,
    3593                          const char **startPtr,
    3594                          const char *end,
    3595                          const char **nextPtr)
     3583static XMLERROR doIgnoreSection(XML_Parser parser,
     3584                                const ENCODING * enc,
     3585                                const char **startPtr,
     3586                                const char *end,
     3587                                const char **nextPtr)
    35963588{
    35973589    const char *next;
     
    36503642#endif /* XML_DTD */
    36513643
    3652 static XMLERROR
    3653  initializeEncoding(XML_Parser parser)
     3644static XMLERROR initializeEncoding(XML_Parser parser)
    36543645{
    36553646    const char *s;
     
    36853676}
    36863677
    3687 static XMLERROR
    3688  processXmlDecl(XML_Parser parser, int isGeneralTextEntity,
    3689                 const char *s, const char *next)
     3678static XMLERROR  processXmlDecl(XML_Parser parser,
     3679                                int isGeneralTextEntity,
     3680                                const char *s,
     3681                                const char *next)
    36903682{
    36913683    const char *encodingName = 0;
     
    37863778}
    37873779
    3788 static XMLERROR
    3789  handleUnknownEncoding(XML_Parser parser, const XML_Char * encodingName)
     3780static XMLERROR  handleUnknownEncoding(XML_Parser parser,
     3781                                       const XML_Char * encodingName)
    37903782{
    37913783    if (unknownEncodingHandler)
     
    38303822}
    38313823
    3832 static XMLERROR
    3833  prologInitProcessor(XML_Parser parser,
    3834                      const char *s,
    3835                      const char *end,
    3836                      const char **nextPtr)
     3824static XMLERROR prologInitProcessor(XML_Parser parser,
     3825                                    const char *s,
     3826                                    const char *end,
     3827                                    const char **nextPtr)
    38373828{
    38383829    XMLERROR result = initializeEncoding(parser);
     
    38443835}
    38453836
    3846 static XMLERROR
    3847  prologProcessor(XML_Parser parser,
    3848                  const char *s,
    3849                  const char *end,
    3850                  const char **nextPtr)
     3837static XMLERROR prologProcessor(XML_Parser parser,
     3838                                const char *s,
     3839                                const char *end,
     3840                                const char **nextPtr)
    38513841{
    38523842    const char *next;
     
    38563846}
    38573847
    3858 static XMLERROR
    3859  doProlog(XML_Parser parser,
    3860           const ENCODING * enc,
    3861           const char *s,
    3862           const char *end,
    3863           int tok,
    3864           const char *next,
    3865           const char **nextPtr)
     3848static XMLERROR doProlog(XML_Parser parser,
     3849                         const ENCODING * enc,
     3850                         const char *s,
     3851                         const char *end,
     3852                         int tok,
     3853                         const char *next,
     3854                         const char **nextPtr)
    38663855{
    38673856#ifdef XML_DTD
     
    47044693}
    47054694
    4706 static
    4707 XMLERROR epilogProcessor(XML_Parser parser,
    4708                          const char *s,
    4709                          const char *end,
    4710                          const char **nextPtr)
     4695static XMLERROR epilogProcessor(XML_Parser parser,
     4696                                const char *s,
     4697                                const char *end,
     4698                                const char **nextPtr)
    47114699{
    47124700    processor = epilogProcessor;
     
    47694757#ifdef XML_DTD
    47704758
    4771 static XMLERROR
    4772  processInternalParamEntity(XML_Parser parser, ENTITY * entity)
     4759static XMLERROR processInternalParamEntity(XML_Parser parser,
     4760                                           ENTITY * entity)
    47734761{
    47744762    const char *s, *end, *next;
     
    47944782#endif /* XML_DTD */
    47954783
    4796 static
    4797 XMLERROR errorProcessor(XML_Parser parser,
    4798                         const char *s,
    4799                         const char *end,
    4800                         const char **nextPtr)
     4784static XMLERROR errorProcessor(XML_Parser parser,
     4785                               const char *s,
     4786                               const char *end,
     4787                               const char **nextPtr)
    48014788{
    48024789    return errorCode;
    48034790}
    48044791
    4805 static XMLERROR
    4806  storeAttributeValue(XML_Parser parser, const ENCODING * enc, int isCdata,
    4807                      const char *ptr, const char *end,
    4808                      STRING_POOL * pool)
     4792static XMLERROR storeAttributeValue(XML_Parser parser,
     4793                                    const ENCODING * enc,
     4794                                    int isCdata,
     4795                                    const char *ptr,
     4796                                    const char *end,
     4797                                    STRING_POOL * pool)
    48094798{
    48104799    XMLERROR result = appendAttributeValue(parser, enc, isCdata, ptr, end, pool);
     
    49704959}
    49714960
    4972 static
    4973 XMLERROR storeEntityValue(XML_Parser parser,
    4974                           const ENCODING * enc,
    4975                           const char *entityTextPtr,
    4976                           const char *entityTextEnd)
     4961static XMLERROR storeEntityValue(XML_Parser parser,
     4962                                 const ENCODING * enc,
     4963                                 const char *entityTextPtr,
     4964                                 const char *entityTextEnd)
    49774965{
    49784966    STRING_POOL *pool = &(dtd.pool);
     
    50925080}
    50935081
    5094 static void
    5095  normalizeLines(XML_Char * s)
     5082static void  normalizeLines(XML_Char * s)
    50965083{
    50975084    XML_Char *p;
     
    51205107}
    51215108
    5122 static int
    5123  reportProcessingInstruction(XML_Parser parser, const ENCODING * enc, const char *start, const char *end)
     5109static int reportProcessingInstruction(XML_Parser parser,
     5110                                       const ENCODING * enc,
     5111                                       const char *start,
     5112                                       const char *end)
    51245113{
    51255114    const XML_Char *target;
     
    51515140}
    51525141
    5153 static int
    5154  reportComment(XML_Parser parser, const ENCODING * enc, const char *start, const char *end)
     5142static int reportComment(XML_Parser parser,
     5143                         const ENCODING * enc,
     5144                         const char *start,
     5145                         const char *end)
    51555146{
    51565147    XML_Char *data;
     
    51755166}
    51765167
    5177 static void
    5178  reportDefault(XML_Parser parser, const ENCODING * enc, const char *s, const char *end)
     5168static void reportDefault(XML_Parser parser,
     5169                          const ENCODING * enc,
     5170                          const char *s,
     5171                          const char *end)
    51795172{
    51805173    if (MUST_CONVERT(enc, s))
     
    52095202
    52105203
    5211 static int
    5212  defineAttribute(ELEMENT_TYPE * type, ATTRIBUTE_ID * attId, int isCdata,
    5213                  int isId, const XML_Char * value, XML_Parser parser)
     5204static int defineAttribute(ELEMENT_TYPE * type,
     5205                           ATTRIBUTE_ID * attId,
     5206                           int isCdata,
     5207                           int isId,
     5208                           const XML_Char * value,
     5209                           XML_Parser parser)
    52145210{
    52155211    DEFAULT_ATTRIBUTE *att;
     
    52535249}
    52545250
    5255 static int setElementTypePrefix(XML_Parser parser, ELEMENT_TYPE * elementType)
     5251static int setElementTypePrefix(XML_Parser parser,
     5252                                ELEMENT_TYPE * elementType)
    52565253{
    52575254    const XML_Char *name;
     
    52855282}
    52865283
    5287 static ATTRIBUTE_ID *
    5288  getAttributeId(XML_Parser parser, const ENCODING * enc, const char *start, const char *end)
     5284static ATTRIBUTE_ID * getAttributeId(XML_Parser parser,
     5285                                     const ENCODING * enc,
     5286                                     const char *start,
     5287                                     const char *end)
    52895288{
    52905289    ATTRIBUTE_ID *id;
     
    53525351#define CONTEXT_SEP XML_T('\f')
    53535352
    5354 static
    5355 const XML_Char *getContext(XML_Parser parser)
     5353static const XML_Char *getContext(XML_Parser parser)
    53565354{
    53575355    HASH_TABLE_ITER iter;
     
    54265424}
    54275425
    5428 static
    5429 int setContext(XML_Parser parser, const XML_Char * context)
     5426static int setContext(XML_Parser parser, const XML_Char * context)
    54305427{
    54315428    const XML_Char *s = context;
     
    54915488
    54925489
    5493 static
    5494 void normalizePublicId(XML_Char * publicId)
     5490static void normalizePublicId(XML_Char * publicId)
    54955491{
    54965492    XML_Char *p = publicId;
     
    57835779#define INIT_SIZE 64
    57845780
    5785 static
    5786 int keyeq(KEY s1, KEY s2)
     5781static int keyeq(KEY s1, KEY s2)
    57875782{
    57885783    for (; *s1 == *s2; s1++, s2++)
     
    57925787}
    57935788
    5794 static
    5795 unsigned long hash(KEY s)
     5789static unsigned long hash(KEY s)
    57965790{
    57975791    unsigned long h = 0;
     
    58025796}
    58035797
    5804 static
    5805 NAMED *lookup(HASH_TABLE * table, KEY name, size_t createSize)
     5798static NAMED *lookup(HASH_TABLE * table, KEY name, size_t createSize)
    58065799{
    58075800    size_t i;
     
    58755868}
    58765869
    5877 static
    5878 void hashTableDestroy(HASH_TABLE * table)
     5870static void hashTableDestroy(HASH_TABLE * table)
    58795871{
    58805872    size_t i;
     
    58915883}
    58925884
    5893 static
    5894 void hashTableInit(HASH_TABLE * p, XML_Memory_Handling_Suite * ms)
     5885static void hashTableInit(HASH_TABLE * p, XML_Memory_Handling_Suite * ms)
    58955886{
    58965887    p->size = 0;
     
    59015892}
    59025893
    5903 static
    5904 void hashTableIterInit(HASH_TABLE_ITER * iter, const HASH_TABLE * table)
     5894static void hashTableIterInit(HASH_TABLE_ITER * iter, const HASH_TABLE * table)
    59055895{
    59065896    iter->p = table->v;
     
    59085898}
    59095899
    5910 static
    5911 NAMED *hashTableIterNext(HASH_TABLE_ITER * iter)
     5900static NAMED *hashTableIterNext(HASH_TABLE_ITER * iter)
    59125901{
    59135902    while (iter->p != iter->end)
     
    59225911
    59235912
    5924 static
    5925 void poolInit(STRING_POOL * pool, XML_Memory_Handling_Suite * ms)
     5913static void poolInit(STRING_POOL * pool, XML_Memory_Handling_Suite * ms)
    59265914{
    59275915    pool->blocks = 0;
     
    59335921}
    59345922
    5935 static
    5936 void poolClear(STRING_POOL * pool)
     5923static void poolClear(STRING_POOL * pool)
    59375924{
    59385925    if (!pool->freeBlocks)
     
    59575944}
    59585945
    5959 static
    5960 void poolDestroy(STRING_POOL * pool)
     5946static void poolDestroy(STRING_POOL * pool)
    59615947{
    59625948    BLOCK *p = pool->blocks;
     
    61726158}
    61736159
    6174 static int
    6175  nextScaffoldPart(XML_Parser parser)
     6160static int nextScaffoldPart(XML_Parser parser)
    61766161{
    61776162    CONTENT_SCAFFOLD *me;
     
    62226207}                               /* End nextScaffoldPart */
    62236208
    6224 static void
    6225  build_node(XML_Parser parser,
    6226             int src_node,
    6227             XMLCONTENT * dest,
    6228             XMLCONTENT ** contpos,
    6229             char **strpos)
     6209static void  build_node(XML_Parser parser,
     6210                        int src_node,
     6211                        XMLCONTENT * dest,
     6212                        XMLCONTENT ** contpos,
     6213                        char **strpos)
    62306214{
    62316215    dest->type = dtd.scaffold[src_node].type;
     
    62656249}                               /* End build_node */
    62666250
    6267 static XMLCONTENT *
    6268  build_model(XML_Parser parser)
     6251static XMLCONTENT * build_model(XML_Parser parser)
    62696252{
    62706253    XMLCONTENT *ret;
     
    62846267}                               /* End build_model */
    62856268
    6286 static ELEMENT_TYPE *
    6287  getElementType(XML_Parser parser,
    6288                 const ENCODING * enc,
    6289                 const char *ptr,
    6290                 const char *end)
     6269static ELEMENT_TYPE * getElementType(XML_Parser parser,
     6270                                     const ENCODING * enc,
     6271                                     const char *ptr,
     6272                                     const char *end)
    62916273{
    62926274    const XML_Char *name = poolStoreString(&dtd.pool, enc, ptr, end, NULL);
  • trunk/src/helpers/xprf.c

    r133 r142  
    157157 */
    158158
    159 PXINIAPPDATA FindApp(PXINI pXIni,           // in: profile opened with xprfOpenProfile
    160                      const char *pcszApp)
     159static PXINIAPPDATA FindApp(PXINI pXIni,           // in: profile opened with xprfOpenProfile
     160                            const char *pcszApp)
    161161{
    162162    PLISTNODE pAppNode = lstQueryFirstNode(&pXIni->llApps);
     
    183183 */
    184184
    185 PXINIAPPDATA CreateApp(PXINI pXIni,         // in: profile opened with xprfOpenProfile
    186                        const char *pcszApp)
     185static PXINIAPPDATA CreateApp(PXINI pXIni,         // in: profile opened with xprfOpenProfile
     186                              const char *pcszApp)
    187187{
    188188    PXINIAPPDATA pAppData;
     
    210210 */
    211211
    212 PXINIKEYDATA FindKey(PXINIAPPDATA pAppData,
    213                      const char *pcszKey)
     212static PXINIKEYDATA FindKey(PXINIAPPDATA pAppData,
     213                            const char *pcszKey)
    214214{
    215215    PLISTNODE pKeyNode = lstQueryFirstNode(&pAppData->llKeys);
     
    236236 */
    237237
    238 PXINIKEYDATA CreateKey(PXINIAPPDATA pAppData,
    239                        const char *pcszKey,     // in: key name
    240                        PBYTE pbData,            // in: data for key
    241                        ULONG cbData)            // in: sizeof (*pbData)
     238static PXINIKEYDATA CreateKey(PXINIAPPDATA pAppData,
     239                              const char *pcszKey,     // in: key name
     240                              PBYTE pbData,            // in: data for key
     241                              ULONG cbData)            // in: sizeof (*pbData)
    242242{
    243243    PXINIKEYDATA pKeyData;
     
    274274 */
    275275
    276 VOID FreeKey(PXINIKEYDATA pKeyDataThis)
     276static VOID FreeKey(PXINIKEYDATA pKeyDataThis)
    277277{
    278278    if (pKeyDataThis->pszKeyName)
     
    292292 */
    293293
    294 VOID FreeApp(PXINIAPPDATA pAppDataThis)
     294static VOID FreeApp(PXINIAPPDATA pAppDataThis)
    295295{
    296296    PLISTNODE pKeyNode = lstQueryFirstNode(&pAppDataThis->llKeys);
     
    319319 */
    320320
    321 BOOL FreeINI(PXINI pXIni)       // in: profile opened with xprfOpenProfile
     321static BOOL FreeINI(PXINI pXIni)       // in: profile opened with xprfOpenProfile
    322322{
    323323    BOOL brc = FALSE;
     
    356356 */
    357357
    358 BOOL ReadINI(PXINI pXIni)       // in: profile opened with xprfOpenProfile
     358static BOOL ReadINI(PXINI pXIni)       // in: profile opened with xprfOpenProfile
    359359{
    360360    BOOL brc = FALSE;
     
    457457 */
    458458
    459 BOOL WriteINI(PXINI pXIni)      // in: profile opened with xprfOpenProfile
     459static BOOL WriteINI(PXINI pXIni)      // in: profile opened with xprfOpenProfile
    460460{
    461461    BOOL    brc = FALSE;
Note: See TracChangeset for help on using the changeset viewer.