Skip to content

Commit 37ad87e

Browse files
authored
fixed some horrible formatting in OLEDB synxtax blocks (MicrosoftDocs#595)
* interim commit * fixed code formatting in oledb * Update signal.md * Update cdatasource-open.md * Update signal.md @corob-msft thanks I got confused
1 parent d759c66 commit 37ad87e

File tree

430 files changed

+1493
-2639
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

430 files changed

+1493
-2639
lines changed

docs/c-runtime-library/reference/signal.md

Lines changed: 131 additions & 133 deletions
Large diffs are not rendered by default.

docs/c-runtime-library/reference/sin-sinf-sinl-sinh-sinhf-sinhl.md

Lines changed: 21 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -25,36 +25,26 @@ Calculates sines and hyperbolic sines.
2525

2626
## Syntax
2727

28-
```
29-
double sin(
30-
double x
31-
);
32-
float sin(
33-
float x
34-
); // C++ only
35-
long double sin(
36-
long double x
37-
); // C++ only
38-
float sinf(
39-
float x
40-
);
41-
long double sinl( long double x
42-
);
43-
double sinh(
44-
double x
45-
);
46-
float sinh(
47-
float x
48-
); // C++ only
49-
long double sinh(
50-
long double x
51-
); // C++ only
52-
float sinhf(
53-
float x
54-
);
55-
long double sinhl(
56-
long double x
57-
);
28+
```cpp
29+
double sin(double x);
30+
31+
float sin(float x); // C++ only
32+
33+
long double sin(long double x); // C++ only
34+
35+
float sinf(float x);
36+
37+
long double sinl(long double x);
38+
39+
double sinh(double x);
40+
41+
float sinh(float x); // C++ only
42+
43+
long double sinh(long double x); // C++ only
44+
45+
float sinhf(float x);
46+
47+
long double sinhl(long double x);
5848
```
5949
6050
#### Parameters
@@ -96,7 +86,7 @@ long double sinhl(
9686
#include <math.h>
9787
#include <stdio.h>
9888

99-
int main( void )
89+
int main( void)
10090
{
10191
double pi = 3.1415926535;
10292
double x, y;

docs/data/oledb/accessing-xml-data.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,8 @@ CTable<CXMLAccessor, CRowset> rs;
6969
```
7070
// Open data source, session, and rowset
7171
hr = rs.MoveFirst();
72-
while( SUCCEEDED(hr) && hr != DB_S_ENDOFROWSET )
72+
73+
while(SUCCEEDED(hr) && hr != DB_S_ENDOFROWSET )
7374
{
7475
CStringW strRowData;
7576
myCmd.GetXMLRowData(strRowData);

docs/data/oledb/adding-an-interface-to-your-provider.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,24 +21,24 @@ Determine which object you want to add the interface to (usually data source, ro
2121

2222
If you created a new class to support the interface, make the object inherit from that class. For example, you might add the class **IRowsetIndexImpl** to a rowset object:
2323

24-
```
24+
```cpp
2525
template <class Creator>
2626
class CAgentRowset :
27-
public CRowsetImpl< CAgentRowset<Creator>, CAgentMan, Creator>,
28-
public IRowsetIndexImpl< ... >
27+
public CRowsetImpl< CAgentRowset<Creator>, CAgentMan, Creator>,
28+
public IRowsetIndexImpl< ... >
2929
```
3030
3131
Add the interface to **COM_MAP** in the object using the COM_INTERFACE_ENTRY macro. If there is no map, create one. For example:
3232
33-
```
33+
```cpp
3434
BEGIN_COM_MAP(CAgentRowset)
3535
COM_INTERFACE_ENTRY(IRowsetIndex)
3636
END_COM_MAP()
3737
```
3838

3939
For the rowset object, chain the map of its parent object so that the object can delegate to the parent class. In this example, add the COM_INTERFACE_ENTRY_CHAIN macro to the map:
4040

41-
```
41+
```cpp
4242
BEGIN_COM_MAP(CAgentRowset)
4343
COM_INTERFACE_ENTRY(IRowsetIndex)
4444
COM_INTERFACE_ENTRY_CHAIN(CRowsetImpl)

docs/data/oledb/atltraceerrorrecords.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ Dumps OLE DB Error Record information to the dump device if an error is returned
2222

2323
## Syntax
2424

25-
```
26-
27-
inline void AtlTraceErrorRecords( 
28-
HRESULT hrErr = S_OK  
29-
);
25+
```cpp
26+
inline void AtlTraceErrorRecords(HRESULT hrErr = S_OK);
3027
```
3128
3229
#### Parameters

docs/data/oledb/begin-accessor-map.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ Marks the beginning of the accessor map entries.
2323
## Syntax
2424

2525
```
26-
27-
BEGIN_ACCESSOR_MAP(
28-
x
29-
,
30-
num
31-
)
32-
26+
BEGIN_ACCESSOR_MAP(x, num)
3327
```
3428

3529
#### Parameters

docs/data/oledb/begin-accessor.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,7 @@ Marks the beginning of an accessor entry.
2323
## Syntax
2424

2525
```
26-
27-
BEGIN_ACCESSOR(
28-
num
29-
,
30-
bAuto
31-
)
32-
26+
BEGIN_ACCESSOR(num, bAuto)
3327
```
3428

3529
#### Parameters

docs/data/oledb/begin-column-map.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,7 @@ Marks the beginning of a column map entry.
2323
## Syntax
2424

2525
```
26-
27-
BEGIN_COLUMN_MAP(
28-
x
29-
)
30-
26+
BEGIN_COLUMN_MAP(x)
3127
```
3228

3329
#### Parameters

docs/data/oledb/begin-param-map.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ Marks the beginning of the parameter map entries.
2222

2323
## Syntax
2424

25-
```
26-
27-
BEGIN_PARAM_MAP(
28-
x
29-
)
25+
```cpp
26+
BEGIN_PARAM_MAP(x)
3027

3128
```
3229

docs/data/oledb/begin-property-set-ex.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ Marks the beginning of a property set in a property set map.
2222

2323
## Syntax
2424

25-
```
26-
27-
BEGIN_PROPERTY_SET_EX(
28-
guid
25+
```cpp
26+
BEGIN_PROPERTY_SET_EX(guid
2927
, flags )
3028
```
3129

docs/data/oledb/begin-property-set.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ Marks the beginning of a property set in a property set map.
2222

2323
## Syntax
2424

25-
```
26-
27-
BEGIN_PROPERTY_SET(
28-
guid
29-
)
25+
```cpp
26+
BEGIN_PROPERTY_SET(guid)
3027

3128
```
3229

docs/data/oledb/begin-propset-map.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ Marks the beginning of the property set map entries.
2222

2323
## Syntax
2424

25-
```
26-
27-
BEGIN_PROPSET_MAP(
28-
Class
29-
)
25+
```cpp
26+
BEGIN_PROPSET_MAP(Class)
3027

3128
```
3229

docs/data/oledb/begin-provider-column-map.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ Marks the beginning of the provider column map entries.
2222

2323
## Syntax
2424

25-
```
26-
27-
BEGIN_PROVIDER_COLUMN_MAP(
28-
theClass
29-
)
25+
```cpp
26+
BEGIN_PROVIDER_COLUMN_MAP(theClass)
3027

3128
```
3229

docs/data/oledb/begin-schema-map.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,8 @@ Denotes the beginning of a schema map.
2222

2323
## Syntax
2424

25-
```
26-
27-
BEGIN_SCHEMA_MAP(
28-
SchemaClass
29-
);
25+
```cpp
26+
BEGIN_SCHEMA_MAP(SchemaClass);
3027
```
3128
3229
#### Parameters

docs/data/oledb/blob-entry-length-status.md

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ Used with `BEGIN_COLUMN_MAP` and `END_COLUMN_MAP` to bind a binary large object
2222

2323
## Syntax
2424

25-
```
26-
25+
```cpp
2726
BLOB_ENTRY_LENGTH_STATUS(
28-
nOrdinal
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
35-
, length, status )
27+
nOrdinal,
28+
IID,
29+
flags,
30+
data,
31+
length,
32+
status )
3633
```
3734
3835
#### Parameters

docs/data/oledb/blob-entry-length.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,8 @@ Used with `BEGIN_COLUMN_MAP` and `END_COLUMN_MAP` to bind a binary large object
2222

2323
## Syntax
2424

25-
```
26-
27-
BLOB_ENTRY_LENGTH(
28-
nOrdinal
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
35-
,
36-
length
37-
)
25+
```cpp
26+
BLOB_ENTRY_LENGTH(nOrdinal, IID, flags, data, length)
3827

3928
```
4029

docs/data/oledb/blob-entry-status.md

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,8 @@ Used with `BEGIN_COLUMN_MAP` or `BEGIN_ACCESSOR_MAP` to bind a binary large obje
2222

2323
## Syntax
2424

25-
```
26-
27-
BLOB_ENTRY_STATUS(
28-
nOrdinal
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
35-
,
36-
status
37-
)
25+
```cpp
26+
BLOB_ENTRY_STATUS(nOrdinal, IID, flags, data, status)
3827

3928
```
4029

docs/data/oledb/blob-entry.md

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,8 @@ Used with `BEGIN_COLUMN_MAP` and `END_COLUMN_MAP` to bind a binary large object
2222

2323
## Syntax
2424

25-
```
26-
27-
BLOB_ENTRY(
28-
nOrdinal
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
35-
)
25+
```cpp
26+
BLOB_ENTRY(nOrdinal, IID, flags, data)
3627

3728
```
3829

docs/data/oledb/blob-name-length-status.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,8 @@ Used with `BEGIN_COLUMN_MAP` and `END_COLUMN_MAP` to bind a binary large object
2222

2323
## Syntax
2424

25-
```
26-
27-
BLOB_NAME_LENGTH_STATUS(
28-
pszName
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
35-
,
36-
length
25+
```cpp
26+
BLOB_NAME_LENGTH_STATUS(pszName, IID, flags, data, length
3727
, status )
3828
```
3929

docs/data/oledb/blob-name-length.md

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,8 @@ Used with `BEGIN_COLUMN_MAP` and `END_COLUMN_MAP` to bind a binary large object
2222

2323
## Syntax
2424

25-
```
26-
27-
BLOB_NAME_LENGTH(
28-
pszName
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
35-
,
36-
length )
25+
```cpp
26+
BLOB_NAME_LENGTH(pszName, IID, flags, data, length )
3727
```
3828
3929
#### Parameters

docs/data/oledb/blob-name-status.md

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,16 +22,8 @@ Used with `BEGIN_COLUMN_MAP` and `END_COLUMN_MAP` to bind a binary large object
2222

2323
## Syntax
2424

25-
```
26-
27-
BLOB_NAME_STATUS(
28-
pszName
29-
,
30-
IID
31-
,
32-
flags
33-
,
34-
data
25+
```cpp
26+
BLOB_NAME_STATUS(pszName, IID, flags, data
3527
, status )
3628
```
3729

0 commit comments

Comments
 (0)