Changeset 142 for trunk/src/helpers
- Timestamp:
- Feb 21, 2002, 8:24:22 PM (24 years ago)
- Location:
- trunk/src/helpers
- Files:
-
- 28 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/helpers/apps.c
r141 r142 786 786 */ 787 787 788 VOID CallBatchCorrectly(PPROGDETAILS pProgDetails,789 PXSTRING pstrParams, // in/out: modified parameters (reallocated)790 const char *pcszEnvVar, // in: env var spec'g command proc791 // (e.g. "OS2_SHELL"); can be NULL792 const char *pcszDefProc) // in: def't command proc (e.g. "CMD.EXE")788 static 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") 793 793 { 794 794 // XXX.CMD file as executable: … … 899 899 * wrapper around WinStartApp which copies all the 900 900 * parameters into a contiguous block of tiled memory. 901 * 901 902 * 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. 903 905 * 904 906 *@@added V0.9.18 (2002-02-13) [umoeller] 905 907 */ 906 908 907 APIRET CallWinStartApp(HAPP *phapp, // out: application handle if NO_ERROR is returned908 HWND hwndNotify, // in: notify window or NULLHANDLE909 const PROGDETAILS *pcProgDetails, // in: program spec (req.)910 PCSZ pcszParamsPatched)909 static 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) 911 913 { 912 914 ULONG cb, … … 932 934 933 935 // allocate a chunk of tiled memory from OS/2 to make sure 934 // this is aligned on a 64K memory ... otherwise we keep getting935 // hangs if this is memory that was allocated by some other thread936 // this is aligned on a 64K memory (backed up by a 16-bit 937 // LDT selector) 936 938 cb = sizeof(PROGDETAILS); 937 939 if (cbTitle = strhSize(pcProgDetails->pszTitle)) -
trunk/src/helpers/cctl_chart.c
r95 r142 281 281 */ 282 282 283 VOID DrawCenteredText(HPS hpsMem,284 PPOINTL pptlMiddlePoint,285 const char *pcsz)283 static VOID DrawCenteredText(HPS hpsMem, 284 PPOINTL pptlMiddlePoint, 285 const char *pcsz) 286 286 { 287 287 if (pcsz) … … 354 354 */ 355 355 356 VOID PaintBarChart(HPS hpsMem,357 PRECTL prclWholeStatic, // in: rectl to paint into358 PCHARTDATA pChartData, // in: chart data359 PCHARTSTYLE pChartStyle, // in: chart style360 double dTotal, // in: sum of all values in pChartData361 LONG lTextColor, // in: description text color (RGB)362 HRGN* paRegions) // out: GPI regions for each data item356 static 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 363 363 { 364 364 ULONG ulYBottomNow = 0; … … 557 557 */ 558 558 559 VOID PaintPieChart(HPS hpsMem,560 PRECTL prclWholeStatic, // in: rectl to paint into561 PCHARTDATA pChartData, // in: chart data562 PCHARTSTYLE pChartStyle, // in: chart style563 double dTotal, // in: sum of all values in pChartData564 LONG lTextColor, // in: description text color (RGB)565 HRGN* paRegions) // out: GPI regions for each data item559 static 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 566 566 { 567 567 ULONG ulYBottomNow = 0; … … 1096 1096 */ 1097 1097 1098 VOID CleanupBitmap(PCHARTCDATA pChtCData)1098 static VOID CleanupBitmap(PCHARTCDATA pChtCData) 1099 1099 { 1100 1100 if (pChtCData) … … 1151 1151 */ 1152 1152 1153 VOID CleanupData(PCHARTCDATA pChtCData)1153 static VOID CleanupData(PCHARTCDATA pChtCData) 1154 1154 { 1155 1155 if (pChtCData) … … 1203 1203 */ 1204 1204 1205 VOID SetChartData(HWND hwndChart,1206 PCHARTCDATA pChtCData,1207 PCHARTDATA pcdNew)1205 static VOID SetChartData(HWND hwndChart, 1206 PCHARTCDATA pChtCData, 1207 PCHARTDATA pcdNew) 1208 1208 { 1209 1209 ULONG ul = 0; … … 1274 1274 */ 1275 1275 1276 VOID PaintChart(HWND hwndChart,1277 PCHARTCDATA pChtCData,1278 HPS hps,1279 PRECTL prclPaint)1276 static VOID PaintChart(HWND hwndChart, 1277 PCHARTCDATA pChtCData, 1278 HPS hps, 1279 PRECTL prclPaint) 1280 1280 { 1281 1281 RECTL rclStatic; … … 1451 1451 */ 1452 1452 1453 LONG FindItemFromPoint(PCHARTCDATA pChtCData,1454 LONG lx,1455 LONG ly)1453 static LONG FindItemFromPoint(PCHARTCDATA pChtCData, 1454 LONG lx, 1455 LONG ly) 1456 1456 { 1457 1457 // LONG lRegionFound = -1; // none … … 1492 1492 */ 1493 1493 1494 VOID SendWMControl(HWND hwndChart,1495 MPARAM mp1Mouse,1496 USHORT usNotify,1497 ULONG ulEmphasis, // 0 or 11498 LONG lIndex)1494 static VOID SendWMControl(HWND hwndChart, 1495 MPARAM mp1Mouse, 1496 USHORT usNotify, 1497 ULONG ulEmphasis, // 0 or 1 1498 LONG lIndex) 1499 1499 { 1500 1500 HWND hwndOwner; … … 1524 1524 */ 1525 1525 1526 BOOL SetEmphasis(HWND hwndChart,1527 PCHARTCDATA pChtCData,1528 ULONG ulEmphasis, // in: 0 == selection, 1 == source emphasis1529 MPARAM mp1, // in: mp1 with mouse values or -1 if none1530 LONG lIndex,1531 BOOL fIsContextMenu)1526 static 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) 1532 1532 { 1533 1533 BOOL brc = FALSE; -
trunk/src/helpers/cctl_checkcnr.c
r74 r142 215 215 */ 216 216 217 VOID CnrCheckboxClicked(PCHECKBOXCNROWNER pcbco,218 PCHECKBOXRECORDCORE precc,219 BOOL fToggleAndNotify) // if TRUE, toggle state and notify owner (CN_RECORDCHECKED)217 static VOID CnrCheckboxClicked(PCHECKBOXCNROWNER pcbco, 218 PCHECKBOXRECORDCORE precc, 219 BOOL fToggleAndNotify) // if TRUE, toggle state and notify owner (CN_RECORDCHECKED) 220 220 { 221 221 if (precc->ulStyle & WS_VISIBLE) … … 838 838 */ 839 839 840 ULONG EXPENTRY fncbFindCheckRecord(HWND hwndCnr, // in: container841 PRECORDCORE preccThis, // in: current record (from cnrhForAllRecords)842 ULONG ulItemID, // in: item ID to find843 ULONG ulppRecc) // out: PRECORDCORE* if found840 static 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 844 844 { 845 845 ULONG ulrc = 0; -
trunk/src/helpers/cctl_combo.c
r128 r142 125 125 */ 126 126 127 VOID PaintButtonBitmap(HWND hwnd,128 PCOMBODATA pcd)127 static VOID PaintButtonBitmap(HWND hwnd, 128 PCOMBODATA pcd) 129 129 { 130 130 HPS hps; … … 157 157 */ 158 158 159 MRESULT EXPENTRY fnwpSubclassedComboButton(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)159 static MRESULT EXPENTRY fnwpSubclassedComboButton(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 160 160 { 161 161 MRESULT mrc = 0; … … 193 193 */ 194 194 195 VOID ShowListbox(HWND hwnd, // in: subclassed entry field196 PCOMBODATA pcd,197 BOOL fShow) // in: TRUE == show, FALSE == hide195 static VOID ShowListbox(HWND hwnd, // in: subclassed entry field 196 PCOMBODATA pcd, 197 BOOL fShow) // in: TRUE == show, FALSE == hide 198 198 { 199 199 BOOL fHilite = FALSE; … … 261 261 */ 262 262 263 MRESULT EXPENTRY fnwpComboSubclass(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)263 static MRESULT EXPENTRY fnwpComboSubclass(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 264 264 { 265 265 MRESULT mrc = 0; -
trunk/src/helpers/cctl_progbar.c
r21 r142 101 101 */ 102 102 103 VOID PaintProgress(PPROGRESSBARDATA pData,104 HWND hwndBar,105 PRECTL prclWin, // in: window rectangle (WinQueryWindowRect)106 HPS hps)103 static VOID PaintProgress(PPROGRESSBARDATA pData, 104 HWND hwndBar, 105 PRECTL prclWin, // in: window rectangle (WinQueryWindowRect) 106 HPS hps) 107 107 { 108 108 POINTL ptlText; // , aptlText[TXTBOX_COUNT]; -
trunk/src/helpers/cctl_splitwin.c
r99 r142 97 97 */ 98 98 99 VOID PaintSplitWindow(HWND hwndSplit)99 static VOID PaintSplitWindow(HWND hwndSplit) 100 100 { 101 101 HPS hps = WinBeginPaint(hwndSplit, (HPS)0, NULL); … … 251 251 */ 252 252 253 VOID TrackSplitBar(HWND hwndBar,254 PSPLITBARDATA pData)253 static VOID TrackSplitBar(HWND hwndBar, 254 PSPLITBARDATA pData) 255 255 { 256 256 TRACKINFO track; … … 400 400 */ 401 401 402 VOID PaintSplitBar(HWND hwndBar,403 PSPLITBARDATA pData)402 static VOID PaintSplitBar(HWND hwndBar, 403 PSPLITBARDATA pData) 404 404 { 405 405 HPS hps; -
trunk/src/helpers/cctl_tooltip.c
r96 r142 135 135 */ 136 136 137 BOOL LockSubclassedTools(VOID)137 static BOOL LockSubclassedTools(VOID) 138 138 { 139 139 if (!G_hmtxSubclassedTools) … … 163 163 */ 164 164 165 VOID UnlockSubclassedTools(VOID)165 static VOID UnlockSubclassedTools(VOID) 166 166 { 167 167 DosReleaseMutexSem(G_hmtxSubclassedTools); // was missing V0.9.12 (2001-05-03) [umoeller] … … 196 196 */ 197 197 198 PSUBCLASSEDTOOL FindSubclassedTool(HWND hwndTool)198 static PSUBCLASSEDTOOL FindSubclassedTool(HWND hwndTool) 199 199 { 200 200 PLISTNODE pNode = lstQueryFirstNode(&G_llSubclassedTools); … … 285 285 */ 286 286 287 BOOL SubclassTool(HWND hwndTooltip,288 HWND hwndTool)287 static BOOL SubclassTool(HWND hwndTooltip, 288 HWND hwndTool) 289 289 { 290 290 BOOL brc = FALSE; … … 325 325 */ 326 326 327 BOOL UnSubclassTool(HWND hwndTool)327 static BOOL UnSubclassTool(HWND hwndTool) 328 328 { 329 329 PSUBCLASSEDTOOL pst = FindSubclassedTool(hwndTool); … … 406 406 */ 407 407 408 VOID UpdateTooltipPresColors(HWND hwndTooltip) // in: tooltip control408 static VOID UpdateTooltipPresColors(HWND hwndTooltip) // in: tooltip control 409 409 { 410 410 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 439 439 */ 440 440 441 MRESULT TtmCreate(HWND hwndTooltip,442 MPARAM mp2)441 static MRESULT TtmCreate(HWND hwndTooltip, 442 MPARAM mp2) 443 443 { 444 444 PTOOLTIPDATA pttd; … … 510 510 */ 511 511 512 BOOL TtmTimer(HWND hwndTooltip, MPARAM mp1)512 static BOOL TtmTimer(HWND hwndTooltip, MPARAM mp1) 513 513 { 514 514 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 553 553 */ 554 554 555 VOID TtmPaint(HWND hwndTooltip)555 static VOID TtmPaint(HWND hwndTooltip) 556 556 { 557 557 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 645 645 */ 646 646 647 VOID TtmDestroy(HWND hwndTooltip)647 static VOID TtmDestroy(HWND hwndTooltip) 648 648 { 649 649 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 691 691 */ 692 692 693 MRESULT TtmAddTool(HWND hwndTooltip, MPARAM mp2)693 static MRESULT TtmAddTool(HWND hwndTooltip, MPARAM mp2) 694 694 { 695 695 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 732 732 */ 733 733 734 VOID TtmDelTool(HWND hwndTooltip, MPARAM mp2)734 static VOID TtmDelTool(HWND hwndTooltip, MPARAM mp2) 735 735 { 736 736 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 780 780 */ 781 781 782 VOID TtmRelayEvent(HWND hwndTooltip, MPARAM mp2)782 static VOID TtmRelayEvent(HWND hwndTooltip, MPARAM mp2) 783 783 { 784 784 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 854 854 */ 855 855 856 MRESULT TtmGetDelayTime(HWND hwndTooltip, MPARAM mp1)856 static MRESULT TtmGetDelayTime(HWND hwndTooltip, MPARAM mp1) 857 857 { 858 858 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 879 879 */ 880 880 881 VOID TtmSetDelayTime(HWND hwndTooltip, MPARAM mp1, MPARAM mp2)881 static VOID TtmSetDelayTime(HWND hwndTooltip, MPARAM mp1, MPARAM mp2) 882 882 { 883 883 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 912 912 */ 913 913 914 VOID TtmGetText(HWND hwndTooltip, MPARAM mp2)914 static VOID TtmGetText(HWND hwndTooltip, MPARAM mp2) 915 915 { 916 916 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 955 955 */ 956 956 957 MRESULT TtmEnumTools(HWND hwndTooltip, MPARAM mp1, MPARAM mp2)957 static MRESULT TtmEnumTools(HWND hwndTooltip, MPARAM mp1, MPARAM mp2) 958 958 { 959 959 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 980 980 */ 981 981 982 MRESULT TtmGetCurrentTool(HWND hwndTooltip, MPARAM mp2)982 static MRESULT TtmGetCurrentTool(HWND hwndTooltip, MPARAM mp2) 983 983 { 984 984 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 1003 1003 */ 1004 1004 1005 MRESULT TtmGetToolInfo(HWND hwndTooltip, MPARAM mp2)1005 static MRESULT TtmGetToolInfo(HWND hwndTooltip, MPARAM mp2) 1006 1006 { 1007 1007 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 1042 1042 */ 1043 1043 1044 VOID FormatTooltip(HWND hwndTooltip,1045 PTOOLTIPDATA pttd,1046 PPOINTL pptlPointer) // in: current pointer pos or NULL1044 static VOID FormatTooltip(HWND hwndTooltip, 1045 PTOOLTIPDATA pttd, 1046 PPOINTL pptlPointer) // in: current pointer pos or NULL 1047 1047 { 1048 1048 // find out how much space we need … … 1162 1162 */ 1163 1163 1164 VOID TtmUpdateTipText(HWND hwndTooltip,1165 const char *pcszNewText)1164 static VOID TtmUpdateTipText(HWND hwndTooltip, 1165 const char *pcszNewText) 1166 1166 { 1167 1167 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); … … 1212 1212 */ 1213 1213 1214 VOID TtmShowTooltip(HWND hwndTooltip,1215 BOOL fShow) // if TRUE: show, else: HIDE1214 static VOID TtmShowTooltip(HWND hwndTooltip, 1215 BOOL fShow) // if TRUE: show, else: HIDE 1216 1216 { 1217 1217 PTOOLTIPDATA pttd = (PTOOLTIPDATA)WinQueryWindowPtr(hwndTooltip, 1); -
trunk/src/helpers/comctl.c
r132 r142 977 977 */ 978 978 979 PANIMATIONDATA CreateAnimationData(HAB hab,980 HWND hwndStatic,981 USHORT cAnimations)979 static PANIMATIONDATA CreateAnimationData(HAB hab, 980 HWND hwndStatic, 981 USHORT cAnimations) 982 982 { 983 983 PANIMATIONDATA pa = NULL; -
trunk/src/helpers/debug.c
r121 r142 362 362 ********************************************************************/ 363 363 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);364 static int Read16CodeView(FILE *LogFile, PXDEBUGINFO pxdi, int fh, int TrapSeg, int TrapOff, CHAR *FileName); 365 static int Read32PmDebug(FILE *LogFile, PXDEBUGINFO pxdi, int fh, int TrapSeg, int TrapOff, CHAR *FileName); 366 366 367 367 /* … … 384 384 */ 385 385 386 VOID WriteDebugInfo(FILE *LogFile, // in: open log file387 PXDEBUGINFO pxdi) // in: debug info386 static VOID WriteDebugInfo(FILE *LogFile, // in: open log file 387 PXDEBUGINFO pxdi) // in: debug info 388 388 { 389 389 fprintf(LogFile, … … 617 617 */ 618 618 619 int Read32PmDebug(FILE *LogFile, // in: text log file to write to620 PXDEBUGINFO pxdi,621 int ModuleFile, // in: module file opened with sopen()622 int TrapSeg,623 int TrapOff,624 CHAR *FileName)619 static 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) 625 625 { 626 626 static unsigned int CurrSymSeg, NrSymbol, … … 1049 1049 */ 1050 1050 1051 int Read16CodeView(FILE *LogFile, // in: text log file to write to1052 PXDEBUGINFO pxdi,1053 int fh,1054 int TrapSeg,1055 int TrapOff,1056 CHAR *FileName)1051 static 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) 1057 1057 { 1058 1058 static unsigned short int offset, … … 1214 1214 */ 1215 1215 1216 VOID var_value(void *varptr, // in: address of the variable on the stack1217 char *pszBuf, // out: information1218 BYTE type) // in: type; if >= 32, we'll call DosQueryMem1216 static 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 1219 1219 { 1220 1220 ULONG Size = 1, … … 1298 1298 */ 1299 1299 1300 BOOL search_userdefs(FILE *LogFile, // in: text log file to write to1301 ULONG stackofs,1302 USHORT var_no)1300 static BOOL search_userdefs(FILE *LogFile, // in: text log file to write to 1301 ULONG stackofs, 1302 USHORT var_no) 1303 1303 { 1304 1304 USHORT pos; … … 1342 1342 */ 1343 1343 1344 BOOL search_pointers(FILE *LogFile, // in: text log file to write to1345 ULONG stackofs,1346 USHORT var_no)1344 static BOOL search_pointers(FILE *LogFile, // in: text log file to write to 1345 ULONG stackofs, 1346 USHORT var_no) 1347 1347 { 1348 1348 USHORT pos, upos; -
trunk/src/helpers/dialog.c
r137 r142 230 230 #define PM_GROUP_SPACING_TOP 16 231 231 232 APIRET ProcessTable(PTABLEDEF pTableDef,233 const CONTROLPOS *pcpTable,234 PROCESSMODE ProcessMode,235 PDLGPRIVATE pDlgData);232 static APIRET ProcessTable(PTABLEDEF pTableDef, 233 const CONTROLPOS *pcpTable, 234 PROCESSMODE ProcessMode, 235 PDLGPRIVATE pDlgData); 236 236 237 237 /* … … 241 241 */ 242 242 243 VOID SetDlgFont(PCONTROLDEF pControlDef,244 PDLGPRIVATE pDlgData)243 static VOID SetDlgFont(PCONTROLDEF pControlDef, 244 PDLGPRIVATE pDlgData) 245 245 { 246 246 LONG lPointSize = 0; … … 307 307 */ 308 308 309 APIRET CalcAutoSizeText(PCONTROLDEF pControlDef,310 BOOL fMultiLine, // in: if TRUE, multiple lines311 ULONG ulWidth, // in: proposed width of control312 PSIZEL pszlAuto, // out: computed size313 PDLGPRIVATE pDlgData)309 static 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) 314 314 { 315 315 APIRET arc = NO_ERROR; … … 373 373 */ 374 374 375 APIRET CalcAutoSize(PCONTROLDEF pControlDef,376 ULONG ulWidth, // in: proposed width of control377 PSIZEL pszlAuto, // out: computed size378 PDLGPRIVATE pDlgData)375 static APIRET CalcAutoSize(PCONTROLDEF pControlDef, 376 ULONG ulWidth, // in: proposed width of control 377 PSIZEL pszlAuto, // out: computed size 378 PDLGPRIVATE pDlgData) 379 379 { 380 380 APIRET arc = NO_ERROR; … … 476 476 */ 477 477 478 APIRET ColumnCalcSizes(PCOLUMNDEF pColumnDef,479 PROCESSMODE ProcessMode, // in: PROCESS_1_CALC_SIZES or PROCESS_3_CALC_FINAL_TABLE_SIZES480 PDLGPRIVATE pDlgData)478 static APIRET ColumnCalcSizes(PCOLUMNDEF pColumnDef, 479 PROCESSMODE ProcessMode, // in: PROCESS_1_CALC_SIZES or PROCESS_3_CALC_FINAL_TABLE_SIZES 480 PDLGPRIVATE pDlgData) 481 481 { 482 482 APIRET arc = NO_ERROR; … … 602 602 */ 603 603 604 APIRET ColumnCalcPositions(PCOLUMNDEF pColumnDef,605 PROWDEF pOwningRow, // in: current row from ProcessRow606 PLONG plX, // in/out: PROCESS_4_CALC_POSITIONS only607 PDLGPRIVATE pDlgData)604 static 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) 608 608 { 609 609 APIRET arc = NO_ERROR; … … 689 689 */ 690 690 691 APIRET ColumnCreateControls(PCOLUMNDEF pColumnDef,692 PDLGPRIVATE pDlgData)691 static APIRET ColumnCreateControls(PCOLUMNDEF pColumnDef, 692 PDLGPRIVATE pDlgData) 693 693 { 694 694 APIRET arc = NO_ERROR; … … 977 977 */ 978 978 979 APIRET ProcessColumn(PCOLUMNDEF pColumnDef,980 PROWDEF pOwningRow, // in: current row from ProcessRow981 PROCESSMODE ProcessMode, // in: processing mode (see ProcessAll)982 PLONG plX, // in/out: PROCESS_4_CALC_POSITIONS only983 PDLGPRIVATE pDlgData)979 static 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) 984 984 { 985 985 APIRET arc = NO_ERROR; … … 1127 1127 */ 1128 1128 1129 APIRET ProcessRow(PROWDEF pRowDef,1130 PTABLEDEF pOwningTable, // in: current table from ProcessTable1131 PROCESSMODE ProcessMode, // in: processing mode (see ProcessAll)1132 PLONG plY, // in/out: current y position (decremented)1133 PDLGPRIVATE pDlgData)1129 static 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) 1134 1134 { 1135 1135 APIRET arc = NO_ERROR; … … 1204 1204 */ 1205 1205 1206 APIRET ProcessTable(PTABLEDEF pTableDef,1207 const CONTROLPOS *pcpTable, // in: table position with PROCESS_4_CALC_POSITIONS1208 PROCESSMODE ProcessMode, // in: processing mode (see ProcessAll)1209 PDLGPRIVATE pDlgData)1206 static 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) 1210 1210 { 1211 1211 APIRET arc = NO_ERROR; … … 1297 1297 */ 1298 1298 1299 APIRET ProcessAll(PDLGPRIVATE pDlgData,1300 PROCESSMODE ProcessMode)1299 static APIRET ProcessAll(PDLGPRIVATE pDlgData, 1300 PROCESSMODE ProcessMode) 1301 1301 { 1302 1302 APIRET arc = NO_ERROR; … … 1353 1353 */ 1354 1354 1355 APIRET CreateColumn(PROWDEF pCurrentRow,1356 BOOL fIsNestedTable,1357 PVOID pvDefinition, // in: either PTABLEDEF or PCONTROLDEF1358 PCOLUMNDEF *ppColumnDef) // out: new COLUMNDEF1355 static APIRET CreateColumn(PROWDEF pCurrentRow, 1356 BOOL fIsNestedTable, 1357 PVOID pvDefinition, // in: either PTABLEDEF or PCONTROLDEF 1358 PCOLUMNDEF *ppColumnDef) // out: new COLUMNDEF 1359 1359 { 1360 1360 APIRET arc = NO_ERROR; … … 1399 1399 */ 1400 1400 1401 VOID FreeTable(PTABLEDEF pTable)1401 static VOID FreeTable(PTABLEDEF pTable) 1402 1402 { 1403 1403 // for each table, clean up the rows … … 1457 1457 */ 1458 1458 1459 APIRET Dlg0_Init(PDLGPRIVATE *ppDlgData,1460 PCSZ pcszControlsFont)1459 static APIRET Dlg0_Init(PDLGPRIVATE *ppDlgData, 1460 PCSZ pcszControlsFont) 1461 1461 { 1462 1462 PDLGPRIVATE pDlgData; … … 1480 1480 */ 1481 1481 1482 APIRET Dlg1_ParseTables(PDLGPRIVATE pDlgData,1483 PCDLGHITEM paDlgItems, // in: definition array1484 ULONG cDlgItems) // in: array item count (NOT array size)1482 static APIRET Dlg1_ParseTables(PDLGPRIVATE pDlgData, 1483 PCDLGHITEM paDlgItems, // in: definition array 1484 ULONG cDlgItems) // in: array item count (NOT array size) 1485 1485 { 1486 1486 APIRET arc = NO_ERROR; … … 1651 1651 */ 1652 1652 1653 APIRET Dlg2_CalcSizes(PDLGPRIVATE pDlgData)1653 static APIRET Dlg2_CalcSizes(PDLGPRIVATE pDlgData) 1654 1654 { 1655 1655 APIRET arc; … … 1686 1686 */ 1687 1687 1688 APIRET Dlg3_PositionAndCreate(PDLGPRIVATE pDlgData,1689 HWND *phwndFocusItem) // out: item to give focus to1688 static APIRET Dlg3_PositionAndCreate(PDLGPRIVATE pDlgData, 1689 HWND *phwndFocusItem) // out: item to give focus to 1690 1690 { 1691 1691 APIRET arc = NO_ERROR; … … 1735 1735 */ 1736 1736 1737 VOID Dlg9_Cleanup(PDLGPRIVATE *ppDlgData)1737 static VOID Dlg9_Cleanup(PDLGPRIVATE *ppDlgData) 1738 1738 { 1739 1739 PDLGPRIVATE pDlgData; -
trunk/src/helpers/dosh.c
r137 r142 3046 3046 3047 3047 strcpy(szFilename, pszExisting); 3048 pszLastDot = strrchr(szFilename, '.'); 3049 if (! pszLastDot)3048 3049 if (!(pszLastDot = strrchr(szFilename, '.'))) 3050 3050 // no dot in filename: 3051 3051 pszLastDot = szFilename + strlen(szFilename); 3052 3052 3053 do 3053 3054 { … … 3415 3416 { 3416 3417 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'; 3420 3422 arc = DosQueryCurrentDir(0, pszBuf + 3, &cbBuf); 3421 3423 } … … 3981 3983 */ 3982 3984 3983 VOID GetInfoSegs(VOID)3985 static VOID GetInfoSegs(VOID) 3984 3986 { 3985 3987 SEL GlobalInfoSegSelector, -
trunk/src/helpers/dosh2.c
r135 r142 368 368 */ 369 369 370 APIRET CopyToBuffer(PSZ pszTarget, // out: target buffer371 PCSZ pcszSource, // in: source string372 ULONG cbTarget) // in: size of target buffer370 static APIRET CopyToBuffer(PSZ pszTarget, // out: target buffer 371 PCSZ pcszSource, // in: source string 372 ULONG cbTarget) // in: size of target buffer 373 373 { 374 374 ULONG ulLength = strlen(pcszSource); … … 485 485 */ 486 486 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)487 static 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) 490 490 { 491 491 APIRET arc = NO_ERROR; … … 784 784 */ 785 785 786 APIRET AppendPartition(PARTITIONINFO **pppiFirst,787 PARTITIONINFO **pppiThis, // in/out: partition info; pointer will be advanced788 PUSHORT posCount, // in/out: partition count789 BYTE bDisk, // in: disk of partition790 const char *pszBootName, // in: boot partition name791 CHAR cLetter, // in/out: drive letter792 BYTE bFsType, // in: file system type793 BOOL fPrimary, // in: primary?794 BOOL fBootable,795 ULONG ulSectors) // in: no. of sectors786 static 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 796 796 { 797 797 APIRET arc = NO_ERROR; … … 1013 1013 */ 1014 1014 1015 APIRET GetPrimaryPartitions(PARTITIONINFO **pppiFirst,1016 PARTITIONINFO **pppiThis,1017 PUSHORT posCount, // in/out: partition count1018 PCHAR pcLetter, // in/out: drive letter counter1019 UINT BmDisk, // in: physical disk (1, 2, 3, ...) of boot manager or null1020 PAR_INFO* pBmInfo, // in: info returned by doshGetBootManager or NULL1021 UINT iDisk) // in: system's physical disk count1015 static 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 1022 1022 { 1023 1023 APIRET arc = NO_ERROR; … … 1100 1100 */ 1101 1101 1102 APIRET GetLogicalDrives(PARTITIONINFO **pppiFirst,1103 PARTITIONINFO **pppiThis,1104 PUSHORT posCount,1105 PCHAR pcLetter,1106 PAR_INFO* PrInfo, // in: MBR entry of extended partition1107 UINT PrDisk,1108 PAR_INFO* BmInfo)1102 static 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) 1109 1109 { 1110 1110 APIRET arc = NO_ERROR; … … 1189 1189 */ 1190 1190 1191 APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst,1192 PARTITIONINFO **pppiThis,1193 PUSHORT posCount,1194 PCHAR pcLetter,1195 PAR_INFO* BmInfo,1196 UINT iDisk) // in: disk to query1191 static APIRET GetExtendedPartition(PARTITIONINFO **pppiFirst, 1192 PARTITIONINFO **pppiThis, 1193 PUSHORT posCount, 1194 PCHAR pcLetter, 1195 PAR_INFO* BmInfo, 1196 UINT iDisk) // in: disk to query 1197 1197 { 1198 1198 APIRET arc = NO_ERROR; … … 1234 1234 */ 1235 1235 1236 APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos,1237 USHORT *pcPartitions,1238 PUSHORT pusContext) // out: error context1236 static APIRET ReadFDiskPartitions(PARTITIONINFO **ppPartitionInfos, 1237 USHORT *pcPartitions, 1238 PUSHORT pusContext) // out: error context 1239 1239 { 1240 1240 APIRET arc = NO_ERROR; … … 1307 1307 */ 1308 1308 1309 VOID CleanPartitionInfos(PPARTITIONINFO ppiThis)1309 static VOID CleanPartitionInfos(PPARTITIONINFO ppiThis) 1310 1310 { 1311 1311 while (ppiThis) … … 2014 2014 */ 2015 2015 2016 BOOL PerformMatch(PCSZ pMask,2017 PCSZ pName,2018 int fHasDot)2016 static BOOL PerformMatch(PCSZ pMask, 2017 PCSZ pName, 2018 int fHasDot) 2019 2019 { 2020 2020 while (TRUE) -
trunk/src/helpers/exeh.c
r140 r142 546 546 */ 547 547 548 VOID ParseBldLevel(PEXECUTABLE pExec)548 static VOID ParseBldLevel(PEXECUTABLE pExec) 549 549 { 550 550 PCSZ pStartOfVendor, … … 703 703 * and pszInfo fields are also set. In the above examples, 704 704 * this would return the following information: 705 * 705 706 + pszVendor = "Ulrich Mller" 706 707 + pszVersion = "0.9.0" 707 708 + pszInfo = "XWorkplace Sound Support Module" 709 * 710 * See ParseBldLevel for extended formats. 708 711 * 709 712 * If that string is not in BLDLEVEL format, only … … 1013 1016 */ 1014 1017 1015 APIRET ScanLXEntryTable(PEXECUTABLE pExec,1016 PFSYSFUNCTION paFunctions,1017 PULONG pcEntries) // out: entry table entry count; ptr can be NULL1018 static APIRET ScanLXEntryTable(PEXECUTABLE pExec, 1019 PFSYSFUNCTION paFunctions, 1020 PULONG pcEntries) // out: entry table entry count; ptr can be NULL 1018 1021 { 1019 1022 ULONG ulDummy; … … 1254 1257 */ 1255 1258 1256 APIRET ScanNEEntryTable(PEXECUTABLE pExec,1257 PFSYSFUNCTION paFunctions,1258 PULONG pcEntries) // out: entry table entry count; ptr can be NULL1259 static APIRET ScanNEEntryTable(PEXECUTABLE pExec, 1260 PFSYSFUNCTION paFunctions, 1261 PULONG pcEntries) // out: entry table entry count; ptr can be NULL 1259 1262 { 1260 1263 ULONG ulDummy; … … 1349 1352 */ 1350 1353 1351 int _Optlink Compare(const void *key,1352 const void *element)1354 static int _Optlink Compare(const void *key, 1355 const void *element) 1353 1356 { 1354 1357 USHORT usOrdinal = *((PUSHORT) key); … … 1378 1381 */ 1379 1382 1380 APIRET ScanNameTable(PEXECUTABLE pExec,1381 ULONG cFunctions,1382 PFSYSFUNCTION paFunctions)1383 static APIRET ScanNameTable(PEXECUTABLE pExec, 1384 ULONG cFunctions, 1385 PFSYSFUNCTION paFunctions) 1383 1386 { 1384 1387 ULONG ulDummy; … … 2135 2138 */ 2136 2139 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 format2140 int cbSource) // in: sizeof *pabSource2140 static 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 2141 2144 { 2142 2145 PLXITER pIter = (PLXITER)pabSource; … … 2200 2203 */ 2201 2204 2202 void memcpyw(char *pch1, const char *pch2, size_t cch)2205 static void memcpyw(char *pch1, const char *pch2, size_t cch) 2203 2206 { 2204 2207 /* … … 2234 2237 */ 2235 2238 2236 void memcpyb(char *pch1, const char *pch2, size_t cch)2239 static void memcpyb(char *pch1, const char *pch2, size_t cch) 2237 2240 { 2238 2241 /* … … 2261 2264 * (C) Knut Stange Osmundsen. Used with permission. 2262 2265 * 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 * 2263 2271 *@@added V0.9.16 (2001-12-08) [umoeller] 2264 2272 */ 2265 2273 2266 APIRET ExpandIterdata2(char *pachPage, 2267 int cchPage,2268 const char *pachSrcPage,2269 int cchSrcPage)2274 static 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 2270 2278 { 2271 2279 char * pachDestPage = pachPage; /* Store the pointer for boundrary checking. */ … … 2479 2487 */ 2480 2488 2481 APIRET GetOfsFromPageTableIndex(PEXECUTABLE pExec, // in: executable from exehOpen2482 ULONG ulObjPageTblIndexThis, // in: object page table index to look for2483 PULONG pulFlags, // out: page flags2484 PULONG pulSize, // out: page size2485 PULONG pulPageOfs) // out: page ofs (add pLXHeader->ulDataPagesOfs to this)2489 static 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) 2486 2494 { 2487 2495 OBJECTPAGETABLEENTRY *pObjPageTblEntry; … … 2509 2517 * loads and possibly unpacks one LX page. 2510 2518 * 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 * 2511 2538 *@@added V0.9.16 (2002-01-05) [umoeller] 2512 2539 */ 2513 2540 2514 APIRET exehReadLXPage(PEXECUTABLE pExec, 2515 ULONG ulObjPageTblIndex, 2541 APIRET exehReadLXPage(PEXECUTABLE pExec, // in: executable from exehOpen 2542 ULONG ulObjPageTblIndex, // in: page table index to read 2516 2543 ULONG ulExeOffset, // in: for resources, pLXHeader->ulDataPagesOfs 2517 2544 PBYTE pabCompressed, // in: ptr to temp buffer which must be 2518 2545 // pLXHeader->ulPageSize + 4 bytes in size 2519 PBYTE pbData) // in: ptr to buffer which receives actual2546 PBYTE pbData) // out: ptr to buffer which receives actual 2520 2547 // uncompressed page data (pLXHeader->ulPageSize) 2521 2548 { … … 2617 2644 * -- ERROR_NOT_ENOUGH_MEMORY 2618 2645 * 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. 2626 2647 * 2627 2648 *@@added V0.9.16 (2001-12-08) [umoeller] … … 3143 3164 { 3144 3165 free(pThis); 3145 pThis= NULL;3166 *papsz[ul] = NULL; 3146 3167 } 3147 3168 } -
trunk/src/helpers/gpih.c
r140 r142 208 208 */ 209 209 210 VOID HackColor(PBYTE pb, double dFactor)210 static VOID HackColor(PBYTE pb, double dFactor) 211 211 { 212 212 ULONG ul = (ULONG)((double)(*pb) * dFactor); -
trunk/src/helpers/memdebug.c
r133 r142 223 223 */ 224 224 225 VOID LogError(const char *pcszFormat, // in: format string (like with printf)226 ...) // in: additional stuff (like with printf)225 static VOID LogError(const char *pcszFormat, // in: format string (like with printf) 226 ...) // in: additional stuff (like with printf) 227 227 { 228 228 if (G_pMemdLogFunc) … … 244 244 */ 245 245 246 PHEAPITEM FindHeapItem(void *p)246 static PHEAPITEM FindHeapItem(void *p) 247 247 { 248 248 return ((PHEAPITEM)treeFind(G_pHeapItemsRoot, … … 257 257 */ 258 258 259 VOID FillHeapItem(PHEAPITEM pHeapItem,260 void *prc,261 size_t stSize,262 const char *pcszSourceFile, // in: source file name263 unsigned long ulLine, // in: source line264 const char *pcszFunction) // in: function name259 static 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 265 265 { 266 266 pHeapItem->ulSize = stSize; … … 287 287 */ 288 288 289 VOID CheckMagics(const char *pcszParentFunc,290 PHEAPITEM pHeapItem,291 PBYTE p,292 const char *pcszSourceFile, // in: source file name293 unsigned long ulLine, // in: source line294 const char *pcszFunction) // in: function name289 static 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 295 295 { 296 296 void *pBeforeMagic = ((PBYTE)p) - sizeof(MEMBLOCKMAGIC_HEAD); -
trunk/src/helpers/memdebug_win.c
r123 r142 201 201 202 202 /* 203 *@@ memdCreateRecordsVAC:203 *@@ CreateRecordsVAC: 204 204 * 205 205 *@@added V0.9.3 (2000-04-10) [umoeller] 206 206 */ 207 207 208 VOID memdCreateRecordsVAC(HWND hwndCnr)208 VOID CreateRecordsVAC(HWND hwndCnr) 209 209 { 210 210 // count heap items … … 267 267 268 268 /* 269 *@@ memdCreateRecords:269 *@@ CreateRecords: 270 270 * 271 271 *@@added V0.9.3 (2000-04-10) [umoeller] 272 272 */ 273 273 274 VOID memdCreateRecords(HWND hwndCnr,275 PULONG pulTotalItems,276 PULONG pulAllocatedItems,277 PULONG pulFreedItems,278 PULONG pulTotalBytes,279 PULONG pulAllocatedBytes,280 PULONG pulFreedBytes)274 static VOID CreateRecords(HWND hwndCnr, 275 PULONG pulTotalItems, 276 PULONG pulAllocatedItems, 277 PULONG pulFreedItems, 278 PULONG pulTotalBytes, 279 PULONG pulAllocatedBytes, 280 PULONG pulFreedBytes) 281 281 { 282 282 // count heap items … … 411 411 */ 412 412 413 SHORT EXPENTRY mnu_fnCompareIndex(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage)413 static SHORT EXPENTRY mnu_fnCompareIndex(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage) 414 414 { 415 415 pStorage = pStorage; // to keep the compiler happy … … 429 429 */ 430 430 431 SHORT EXPENTRY mnu_fnCompareSourceFile(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage)431 static SHORT EXPENTRY mnu_fnCompareSourceFile(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage) 432 432 { 433 433 HAB habDesktop = WinQueryAnchorBlock(HWND_DESKTOP); … … 458 458 */ 459 459 460 SHORT EXPENTRY mnu_fnCompareSize(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage)460 static SHORT EXPENTRY mnu_fnCompareSize(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage) 461 461 { 462 462 pStorage = pStorage; // to keep the compiler happy … … 478 478 */ 479 479 480 SHORT EXPENTRY mnu_fnCompareAddress(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage)480 static SHORT EXPENTRY mnu_fnCompareAddress(PMEMRECORD pmrc1, PMEMRECORD pmrc2, PVOID pStorage) 481 481 { 482 482 pStorage = pStorage; // to keep the compiler happy … … 512 512 */ 513 513 514 MRESULT EXPENTRY memd_fnwpMemDebug(HWND hwndClient, ULONG msg, MPARAM mp1, MPARAM mp2)514 static MRESULT EXPENTRY memd_fnwpMemDebug(HWND hwndClient, ULONG msg, MPARAM mp1, MPARAM mp2) 515 515 { 516 516 MRESULT mrc = 0; … … 612 612 } 613 613 614 memdCreateRecords(hwndCnr,615 616 617 618 619 620 614 CreateRecords(hwndCnr, 615 &ulTotalItems, 616 &ulAllocatedItems, 617 &ulFreedItems, 618 &ulTotalBytes, 619 &ulAllocatedBytes, 620 &ulFreedBytes); 621 621 622 622 BEGIN_CNRINFO() -
trunk/src/helpers/nls.c
r136 r142 22 22 23 23 /* 24 * Copyright (C) 1997-200 1Ulrich Mller.24 * Copyright (C) 1997-2002 Ulrich Mller. 25 25 * This file is part of the "XWorkplace helpers" source package. 26 26 * This is free software; you can redistribute it and/or modify … … 268 268 269 269 nlsDateTime(pszBuf, 270 271 272 273 274 270 NULL, // no time 271 &dt, 272 ulDateFormat, 273 cDateSep, 274 0, 0); // no time 275 275 } 276 276 … … 326 326 *@@added V0.9.0 (99-11-07) [umoeller] 327 327 *@@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 328 329 */ 329 330 … … 387 388 if (pDateTime->hours >= 12) // V0.9.16 (2001-12-05) [pr] if (pDateTime->hours > 12) 388 389 { 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 389 396 // >= 12h: PM. 390 397 PrfQueryProfileString(HINI_USER, … … 395 402 sprintf(pszTime, "%02d%c%02d%c%02d %s", 396 403 // leave 12 == 12 (not 0) 397 pDateTime->hours % 12,404 ulHours, 398 405 cTimeSep, 399 406 pDateTime->minutes, -
trunk/src/helpers/semaphores.c
r113 r142 171 171 */ 172 172 173 APIRET LockGlobal(VOID)173 static APIRET LockGlobal(VOID) 174 174 { 175 175 if (!G_hmtxGlobal) … … 188 188 */ 189 189 190 VOID UnlockGlobal(VOID)190 static VOID UnlockGlobal(VOID) 191 191 { 192 192 DosReleaseMutexSem(G_hmtxGlobal); -
trunk/src/helpers/shapewin.c
r110 r142 308 308 */ 309 309 310 void spanFree(PSHPSPAN pSpan)310 static void spanFree(PSHPSPAN pSpan) 311 311 { 312 312 if (pSpan != NULL) … … 319 319 */ 320 320 321 PSHPSPAN spanCreate(void)321 static PSHPSPAN spanCreate(void) 322 322 { 323 323 PSHPSPAN pSpan; … … 342 342 */ 343 343 344 PSHPSPAN spanExpand(PSHPSPAN pOld)344 static PSHPSPAN spanExpand(PSHPSPAN pOld) 345 345 { 346 346 PSHPSPAN pNew; … … 369 369 */ 370 370 371 PSHPSPAN spanAppend(PSHPSPAN pSpan,372 int y, // bottom y; top y = y+1373 int x1, // left x374 int x2) // right x371 static PSHPSPAN spanAppend(PSHPSPAN pSpan, 372 int y, // bottom y; top y = y+1 373 int x1, // left x 374 int x2) // right x 375 375 { 376 376 int i; … … 425 425 */ 426 426 427 BOOL ptisin(PSHPSPAN pSpan, int x, int y)427 static BOOL ptisin(PSHPSPAN pSpan, int x, int y) 428 428 { 429 429 int i; … … 453 453 */ 454 454 455 void dumpSpan(PSHPSPAN pSpan)455 static void dumpSpan(PSHPSPAN pSpan) 456 456 { 457 457 int i, maxx, maxy, x, y; … … 497 497 */ 498 498 499 void shprgnDraw(HPS hps, PSHPREGION pRgn)499 static void shprgnDraw(HPS hps, PSHPREGION pRgn) 500 500 { 501 501 POINTL apt[3]; … … 518 518 */ 519 519 520 MRESULT EXPENTRY shp_fnwpShapeRegion(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)520 static MRESULT EXPENTRY shp_fnwpShapeRegion(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 521 521 { 522 522 PSHPREGION pRgn; … … 590 590 */ 591 591 592 int shpmgrWMAdjustWindowPos(PSHPWINCTLDATA pCtrl, PSWP pSwp)592 static int shpmgrWMAdjustWindowPos(PSHPWINCTLDATA pCtrl, PSWP pSwp) 593 593 { 594 594 int i ; … … 656 656 */ 657 657 658 int shpmgrUpdateRegions(PSHPWINCTLDATA pCtrl, PRECTL pRect)658 static int shpmgrUpdateRegions(PSHPWINCTLDATA pCtrl, PRECTL pRect) 659 659 { 660 660 RECTL rect, intern; … … 702 702 */ 703 703 704 PSHPSPAN shpmgrParseBitmap(HPS hps, PBITMAPINFOHEADER2 bmih2)704 static PSHPSPAN shpmgrParseBitmap(HPS hps, PBITMAPINFOHEADER2 bmih2) 705 705 { 706 706 int blen, hlen; … … 815 815 */ 816 816 817 int shpmgrWMCreate_Bitmap2Regions(PSHPWINCTLDATA pCtrl, // in: shape control data818 HPS hpsMask) // in: HPS with selected bitmap817 static int shpmgrWMCreate_Bitmap2Regions(PSHPWINCTLDATA pCtrl, // in: shape control data 818 HPS hpsMask) // in: HPS with selected bitmap 819 819 { 820 820 HAB hab; … … 937 937 */ 938 938 939 int shpmgrWMCreate_Regions2Windows(PSHPWINCTLDATA pCtrl)939 static int shpmgrWMCreate_Regions2Windows(PSHPWINCTLDATA pCtrl) 940 940 { 941 941 int i ; … … 1005 1005 */ 1006 1006 1007 int shpmgrFreeRegion(PSHPWINCTLDATA pCtrl)1007 static int shpmgrFreeRegion(PSHPWINCTLDATA pCtrl) 1008 1008 { 1009 1009 int i ; … … 1035 1035 */ 1036 1036 1037 PSHPWINCTLDATA shpmgrWMCreate(HWND hwnd, // in: shape window1038 PCREATESTRUCT pWin, // in: create struct of WM_CREATE1039 PSHPCTLDATA pData) // in: SHPCTLDATA struct (WM_CREATE mp1)1037 static 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) 1040 1040 { 1041 1041 PSHPWINCTLDATA pCtrl; … … 1089 1089 */ 1090 1090 1091 void shpmgrWMDestroy(PSHPWINCTLDATA pCtrl)1091 static void shpmgrWMDestroy(PSHPWINCTLDATA pCtrl) 1092 1092 { 1093 1093 if (pCtrl == NULL) … … 1139 1139 */ 1140 1140 1141 MRESULT EXPENTRY shp_fnwpShapeMgr(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2)1141 static MRESULT EXPENTRY shp_fnwpShapeMgr(HWND hwnd, ULONG msg, MPARAM mp1, MPARAM mp2) 1142 1142 { 1143 1143 PSHPWINCTLDATA pCtrl; -
trunk/src/helpers/textv_html.c
r91 r142 175 175 */ 176 176 177 VOID AppendChar(PCOPYTARGET pct, // in/out: formatting buffer178 unsigned char c)177 static VOID AppendChar(PCOPYTARGET pct, // in/out: formatting buffer 178 unsigned char c) 179 179 { 180 180 // calculate ofs where to store next char … … 204 204 */ 205 205 206 VOID AppendString(PCOPYTARGET pct, // in/out: formatting buffer207 char *ach)206 static VOID AppendString(PCOPYTARGET pct, // in/out: formatting buffer 207 char *ach) 208 208 { 209 209 ULONG cbAppend = strlen(ach); … … 240 240 */ 241 241 242 VOID AppendLinebreakCheck(PCOPYTARGET pct)242 static VOID AppendLinebreakCheck(PCOPYTARGET pct) 243 243 { 244 244 if ((!pct->fPRE) && (pct->fNeedsLinebreak)) … … 267 267 */ 268 268 269 VOID AppendEscapeWith3Decimals(PCOPYTARGET pct, // in/out: formatting buffer270 char *ach,271 USHORT us)269 static VOID AppendEscapeWith3Decimals(PCOPYTARGET pct, // in/out: formatting buffer 270 char *ach, 271 USHORT us) 272 272 { 273 273 CHAR szDecimal[10]; … … 286 286 */ 287 287 288 VOID AppendEscapeWith4Decimals(PCOPYTARGET pct, // in/out: formatting buffer289 char *ach,290 USHORT us)288 static VOID AppendEscapeWith4Decimals(PCOPYTARGET pct, // in/out: formatting buffer 289 char *ach, 290 USHORT us) 291 291 { 292 292 CHAR szDecimal[10]; … … 314 314 */ 315 315 316 VOID StartList(PCOPYTARGET pct, // in/out: formatting buffer317 ULONG ulListType) // list type:318 // 0: unordered (UL)319 // 1: ordered (OL)320 // 2: definition lists (DL)316 static 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) 321 321 { 322 322 PLISTDESC pListDesc; … … 361 361 */ 362 362 363 VOID StopList(PCOPYTARGET pct)363 static VOID StopList(PCOPYTARGET pct) 364 364 { 365 365 if (pct->ulListLevel) … … 414 414 */ 415 415 416 VOID TagTITLE(PCOPYTARGET pct)416 static VOID TagTITLE(PCOPYTARGET pct) 417 417 { 418 418 // pSource currently points to <TITLE tag … … 447 447 */ 448 448 449 VOID TagP(PCOPYTARGET pct)449 static VOID TagP(PCOPYTARGET pct) 450 450 { 451 451 // append newline: … … 464 464 } 465 465 466 VOID TagBR(PCOPYTARGET pct)466 static VOID TagBR(PCOPYTARGET pct) 467 467 { 468 468 AppendChar(pct, … … 482 482 } 483 483 484 VOID TagPRE(PCOPYTARGET pct)484 static VOID TagPRE(PCOPYTARGET pct) 485 485 { 486 486 // start of PRE tag: … … 507 507 } 508 508 509 VOID TagXPRE(PCOPYTARGET pct)509 static VOID TagXPRE(PCOPYTARGET pct) 510 510 { 511 511 pct->fPRE = FALSE; … … 527 527 } 528 528 529 VOID TagH1(PCOPYTARGET pct)529 static VOID TagH1(PCOPYTARGET pct) 530 530 { 531 531 pct->fNeedsLinebreak = TRUE; … … 537 537 } 538 538 539 VOID TagXH1(PCOPYTARGET pct)539 static VOID TagXH1(PCOPYTARGET pct) 540 540 { 541 541 AppendString(pct, … … 548 548 } 549 549 550 VOID TagH2(PCOPYTARGET pct)550 static VOID TagH2(PCOPYTARGET pct) 551 551 { 552 552 pct->fNeedsLinebreak = TRUE; … … 558 558 } 559 559 560 VOID TagXH2(PCOPYTARGET pct)560 static VOID TagXH2(PCOPYTARGET pct) 561 561 { 562 562 AppendString(pct, … … 569 569 } 570 570 571 VOID TagH3(PCOPYTARGET pct)571 static VOID TagH3(PCOPYTARGET pct) 572 572 { 573 573 pct->fNeedsLinebreak = TRUE; … … 579 579 } 580 580 581 VOID TagXH3(PCOPYTARGET pct)581 static VOID TagXH3(PCOPYTARGET pct) 582 582 { 583 583 AppendString(pct, … … 590 590 } 591 591 592 VOID TagH4(PCOPYTARGET pct)592 static VOID TagH4(PCOPYTARGET pct) 593 593 { 594 594 pct->fNeedsLinebreak = TRUE; … … 600 600 } 601 601 602 VOID TagXH4(PCOPYTARGET pct)602 static VOID TagXH4(PCOPYTARGET pct) 603 603 { 604 604 AppendString(pct, … … 611 611 } 612 612 613 VOID TagH5(PCOPYTARGET pct)613 static VOID TagH5(PCOPYTARGET pct) 614 614 { 615 615 pct->fNeedsLinebreak = TRUE; … … 621 621 } 622 622 623 VOID TagXH5(PCOPYTARGET pct)623 static VOID TagXH5(PCOPYTARGET pct) 624 624 { 625 625 AppendString(pct, … … 632 632 } 633 633 634 VOID TagH6(PCOPYTARGET pct)634 static VOID TagH6(PCOPYTARGET pct) 635 635 { 636 636 pct->fNeedsLinebreak = TRUE; … … 642 642 } 643 643 644 VOID TagXH6(PCOPYTARGET pct)644 static VOID TagXH6(PCOPYTARGET pct) 645 645 { 646 646 AppendString(pct, … … 653 653 } 654 654 655 VOID TagUL(PCOPYTARGET pct)655 static VOID TagUL(PCOPYTARGET pct) 656 656 { 657 657 StartList(pct, … … 659 659 } 660 660 661 VOID TagXUL(PCOPYTARGET pct)661 static VOID TagXUL(PCOPYTARGET pct) 662 662 { 663 663 StopList(pct); 664 664 } 665 665 666 VOID TagOL(PCOPYTARGET pct)666 static VOID TagOL(PCOPYTARGET pct) 667 667 { 668 668 StartList(pct, … … 670 670 } 671 671 672 VOID TagXOL(PCOPYTARGET pct)672 static VOID TagXOL(PCOPYTARGET pct) 673 673 { 674 674 StopList(pct); 675 675 } 676 676 677 VOID TagLI(PCOPYTARGET pct)677 static VOID TagLI(PCOPYTARGET pct) 678 678 { 679 679 PLISTDESC pListDesc; … … 709 709 } 710 710 711 VOID TagDL(PCOPYTARGET pct)711 static VOID TagDL(PCOPYTARGET pct) 712 712 { 713 713 StartList(pct, … … 715 715 } 716 716 717 VOID TagXDL(PCOPYTARGET pct)717 static VOID TagXDL(PCOPYTARGET pct) 718 718 { 719 719 StopList(pct); … … 721 721 } 722 722 723 VOID TagDT(PCOPYTARGET pct)723 static VOID TagDT(PCOPYTARGET pct) 724 724 { 725 725 pct->fNeedsLinebreak = TRUE; … … 727 727 } 728 728 729 VOID TagDD(PCOPYTARGET pct)729 static VOID TagDD(PCOPYTARGET pct) 730 730 { 731 731 pct->fNeedsLinebreak = TRUE; … … 736 736 } 737 737 738 VOID TagTR(PCOPYTARGET pct)738 static VOID TagTR(PCOPYTARGET pct) 739 739 { 740 740 pct->fNeedsLinebreak = TRUE; 741 741 } 742 742 743 VOID TagB(PCOPYTARGET pct)743 static VOID TagB(PCOPYTARGET pct) 744 744 { 745 745 AppendString(pct, … … 747 747 } 748 748 749 VOID TagXB(PCOPYTARGET pct)749 static VOID TagXB(PCOPYTARGET pct) 750 750 { 751 751 AppendString(pct, … … 753 753 } 754 754 755 VOID TagI(PCOPYTARGET pct)755 static VOID TagI(PCOPYTARGET pct) 756 756 { 757 757 AppendString(pct, … … 759 759 } 760 760 761 VOID TagXI(PCOPYTARGET pct)761 static VOID TagXI(PCOPYTARGET pct) 762 762 { 763 763 AppendString(pct, … … 765 765 } 766 766 767 VOID TagU(PCOPYTARGET pct)767 static VOID TagU(PCOPYTARGET pct) 768 768 { 769 769 AppendString(pct, … … 771 771 } 772 772 773 VOID TagXU(PCOPYTARGET pct)773 static VOID TagXU(PCOPYTARGET pct) 774 774 { 775 775 AppendString(pct, … … 777 777 } 778 778 779 VOID TagSTRIKE(PCOPYTARGET pct)779 static VOID TagSTRIKE(PCOPYTARGET pct) 780 780 { 781 781 AppendString(pct, … … 783 783 } 784 784 785 VOID TagXSTRIKE(PCOPYTARGET pct)785 static VOID TagXSTRIKE(PCOPYTARGET pct) 786 786 { 787 787 AppendString(pct, … … 789 789 } 790 790 791 VOID TagCODE(PCOPYTARGET pct)791 static VOID TagCODE(PCOPYTARGET pct) 792 792 { 793 793 AppendEscapeWith3Decimals(pct, … … 796 796 } 797 797 798 VOID TagXCODE(PCOPYTARGET pct)798 static VOID TagXCODE(PCOPYTARGET pct) 799 799 { 800 800 AppendEscapeWith3Decimals(pct, … … 803 803 } 804 804 805 VOID TagA(PCOPYTARGET pct)805 static VOID TagA(PCOPYTARGET pct) 806 806 { 807 807 CHAR szAnchor[10]; … … 875 875 } 876 876 877 VOID TagXA(PCOPYTARGET pct)877 static VOID TagXA(PCOPYTARGET pct) 878 878 { 879 879 if (pct->fInLink) … … 899 899 */ 900 900 901 PFNPROCESSTAG FindTagProcessor(PSZ pszTag)901 static PFNPROCESSTAG FindTagProcessor(PSZ pszTag) 902 902 { 903 903 PFNPROCESSTAG pProcessor = NULL; … … 1270 1270 */ 1271 1271 1272 VOID HandleTag(PCOPYTARGET pct)1272 static VOID HandleTag(PCOPYTARGET pct) 1273 1273 { 1274 1274 PSZ pStartOfTag = pct->pSource; … … 1425 1425 */ 1426 1426 1427 unsigned char ConvertEscape(PSZ pszTag)1427 static unsigned char ConvertEscape(PSZ pszTag) 1428 1428 { 1429 1429 CHAR c0, c1; … … 1882 1882 */ 1883 1883 1884 VOID HandleEscape(PCOPYTARGET pct)1884 static VOID HandleEscape(PCOPYTARGET pct) 1885 1885 { 1886 1886 // ampersand: -
trunk/src/helpers/textview.c
r137 r142 278 278 */ 279 279 280 VOID SetSubFont(HPS hps,281 PXFMTFONT pFont,282 ULONG ulPointSize,283 PSZ pszFaceName,284 ULONG flFormat)280 static VOID SetSubFont(HPS hps, 281 PXFMTFONT pFont, 282 ULONG ulPointSize, 283 PSZ pszFaceName, 284 ULONG flFormat) 285 285 { 286 286 CHAR ac[256]; … … 336 336 337 337 /* 338 *@@ txvSetFormatFont:338 *@@ SetFormatFont: 339 339 * creates logical fonts from the specified 340 340 * font information. … … 343 343 */ 344 344 345 VOID txvSetFormatFont(HPS hps, // in: HPS to select default font into346 PXFMTCHARACTER pxfmtc, // in/out: format data347 ULONG ulPointSize, // in: font point size (e.g. 12) or 0348 PSZ pszFaceName) // in: font face name (e.g. "Courier") or NULL345 static 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 349 349 { 350 350 pxfmtc->lPointSize = ulPointSize; … … 385 385 */ 386 386 387 VOID AppendCharNoCheck(char **ppszNew,388 PULONG pcbNew,389 char **ppTarget,390 char c)387 static VOID AppendCharNoCheck(char **ppszNew, 388 PULONG pcbNew, 389 char **ppTarget, 390 char c) 391 391 { 392 392 ULONG cbSizeThis = *ppTarget - *ppszNew; … … 494 494 */ 495 495 496 PSZ strhFindEOL2(PSZ *ppszSearchIn, // in: where to search497 PULONG pulOffset) // out: offset (ptr can be NULL)496 static PSZ strhFindEOL2(PSZ *ppszSearchIn, // in: where to search 497 PULONG pulOffset) // out: offset (ptr can be NULL) 498 498 { 499 499 PSZ pThis = *ppszSearchIn, … … 554 554 *@@ FORMATLINEBUF: 555 555 * worker structure to store various data 556 * in txvFormatText in between txvCreateWord556 * in txvFormatText in between CreateWord 557 557 * calls. This has been created for speed 558 558 * so we don't have to pass all these on … … 590 590 591 591 /* 592 *@@ txvCreateWord:592 *@@ CreateWord: 593 593 * 594 594 * -- If the word ends with one or several spaces, … … 613 613 */ 614 614 615 PTXVWORD txvCreateWord(HPS hps,616 PSZ *ppStartOfWord,617 PFORMATLINEBUF pflbuf)615 static PTXVWORD CreateWord(HPS hps, 616 PSZ *ppStartOfWord, 617 PFORMATLINEBUF pflbuf) 618 618 { 619 619 PTXVWORD pWord = NULL; … … 745 745 */ 746 746 747 PTXVWORD ProcessEscapes(char **ppCurrent, // in/out: current position; initially points to esc char748 PXFORMATDATA pxfd, // in/out: formatting data749 PFORMATLINEBUF pflbuf, // in/out: formatting buffer750 BOOL fWordsProcessed) // FALSE during step 1 (words processing),751 // TRUE during step 2 (rectangles correlation)747 static 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) 752 752 { 753 753 PTXVWORD pEscapeWord = NULL; … … 1155 1155 } 1156 1156 1157 if (pWord = txvCreateWord(hps,1158 1159 1157 if (pWord = CreateWord(hps, 1158 &pCurrent, // advanced to next word 1159 &flbuf)) 1160 1160 { 1161 1161 lstAppendItem(&pxfd->llWords, pWord); … … 1411 1411 */ 1412 1412 1413 VOID DrawListMarker(HPS hps,1414 PRECTL prclLine, // current line rectangle1415 PTXVWORD pWordThis, // current word1416 LONG lViewXOfs) // in: x offset to paint; 0 means rightmost1413 static 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 1417 1417 { 1418 1418 POINTL ptl; … … 1865 1865 */ 1866 1866 1867 VOID UpdateTextViewPresData(HWND hwndTextView,1868 PTEXTVIEWWINDATA ptxvd)1867 static VOID UpdateTextViewPresData(HWND hwndTextView, 1868 PTEXTVIEWWINDATA ptxvd) 1869 1869 { 1870 1870 PSZ pszFont; … … 1887 1887 &pszFaceName)) 1888 1888 { 1889 txvSetFormatFont(ptxvd->hps,1889 SetFormatFont(ptxvd->hps, 1890 1890 &ptxvd->xfd.fmtcStandard, 1891 1891 ulSize, … … 1920 1920 */ 1921 1921 1922 VOID AdjustViewRects(HWND hwndTextView,1923 PTEXTVIEWWINDATA ptxvd)1922 static VOID AdjustViewRects(HWND hwndTextView, 1923 PTEXTVIEWWINDATA ptxvd) 1924 1924 { 1925 1925 ULONG ulScrollCX = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL), … … 1992 1992 */ 1993 1993 1994 VOID FormatText2Screen(HWND hwndTextView,1995 PTEXTVIEWWINDATA ptxvd,1996 BOOL fAlreadyRecursing, // in: set this to FALSE when calling1997 BOOL fFullRecalc)1994 static VOID FormatText2Screen(HWND hwndTextView, 1995 PTEXTVIEWWINDATA ptxvd, 1996 BOOL fAlreadyRecursing, // in: set this to FALSE when calling 1997 BOOL fFullRecalc) 1998 1998 { 1999 1999 ULONG ulWinCX, … … 2080 2080 */ 2081 2081 2082 VOID PaintViewText2Screen(PTEXTVIEWWINDATA ptxvd,2083 PRECTL prcl2Paint) // in: invalid rectangle, can be NULL == paint all2082 static VOID PaintViewText2Screen(PTEXTVIEWWINDATA ptxvd, 2083 PRECTL prcl2Paint) // in: invalid rectangle, can be NULL == paint all 2084 2084 { 2085 2085 ULONG ulLineIndex = 0; … … 2100 2100 */ 2101 2101 2102 VOID PaintViewFocus(HPS hps,2103 PTEXTVIEWWINDATA ptxvd,2104 BOOL fFocus)2102 static VOID PaintViewFocus(HPS hps, 2103 PTEXTVIEWWINDATA ptxvd, 2104 BOOL fFocus) 2105 2105 { 2106 2106 POINTL ptl; … … 2131 2131 */ 2132 2132 2133 VOID RepaintWord(PTEXTVIEWWINDATA ptxvd,2134 PTXVWORD pWordThis,2135 LONG lColor)2133 static VOID RepaintWord(PTEXTVIEWWINDATA ptxvd, 2134 PTXVWORD pWordThis, 2135 LONG lColor) 2136 2136 { 2137 2137 POINTL ptlStart; … … 2184 2184 */ 2185 2185 2186 VOID RepaintAnchor(PTEXTVIEWWINDATA ptxvd,2187 LONG lColor)2186 static VOID RepaintAnchor(PTEXTVIEWWINDATA ptxvd, 2187 LONG lColor) 2188 2188 { 2189 2189 PLISTNODE pNode = ptxvd->pWordNodeFirstInAnchor; … … 2255 2255 */ 2256 2256 2257 MRESULT EXPENTRY fnwpTextView(HWND hwndTextView, ULONG msg, MPARAM mp1, MPARAM mp2)2257 static MRESULT EXPENTRY fnwpTextView(HWND hwndTextView, ULONG msg, MPARAM mp1, MPARAM mp2) 2258 2258 { 2259 2259 MRESULT mrc = 0; … … 2365 2365 2366 2366 // set "code" format 2367 txvSetFormatFont(ptxvd->hps,2367 SetFormatFont(ptxvd->hps, 2368 2368 &ptxvd->xfd.fmtcCode, 2369 2369 6, … … 3206 3206 */ 3207 3207 3208 PRQINFO3* prthEnumQueues(PULONG pulReturned) // out: no. of queues found3208 static PRQINFO3* prthEnumQueues(PULONG pulReturned) // out: no. of queues found 3209 3209 { 3210 3210 SPLERR rc; … … 3248 3248 */ 3249 3249 3250 VOID prthFreeBuf(PVOID pprq3)3250 static VOID prthFreeBuf(PVOID pprq3) 3251 3251 { 3252 3252 if (pprq3) … … 3270 3270 */ 3271 3271 3272 HDC prthCreatePrinterDC(HAB hab,3273 PRQINFO3 *pprq3,3274 PLONG palRes) // out: 2 longs holding horizontal and vertical3275 // printer resolution in pels per inch3272 static HDC prthCreatePrinterDC(HAB hab, 3273 PRQINFO3 *pprq3, 3274 PLONG palRes) // out: 2 longs holding horizontal and vertical 3275 // printer resolution in pels per inch 3276 3276 { 3277 3277 HDC hdc = NULLHANDLE; … … 3316 3316 */ 3317 3317 3318 HCINFO* prthQueryForms(HDC hdc,3319 PULONG pulCount)3318 static HCINFO* prthQueryForms(HDC hdc, 3319 PULONG pulCount) 3320 3320 { 3321 3321 HCINFO *pahci = NULL; … … 3348 3348 */ 3349 3349 3350 HPS prthCreatePS(HAB hab, // in: anchor block3351 HDC hdc, // in: printer device context3352 ULONG ulUnits) // in: one of:3353 // -- PU_PELS3354 // -- PU_LOMETRIC3355 // -- PU_HIMETRIC3356 // -- PU_LOENGLISH3357 // -- PU_HIENGLISH3358 // -- PU_TWIPS3350 static 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 3359 3359 { 3360 3360 SIZEL sizel; … … 3378 3378 */ 3379 3379 3380 VOID prthStartDoc(HDC hdc,3381 PSZ pszDocTitle)3380 static VOID prthStartDoc(HDC hdc, 3381 PSZ pszDocTitle) 3382 3382 { 3383 3383 DevEscape(hdc, … … 3398 3398 */ 3399 3399 3400 VOID prthNextPage(HDC hdc)3400 static VOID prthNextPage(HDC hdc) 3401 3401 { 3402 3402 DevEscape(hdc, … … 3417 3417 */ 3418 3418 3419 VOID prthEndDoc(HDC hdc,3420 HPS hps)3419 static VOID prthEndDoc(HDC hdc, 3420 HPS hps) 3421 3421 { 3422 3422 DevEscape(hdc, DEVESC_ENDDOC, 0L, 0L, 0, NULL); … … 3474 3474 txvInitFormat(&xfd); 3475 3475 3476 /* txvSetFormatFont(hps,3476 /* SetFormatFont(hps, 3477 3477 &xfd, 3478 3478 ulSize, -
trunk/src/helpers/threads.c
r132 r142 84 84 */ 85 85 86 BOOL LockThreadInfos(VOID)86 static BOOL LockThreadInfos(VOID) 87 87 { 88 88 APIRET arc = NO_ERROR; … … 110 110 */ 111 111 112 VOID UnlockThreadInfos(VOID)112 static VOID UnlockThreadInfos(VOID) 113 113 { 114 114 DosReleaseMutexSem(G_hmtxThreadInfos); … … 125 125 */ 126 126 127 VOID _Optlink thr_fntGeneric(PVOID ptiMyself)127 static VOID _Optlink thr_fntGeneric(PVOID ptiMyself) 128 128 { 129 129 PTHREADINFO pti = (PTHREADINFO)ptiMyself; -
trunk/src/helpers/timer.c
r127 r142 157 157 */ 158 158 159 BOOL LockTimers(VOID)159 static BOOL LockTimers(VOID) 160 160 { 161 161 if (!G_hmtxTimers) … … 174 174 */ 175 175 176 VOID UnlockTimers(VOID)176 static VOID UnlockTimers(VOID) 177 177 { 178 178 DosReleaseMutexSem(G_hmtxTimers); … … 188 188 */ 189 189 190 PXTIMER FindTimer(PXTIMERSET pSet, // in: timer set (from tmrCreateSet)191 HWND hwnd, // in: timer target window192 USHORT usTimerID) // in: timer ID190 static PXTIMER FindTimer(PXTIMERSET pSet, // in: timer set (from tmrCreateSet) 191 HWND hwnd, // in: timer target window 192 USHORT usTimerID) // in: timer ID 193 193 { 194 194 PLINKLIST pllXTimers; … … 223 223 */ 224 224 225 VOID RemoveTimer(PXTIMERSET pSet, // in: timer set (from tmrCreateSet)226 PXTIMER pTimer) // in: timer to remove.225 static VOID RemoveTimer(PXTIMERSET pSet, // in: timer set (from tmrCreateSet) 226 PXTIMER pTimer) // in: timer to remove. 227 227 { 228 228 PLINKLIST pllXTimers; … … 247 247 */ 248 248 249 VOID AdjustPMTimer(PXTIMERSET pSet)249 static VOID AdjustPMTimer(PXTIMERSET pSet) 250 250 { 251 251 PLINKLIST pllXTimers = (PLINKLIST)pSet->pvllXTimers; -
trunk/src/helpers/vcard.c
r139 r142 66 66 ********************************************************************/ 67 67 68 VOID FreeList(PLINKLIST *ppll);68 static VOID FreeList(PLINKLIST *ppll); 69 69 70 70 /* ****************************************************************** … … 79 79 */ 80 80 81 VOID Translate(PXSTRING pstr,82 ULONG cpCurrent)81 static VOID Translate(PXSTRING pstr, 82 ULONG cpCurrent) 83 83 { 84 84 ULONG ul; … … 107 107 */ 108 108 109 APIRET DecodeStringList(PCSZ pStart,110 PCSZ pEnd,111 PXSTRING *ppaStrings,112 PULONG pcStrings,113 PXSTRING *ppstrLast, // out: last string stored114 ULONG cpCurrent) // in: current codepage109 static 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 115 115 { 116 116 if (!pStart || !pEnd) … … 299 299 */ 300 300 301 APIRET Tokenize(ULONG ulLevel,302 PSZ *ppszInput,303 PLINKLIST pllParent,304 ULONG cpCurrent)301 static APIRET Tokenize(ULONG ulLevel, 302 PSZ *ppszInput, 303 PLINKLIST pllParent, 304 ULONG cpCurrent) 305 305 { 306 306 PSZ pLineThis = *ppszInput; … … 474 474 */ 475 475 476 PVCFPROPERTY FindValues(PLINKLIST pll,477 PCSZ pcszProperty,478 PCSZ pcszParameter)476 static PVCFPROPERTY FindValues(PLINKLIST pll, 477 PCSZ pcszProperty, 478 PCSZ pcszParameter) 479 479 { 480 480 PLISTNODE pNode; … … 503 503 */ 504 504 505 VOID CopyStrings(PVCFPROPERTY pProp,506 PCSZ *papcszValues,507 ULONG cValues)505 static VOID CopyStrings(PVCFPROPERTY pProp, 506 PCSZ *papcszValues, 507 ULONG cValues) 508 508 { 509 509 ULONG ul; … … 531 531 */ 532 532 533 ULONG GetFlagStrings(PXSTRING pastrParameters,534 ULONG cParameters,535 const PCSZ **apcsz,536 const ULONG *afl,537 ULONG cStrings,538 ULONG flDefault)533 static ULONG GetFlagStrings(PXSTRING pastrParameters, 534 ULONG cParameters, 535 const PCSZ **apcsz, 536 const ULONG *afl, 537 ULONG cStrings, 538 ULONG flDefault) 539 539 { 540 540 ULONG ul, ul2; … … 584 584 */ 585 585 586 VOID AppendAddress(PVCARD pvc,587 PVCFPROPERTY pProp)586 static VOID AppendAddress(PVCARD pvc, 587 PVCFPROPERTY pProp) 588 588 { 589 589 if (pvc->paDeliveryAddresses = (PVCADDRESS)realloc( … … 611 611 */ 612 612 613 VOID AppendLabel(PVCARD pvc,614 PVCFPROPERTY pProp)613 static VOID AppendLabel(PVCARD pvc, 614 PVCFPROPERTY pProp) 615 615 { 616 616 if (pvc->paLabels = (PVCLABEL)realloc( … … 672 672 */ 673 673 674 VOID AppendTel(PVCARD pvc,675 PVCFPROPERTY pProp)674 static VOID AppendTel(PVCARD pvc, 675 PVCFPROPERTY pProp) 676 676 { 677 677 if (pvc->paPhones = (PVCPHONE)realloc(pvc->paPhones, … … 816 816 */ 817 817 818 VOID FreeList(PLINKLIST *ppll)818 static VOID FreeList(PLINKLIST *ppll) 819 819 { 820 820 PLISTNODE pNode = lstQueryFirstNode(*ppll); -
trunk/src/helpers/wphandle.c
r140 r142 196 196 */ 197 197 198 VOID FreeChildrenTree(TREE **ppChildrenTree,199 PLONG plCount)198 static VOID FreeChildrenTree(TREE **ppChildrenTree, 199 PLONG plCount) 200 200 { 201 201 LONG cItems = *plCount; … … 229 229 */ 230 230 231 APIRET NukeNameTrees(PHANDLESBUF pHandlesBuf)231 static APIRET NukeNameTrees(PHANDLESBUF pHandlesBuf) 232 232 { 233 233 APIRET arc = NO_ERROR; … … 854 854 */ 855 855 856 APIRET ComposeThis(PHANDLESBUF pHandlesBuf,857 USHORT usHandle, // in: handle to search for858 PXSTRING pstrFilename, // in/out: filename859 PNODE *ppNode) // out: node found (ptr can be NULL)856 static 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) 860 860 { 861 861 APIRET arc = NO_ERROR; -
trunk/src/helpers/xml.c
r127 r142 343 343 */ 344 344 345 int TREEENTRY CompareXStrings(ULONG ul1,346 ULONG ul2)345 static int TREEENTRY CompareXStrings(ULONG ul1, 346 ULONG ul2) 347 347 { 348 348 return (strhcmp(((PXSTRING)ul1)->psz, … … 914 914 */ 915 915 916 APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle,917 PXMLCONTENT pModel,918 TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree919 // (passed to all recursions)916 static APIRET SetupParticleAndSubs(PCMELEMENTPARTICLE pParticle, 917 PXMLCONTENT pModel, 918 TREE **ppElementNamesTree) // in: ptr to _CMELEMENTDECLNODE.ElementNamesTree 919 // (passed to all recursions) 920 920 { 921 921 APIRET arc = NO_ERROR; … … 1074 1074 */ 1075 1075 1076 VOID ValidateElement(PXMLDOM pDom,1077 PDOMNODE pNewElement, // in: new element1078 PCMELEMENTDECLNODE pParentElementDecl)1079 // in: element decl of element's parent1076 static VOID ValidateElement(PXMLDOM pDom, 1077 PDOMNODE pNewElement, // in: new element 1078 PCMELEMENTDECLNODE pParentElementDecl) 1079 // in: element decl of element's parent 1080 1080 { 1081 1081 if (pDom && pNewElement) … … 1233 1233 */ 1234 1234 1235 VOID ValidateAttributeType(PXMLDOM pDom,1236 PDOMNODE pAttrib,1237 PCMATTRIBUTEDECLBASE *ppAttribDeclBase)1235 static VOID ValidateAttributeType(PXMLDOM pDom, 1236 PDOMNODE pAttrib, 1237 PCMATTRIBUTEDECLBASE *ppAttribDeclBase) 1238 1238 { 1239 1239 PDOMNODE pElement = pAttrib->pParentNode; … … 1297 1297 */ 1298 1298 1299 VOID ValidateAllAttributes(PXMLDOM pDom,1300 PCMATTRIBUTEDECLBASE pAttribDeclBase,1301 PDOMNODE pNewElement)1299 static VOID ValidateAllAttributes(PXMLDOM pDom, 1300 PCMATTRIBUTEDECLBASE pAttribDeclBase, 1301 PDOMNODE pNewElement) 1302 1302 { 1303 1303 PCMATTRIBUTEDECL pDeclThis … … 1366 1366 */ 1367 1367 1368 PDOMSTACKITEM PopElementStack(PXMLDOM pDom,1369 PLISTNODE *ppListNode)1368 static PDOMSTACKITEM PopElementStack(PXMLDOM pDom, 1369 PLISTNODE *ppListNode) 1370 1370 { 1371 1371 PDOMSTACKITEM pStackItem = NULL; … … 1396 1396 */ 1397 1397 1398 VOID PushElementStack(PXMLDOM pDom,1399 PDOMNODE pDomNode)1398 static VOID PushElementStack(PXMLDOM pDom, 1399 PDOMNODE pDomNode) 1400 1400 { 1401 1401 PDOMSTACKITEM pNew = (PDOMSTACKITEM)malloc(sizeof(*pNew)); … … 1436 1436 */ 1437 1437 1438 int EXPATENTRY UnknownEncodingHandler(void *pUserData, // in: out PXMLDOM really1439 const XML_Char *pcszName,1440 XML_Encoding *pEncoding)1438 static int EXPATENTRY UnknownEncodingHandler(void *pUserData, // in: out PXMLDOM really 1439 const XML_Char *pcszName, 1440 XML_Encoding *pEncoding) 1441 1441 { 1442 1442 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1501 1501 */ 1502 1502 1503 void EXPATENTRY StartElementHandler(void *pUserData, // in: our PXMLDOM really1504 const char *pcszElement,1505 const char **papcszAttribs)1503 static void EXPATENTRY StartElementHandler(void *pUserData, // in: our PXMLDOM really 1504 const char *pcszElement, 1505 const char **papcszAttribs) 1506 1506 { 1507 1507 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1596 1596 */ 1597 1597 1598 void EXPATENTRY EndElementHandler(void *pUserData, // in: our PXMLDOM really1599 const XML_Char *name)1598 static void EXPATENTRY EndElementHandler(void *pUserData, // in: our PXMLDOM really 1599 const XML_Char *name) 1600 1600 { 1601 1601 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1632 1632 */ 1633 1633 1634 void EXPATENTRY CharacterDataHandler(void *pUserData, // in: our PXMLDOM really1635 const XML_Char *s,1636 int len)1634 static void EXPATENTRY CharacterDataHandler(void *pUserData, // in: our PXMLDOM really 1635 const XML_Char *s, 1636 int len) 1637 1637 { 1638 1638 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1743 1743 */ 1744 1744 1745 void EXPATENTRY CommentHandler(void *pUserData, // in: our PXMLDOM really1746 const XML_Char *data)1745 static void EXPATENTRY CommentHandler(void *pUserData, // in: our PXMLDOM really 1746 const XML_Char *data) 1747 1747 { 1748 1748 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1778 1778 */ 1779 1779 1780 void EXPATENTRY StartDoctypeDeclHandler(void *pUserData,1781 const XML_Char *pcszDoctypeName,1782 const XML_Char *pcszSysid,1783 const XML_Char *pcszPubid,1784 int fHasInternalSubset)1780 static void EXPATENTRY StartDoctypeDeclHandler(void *pUserData, 1781 const XML_Char *pcszDoctypeName, 1782 const XML_Char *pcszSysid, 1783 const XML_Char *pcszPubid, 1784 int fHasInternalSubset) 1785 1785 { 1786 1786 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1817 1817 */ 1818 1818 1819 void EXPATENTRY EndDoctypeDeclHandler(void *pUserData) // in: our PXMLDOM really1819 static void EXPATENTRY EndDoctypeDeclHandler(void *pUserData) // in: our PXMLDOM really 1820 1820 { 1821 1821 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1836 1836 */ 1837 1837 1838 void EXPATENTRY NotationDeclHandler(void *pUserData, // in: our PXMLDOM really1839 const XML_Char *pcszNotationName,1840 const XML_Char *pcszBase,1841 const XML_Char *pcszSystemId,1842 const XML_Char *pcszPublicId)1838 static 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) 1843 1843 { 1844 1844 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1904 1904 */ 1905 1905 1906 int EXPATENTRY ExternalEntityRefHandler(void *pUserData, // in: our PXMLDOM really1907 XML_Parser parser,1908 const XML_Char *pcszContext,1909 const XML_Char *pcszBase,1910 const XML_Char *pcszSystemId,1911 const XML_Char *pcszPublicId)1906 static 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) 1912 1912 { 1913 1913 PXMLDOM pDom = (PXMLDOM)pUserData; … … 1991 1991 */ 1992 1992 1993 void EXPATENTRY ElementDeclHandler(void *pUserData, // in: our PXMLDOM really1994 const XML_Char *pcszName,1995 XMLCONTENT *pModel)1993 static void EXPATENTRY ElementDeclHandler(void *pUserData, // in: our PXMLDOM really 1994 const XML_Char *pcszName, 1995 XMLCONTENT *pModel) 1996 1996 { 1997 1997 PXMLDOM pDom = (PXMLDOM)pUserData; … … 2041 2041 */ 2042 2042 2043 APIRET AddEnum(PCMATTRIBUTEDECL pDecl,2044 const char *p, // in: start of name2045 const char *pNext) // in: end of name (not included)2043 static APIRET AddEnum(PCMATTRIBUTEDECL pDecl, 2044 const char *p, // in: start of name 2045 const char *pNext) // in: end of name (not included) 2046 2046 { 2047 2047 // PSZ pszType = strhSubstr(p, pNext); … … 2090 2090 */ 2091 2091 2092 void EXPATENTRY AttlistDeclHandler(void *pUserData, // in: our PXMLDOM really2093 const XML_Char *pcszElementName,2094 const XML_Char *pcszAttribName,2095 const XML_Char *pcszAttribType,2096 const XML_Char *pcszDefault,2097 int fIsRequired)2092 static 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) 2098 2098 { 2099 2099 PXMLDOM pDom = (PXMLDOM)pUserData; … … 2272 2272 */ 2273 2273 2274 void EXPATENTRY EntityDeclHandler(void *pUserData, // in: our PXMLDOM really2275 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)2274 static 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) 2283 2283 { 2284 2284 PXMLDOM pDom = (PXMLDOM)pUserData; … … 2979 2979 */ 2980 2980 2981 VOID WriteNodes(PXSTRING pxstr,2982 PDOMNODE pDomNode) // in: node whose children are to be written (initially DOCUMENT)2981 static VOID WriteNodes(PXSTRING pxstr, 2982 PDOMNODE pDomNode) // in: node whose children are to be written (initially DOCUMENT) 2983 2983 { 2984 2984 PLISTNODE pListNode; -
trunk/src/helpers/xmlparse.c
r98 r142 848 848 */ 849 849 850 XML_Parser 851 XML_ParserCreate_MM(const XML_Char * encodingName, 852 const XML_Memory_Handling_Suite * memsuite, 853 const XML_Char * nameSep) 850 XML_Parser XML_ParserCreate_MM(const XML_Char * encodingName, 851 const XML_Memory_Handling_Suite * memsuite, 852 const XML_Char * nameSep) 854 853 { 855 854 … … 1141 1140 } 1142 1141 1143 static 1144 void destroyBindings(BINDING * bindings, XML_Parser parser) 1142 static void destroyBindings(BINDING * bindings, XML_Parser parser) 1145 1143 { 1146 1144 for (;;) … … 2477 2475 * } */ 2478 2476 2479 static 2480 XMLERROR contentProcessor(XML_Parser parser, 2481 const char *start, 2482 const char *end, 2483 const char **endPtr) 2477 static XMLERROR contentProcessor(XML_Parser parser, 2478 const char *start, 2479 const char *end, 2480 const char **endPtr) 2484 2481 { 2485 2482 return doContent(parser, 0, encoding, start, end, endPtr); 2486 2483 } 2487 2484 2488 static 2489 XMLERROR externalEntityInitProcessor(XML_Parser parser, 2490 const char *start, 2491 const char *end, 2492 const char **endPtr) 2485 static XMLERROR externalEntityInitProcessor(XML_Parser parser, 2486 const char *start, 2487 const char *end, 2488 const char **endPtr) 2493 2489 { 2494 2490 XMLERROR result = initializeEncoding(parser); … … 2500 2496 } 2501 2497 2502 static 2503 XMLERROR externalEntityInitProcessor2(XML_Parser parser, 2504 const char *start, 2505 const char *end, 2506 const char **endPtr) 2498 static XMLERROR externalEntityInitProcessor2(XML_Parser parser, 2499 const char *start, 2500 const char *end, 2501 const char **endPtr) 2507 2502 { 2508 2503 const char *next; … … 2535 2530 } 2536 2531 2537 static 2538 XMLERROR externalEntityInitProcessor3(XML_Parser parser, 2539 const char *start, 2540 const char *end, 2541 const char **endPtr) 2532 static XMLERROR externalEntityInitProcessor3(XML_Parser parser, 2533 const char *start, 2534 const char *end, 2535 const char **endPtr) 2542 2536 { 2543 2537 const char *next; … … 2577 2571 } 2578 2572 2579 static 2580 XMLERROR externalEntityContentProcessor(XML_Parser parser, 2581 const char *start, 2582 const char *end, 2583 const char **endPtr) 2573 static XMLERROR externalEntityContentProcessor(XML_Parser parser, 2574 const char *start, 2575 const char *end, 2576 const char **endPtr) 2584 2577 { 2585 2578 return doContent(parser, 1, encoding, start, end, endPtr); … … 3382 3375 } 3383 3376 3384 static 3385 int addBinding(XML_Parser parser, PREFIX * prefix, const ATTRIBUTE_ID * attId, const XML_Char * uri, BINDING ** bindingsPtr) 3377 static int addBinding(XML_Parser parser, 3378 PREFIX * prefix, 3379 const ATTRIBUTE_ID * attId, 3380 const XML_Char * uri, 3381 BINDING ** bindingsPtr) 3386 3382 { 3387 3383 BINDING *b; … … 3439 3435 * the whole file is parsed with one call. */ 3440 3436 3441 static 3442 XMLERROR cdataSectionProcessor(XML_Parser parser, 3443 const char *start, 3444 const char *end, 3445 const char **endPtr) 3437 static XMLERROR cdataSectionProcessor(XML_Parser parser, 3438 const char *start, 3439 const char *end, 3440 const char **endPtr) 3446 3441 { 3447 3442 XMLERROR result = doCdataSection(parser, encoding, &start, end, endPtr); … … 3458 3453 * the section is not yet closed. */ 3459 3454 3460 static 3461 XMLERROR doCdataSection(XML_Parser parser, 3462 const ENCODING * enc, 3463 const char **startPtr, 3464 const char *end, 3465 const char **nextPtr) 3455 static XMLERROR doCdataSection(XML_Parser parser, 3456 const ENCODING * enc, 3457 const char **startPtr, 3458 const char *end, 3459 const char **nextPtr) 3466 3460 { 3467 3461 const char *s = *startPtr; … … 3569 3563 * the whole file is parsed with one call. */ 3570 3564 3571 static 3572 XMLERROR ignoreSectionProcessor(XML_Parser parser, 3573 const char *start, 3574 const char *end, 3575 const char **endPtr) 3565 static XMLERROR ignoreSectionProcessor(XML_Parser parser, 3566 const char *start, 3567 const char *end, 3568 const char **endPtr) 3576 3569 { 3577 3570 XMLERROR result = doIgnoreSection(parser, encoding, &start, end, endPtr); … … 3588 3581 * the section is not yet closed. */ 3589 3582 3590 static 3591 XMLERROR doIgnoreSection(XML_Parser parser, 3592 const ENCODING * enc, 3593 const char **startPtr, 3594 const char *end, 3595 const char **nextPtr) 3583 static XMLERROR doIgnoreSection(XML_Parser parser, 3584 const ENCODING * enc, 3585 const char **startPtr, 3586 const char *end, 3587 const char **nextPtr) 3596 3588 { 3597 3589 const char *next; … … 3650 3642 #endif /* XML_DTD */ 3651 3643 3652 static XMLERROR 3653 initializeEncoding(XML_Parser parser) 3644 static XMLERROR initializeEncoding(XML_Parser parser) 3654 3645 { 3655 3646 const char *s; … … 3685 3676 } 3686 3677 3687 static XMLERROR 3688 processXmlDecl(XML_Parser parser, int isGeneralTextEntity, 3689 const char *s, const char *next) 3678 static XMLERROR processXmlDecl(XML_Parser parser, 3679 int isGeneralTextEntity, 3680 const char *s, 3681 const char *next) 3690 3682 { 3691 3683 const char *encodingName = 0; … … 3786 3778 } 3787 3779 3788 static XMLERROR 3789 handleUnknownEncoding(XML_Parser parser,const XML_Char * encodingName)3780 static XMLERROR handleUnknownEncoding(XML_Parser parser, 3781 const XML_Char * encodingName) 3790 3782 { 3791 3783 if (unknownEncodingHandler) … … 3830 3822 } 3831 3823 3832 static XMLERROR 3833 prologInitProcessor(XML_Parser parser, 3834 const char *s, 3835 const char *end, 3836 const char **nextPtr) 3824 static XMLERROR prologInitProcessor(XML_Parser parser, 3825 const char *s, 3826 const char *end, 3827 const char **nextPtr) 3837 3828 { 3838 3829 XMLERROR result = initializeEncoding(parser); … … 3844 3835 } 3845 3836 3846 static XMLERROR 3847 prologProcessor(XML_Parser parser, 3848 const char *s, 3849 const char *end, 3850 const char **nextPtr) 3837 static XMLERROR prologProcessor(XML_Parser parser, 3838 const char *s, 3839 const char *end, 3840 const char **nextPtr) 3851 3841 { 3852 3842 const char *next; … … 3856 3846 } 3857 3847 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) 3848 static 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) 3866 3855 { 3867 3856 #ifdef XML_DTD … … 4704 4693 } 4705 4694 4706 static 4707 XMLERROR epilogProcessor(XML_Parser parser, 4708 const char *s, 4709 const char *end, 4710 const char **nextPtr) 4695 static XMLERROR epilogProcessor(XML_Parser parser, 4696 const char *s, 4697 const char *end, 4698 const char **nextPtr) 4711 4699 { 4712 4700 processor = epilogProcessor; … … 4769 4757 #ifdef XML_DTD 4770 4758 4771 static XMLERROR 4772 processInternalParamEntity(XML_Parser parser,ENTITY * entity)4759 static XMLERROR processInternalParamEntity(XML_Parser parser, 4760 ENTITY * entity) 4773 4761 { 4774 4762 const char *s, *end, *next; … … 4794 4782 #endif /* XML_DTD */ 4795 4783 4796 static 4797 XMLERROR errorProcessor(XML_Parser parser, 4798 const char *s, 4799 const char *end, 4800 const char **nextPtr) 4784 static XMLERROR errorProcessor(XML_Parser parser, 4785 const char *s, 4786 const char *end, 4787 const char **nextPtr) 4801 4788 { 4802 4789 return errorCode; 4803 4790 } 4804 4791 4805 static XMLERROR 4806 storeAttributeValue(XML_Parser parser, const ENCODING * enc, int isCdata, 4807 const char *ptr, const char *end, 4808 STRING_POOL * pool) 4792 static XMLERROR storeAttributeValue(XML_Parser parser, 4793 const ENCODING * enc, 4794 int isCdata, 4795 const char *ptr, 4796 const char *end, 4797 STRING_POOL * pool) 4809 4798 { 4810 4799 XMLERROR result = appendAttributeValue(parser, enc, isCdata, ptr, end, pool); … … 4970 4959 } 4971 4960 4972 static 4973 XMLERROR storeEntityValue(XML_Parser parser, 4974 const ENCODING * enc, 4975 const char *entityTextPtr, 4976 const char *entityTextEnd) 4961 static XMLERROR storeEntityValue(XML_Parser parser, 4962 const ENCODING * enc, 4963 const char *entityTextPtr, 4964 const char *entityTextEnd) 4977 4965 { 4978 4966 STRING_POOL *pool = &(dtd.pool); … … 5092 5080 } 5093 5081 5094 static void 5095 normalizeLines(XML_Char * s) 5082 static void normalizeLines(XML_Char * s) 5096 5083 { 5097 5084 XML_Char *p; … … 5120 5107 } 5121 5108 5122 static int 5123 reportProcessingInstruction(XML_Parser parser, const ENCODING * enc, const char *start, const char *end) 5109 static int reportProcessingInstruction(XML_Parser parser, 5110 const ENCODING * enc, 5111 const char *start, 5112 const char *end) 5124 5113 { 5125 5114 const XML_Char *target; … … 5151 5140 } 5152 5141 5153 static int 5154 reportComment(XML_Parser parser, const ENCODING * enc, const char *start, const char *end) 5142 static int reportComment(XML_Parser parser, 5143 const ENCODING * enc, 5144 const char *start, 5145 const char *end) 5155 5146 { 5156 5147 XML_Char *data; … … 5175 5166 } 5176 5167 5177 static void 5178 reportDefault(XML_Parser parser, const ENCODING * enc, const char *s, const char *end) 5168 static void reportDefault(XML_Parser parser, 5169 const ENCODING * enc, 5170 const char *s, 5171 const char *end) 5179 5172 { 5180 5173 if (MUST_CONVERT(enc, s)) … … 5209 5202 5210 5203 5211 static int 5212 defineAttribute(ELEMENT_TYPE * type, ATTRIBUTE_ID * attId, int isCdata, 5213 int isId, const XML_Char * value, XML_Parser parser) 5204 static int defineAttribute(ELEMENT_TYPE * type, 5205 ATTRIBUTE_ID * attId, 5206 int isCdata, 5207 int isId, 5208 const XML_Char * value, 5209 XML_Parser parser) 5214 5210 { 5215 5211 DEFAULT_ATTRIBUTE *att; … … 5253 5249 } 5254 5250 5255 static int setElementTypePrefix(XML_Parser parser, ELEMENT_TYPE * elementType) 5251 static int setElementTypePrefix(XML_Parser parser, 5252 ELEMENT_TYPE * elementType) 5256 5253 { 5257 5254 const XML_Char *name; … … 5285 5282 } 5286 5283 5287 static ATTRIBUTE_ID * 5288 getAttributeId(XML_Parser parser, const ENCODING * enc, const char *start, const char *end) 5284 static ATTRIBUTE_ID * getAttributeId(XML_Parser parser, 5285 const ENCODING * enc, 5286 const char *start, 5287 const char *end) 5289 5288 { 5290 5289 ATTRIBUTE_ID *id; … … 5352 5351 #define CONTEXT_SEP XML_T('\f') 5353 5352 5354 static 5355 const XML_Char *getContext(XML_Parser parser) 5353 static const XML_Char *getContext(XML_Parser parser) 5356 5354 { 5357 5355 HASH_TABLE_ITER iter; … … 5426 5424 } 5427 5425 5428 static 5429 int setContext(XML_Parser parser, const XML_Char * context) 5426 static int setContext(XML_Parser parser, const XML_Char * context) 5430 5427 { 5431 5428 const XML_Char *s = context; … … 5491 5488 5492 5489 5493 static 5494 void normalizePublicId(XML_Char * publicId) 5490 static void normalizePublicId(XML_Char * publicId) 5495 5491 { 5496 5492 XML_Char *p = publicId; … … 5783 5779 #define INIT_SIZE 64 5784 5780 5785 static 5786 int keyeq(KEY s1, KEY s2) 5781 static int keyeq(KEY s1, KEY s2) 5787 5782 { 5788 5783 for (; *s1 == *s2; s1++, s2++) … … 5792 5787 } 5793 5788 5794 static 5795 unsigned long hash(KEY s) 5789 static unsigned long hash(KEY s) 5796 5790 { 5797 5791 unsigned long h = 0; … … 5802 5796 } 5803 5797 5804 static 5805 NAMED *lookup(HASH_TABLE * table, KEY name, size_t createSize) 5798 static NAMED *lookup(HASH_TABLE * table, KEY name, size_t createSize) 5806 5799 { 5807 5800 size_t i; … … 5875 5868 } 5876 5869 5877 static 5878 void hashTableDestroy(HASH_TABLE * table) 5870 static void hashTableDestroy(HASH_TABLE * table) 5879 5871 { 5880 5872 size_t i; … … 5891 5883 } 5892 5884 5893 static 5894 void hashTableInit(HASH_TABLE * p, XML_Memory_Handling_Suite * ms) 5885 static void hashTableInit(HASH_TABLE * p, XML_Memory_Handling_Suite * ms) 5895 5886 { 5896 5887 p->size = 0; … … 5901 5892 } 5902 5893 5903 static 5904 void hashTableIterInit(HASH_TABLE_ITER * iter, const HASH_TABLE * table) 5894 static void hashTableIterInit(HASH_TABLE_ITER * iter, const HASH_TABLE * table) 5905 5895 { 5906 5896 iter->p = table->v; … … 5908 5898 } 5909 5899 5910 static 5911 NAMED *hashTableIterNext(HASH_TABLE_ITER * iter) 5900 static NAMED *hashTableIterNext(HASH_TABLE_ITER * iter) 5912 5901 { 5913 5902 while (iter->p != iter->end) … … 5922 5911 5923 5912 5924 static 5925 void poolInit(STRING_POOL * pool, XML_Memory_Handling_Suite * ms) 5913 static void poolInit(STRING_POOL * pool, XML_Memory_Handling_Suite * ms) 5926 5914 { 5927 5915 pool->blocks = 0; … … 5933 5921 } 5934 5922 5935 static 5936 void poolClear(STRING_POOL * pool) 5923 static void poolClear(STRING_POOL * pool) 5937 5924 { 5938 5925 if (!pool->freeBlocks) … … 5957 5944 } 5958 5945 5959 static 5960 void poolDestroy(STRING_POOL * pool) 5946 static void poolDestroy(STRING_POOL * pool) 5961 5947 { 5962 5948 BLOCK *p = pool->blocks; … … 6172 6158 } 6173 6159 6174 static int 6175 nextScaffoldPart(XML_Parser parser) 6160 static int nextScaffoldPart(XML_Parser parser) 6176 6161 { 6177 6162 CONTENT_SCAFFOLD *me; … … 6222 6207 } /* End nextScaffoldPart */ 6223 6208 6224 static void 6225 build_node(XML_Parser parser, 6226 int src_node, 6227 XMLCONTENT * dest, 6228 XMLCONTENT ** contpos, 6229 char **strpos) 6209 static void build_node(XML_Parser parser, 6210 int src_node, 6211 XMLCONTENT * dest, 6212 XMLCONTENT ** contpos, 6213 char **strpos) 6230 6214 { 6231 6215 dest->type = dtd.scaffold[src_node].type; … … 6265 6249 } /* End build_node */ 6266 6250 6267 static XMLCONTENT * 6268 build_model(XML_Parser parser) 6251 static XMLCONTENT * build_model(XML_Parser parser) 6269 6252 { 6270 6253 XMLCONTENT *ret; … … 6284 6267 } /* End build_model */ 6285 6268 6286 static ELEMENT_TYPE * 6287 getElementType(XML_Parser parser, 6288 const ENCODING * enc, 6289 const char *ptr, 6290 const char *end) 6269 static ELEMENT_TYPE * getElementType(XML_Parser parser, 6270 const ENCODING * enc, 6271 const char *ptr, 6272 const char *end) 6291 6273 { 6292 6274 const XML_Char *name = poolStoreString(&dtd.pool, enc, ptr, end, NULL); -
trunk/src/helpers/xprf.c
r133 r142 157 157 */ 158 158 159 PXINIAPPDATA FindApp(PXINI pXIni, // in: profile opened with xprfOpenProfile160 const char *pcszApp)159 static PXINIAPPDATA FindApp(PXINI pXIni, // in: profile opened with xprfOpenProfile 160 const char *pcszApp) 161 161 { 162 162 PLISTNODE pAppNode = lstQueryFirstNode(&pXIni->llApps); … … 183 183 */ 184 184 185 PXINIAPPDATA CreateApp(PXINI pXIni, // in: profile opened with xprfOpenProfile186 const char *pcszApp)185 static PXINIAPPDATA CreateApp(PXINI pXIni, // in: profile opened with xprfOpenProfile 186 const char *pcszApp) 187 187 { 188 188 PXINIAPPDATA pAppData; … … 210 210 */ 211 211 212 PXINIKEYDATA FindKey(PXINIAPPDATA pAppData,213 const char *pcszKey)212 static PXINIKEYDATA FindKey(PXINIAPPDATA pAppData, 213 const char *pcszKey) 214 214 { 215 215 PLISTNODE pKeyNode = lstQueryFirstNode(&pAppData->llKeys); … … 236 236 */ 237 237 238 PXINIKEYDATA CreateKey(PXINIAPPDATA pAppData,239 const char *pcszKey, // in: key name240 PBYTE pbData, // in: data for key241 ULONG cbData) // in: sizeof (*pbData)238 static PXINIKEYDATA CreateKey(PXINIAPPDATA pAppData, 239 const char *pcszKey, // in: key name 240 PBYTE pbData, // in: data for key 241 ULONG cbData) // in: sizeof (*pbData) 242 242 { 243 243 PXINIKEYDATA pKeyData; … … 274 274 */ 275 275 276 VOID FreeKey(PXINIKEYDATA pKeyDataThis)276 static VOID FreeKey(PXINIKEYDATA pKeyDataThis) 277 277 { 278 278 if (pKeyDataThis->pszKeyName) … … 292 292 */ 293 293 294 VOID FreeApp(PXINIAPPDATA pAppDataThis)294 static VOID FreeApp(PXINIAPPDATA pAppDataThis) 295 295 { 296 296 PLISTNODE pKeyNode = lstQueryFirstNode(&pAppDataThis->llKeys); … … 319 319 */ 320 320 321 BOOL FreeINI(PXINI pXIni) // in: profile opened with xprfOpenProfile321 static BOOL FreeINI(PXINI pXIni) // in: profile opened with xprfOpenProfile 322 322 { 323 323 BOOL brc = FALSE; … … 356 356 */ 357 357 358 BOOL ReadINI(PXINI pXIni) // in: profile opened with xprfOpenProfile358 static BOOL ReadINI(PXINI pXIni) // in: profile opened with xprfOpenProfile 359 359 { 360 360 BOOL brc = FALSE; … … 457 457 */ 458 458 459 BOOL WriteINI(PXINI pXIni) // in: profile opened with xprfOpenProfile459 static BOOL WriteINI(PXINI pXIni) // in: profile opened with xprfOpenProfile 460 460 { 461 461 BOOL brc = FALSE;
Note:
See TracChangeset
for help on using the changeset viewer.