Skip to content

Commit

Permalink
Merge pull request cc65#2558 from polluks/cpp
Browse files Browse the repository at this point in the history
Clean-up preprocessor syntax
  • Loading branch information
mrdudz authored Dec 15, 2024
2 parents bfbf5cd + 0f6b427 commit a53524b
Show file tree
Hide file tree
Showing 10 changed files with 25 additions and 25 deletions.
2 changes: 1 addition & 1 deletion doc/cc65.sgml
Original file line number Diff line number Diff line change
Expand Up @@ -1370,7 +1370,7 @@ sequences of the input.
Example:
<tscreen><verb>
/* Use a space wherever an 'a' occurs in ISO-8859-1 source */
#pragma charmap (0x61, 0x20);
#pragma charmap (0x61, 0x20)
</verb></tscreen>


Expand Down
2 changes: 1 addition & 1 deletion libsrc/common/strftime.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@


/* Use static local variables for speed */
#pragma static-locals (on);
#pragma static-locals (on)



Expand Down
2 changes: 1 addition & 1 deletion samples/cbm/fire.c
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@


/* Use static local variables for speed */
#pragma static-locals (1);
#pragma static-locals (1)



Expand Down
2 changes: 1 addition & 1 deletion samples/cbm/plasma.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@


/* Use static local variables for speed */
#pragma static-locals (1);
#pragma static-locals (1)


static const unsigned char sinustable[0x100] = {
Expand Down
12 changes: 6 additions & 6 deletions samples/geos/overlay-demo.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ void show(char *name)
** rather place the all the code of certain source files into the overlay by
** compiling them with --code-name OVERLAY1.
*/
#pragma code-name(push, "OVERLAY1");
#pragma code-name(push, "OVERLAY1")

void foo(void)
{
Expand All @@ -39,27 +39,27 @@ void foo(void)
show("One");
}

#pragma code-name(pop);
#pragma code-name(pop)


#pragma code-name(push, "OVERLAY2");
#pragma code-name(push, "OVERLAY2")

void bar(void)
{
show("Two");
}

#pragma code-name(pop);
#pragma code-name(pop)


#pragma code-name(push, "OVERLAY3");
#pragma code-name(push, "OVERLAY3")

void foobar (void)
{
show("Three");
}

#pragma code-name(pop);
#pragma code-name(pop)


void main(int /*argc*/, char *argv[])
Expand Down
2 changes: 1 addition & 1 deletion samples/lynx/mandelbrot.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
#define divfp(_a,_b) ((((signed long)_a)<<fpshift)/(_b))

/* Use static local variables for speed */
#pragma static-locals (1);
#pragma static-locals (1)



Expand Down
2 changes: 1 addition & 1 deletion samples/mandelbrot.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
#endif

/* Use static local variables for speed */
#pragma static-locals (1);
#pragma static-locals (1)



Expand Down
12 changes: 6 additions & 6 deletions samples/multidemo.c
Original file line number Diff line number Diff line change
Expand Up @@ -64,34 +64,34 @@ void log (char *msg)
** rather place all the code of certain source files into the overlay by
** compiling them with --code-name OVERLAY1.
*/
#pragma code-name (push, "OVERLAY1");
#pragma code-name (push, "OVERLAY1")

void foo (void)
{
log ("Calling main from overlay 1");
}

#pragma code-name (pop);
#pragma code-name (pop)


#pragma code-name (push, "OVERLAY2");
#pragma code-name (push, "OVERLAY2")

void bar (void)
{
log ("Calling main from overlay 2");
}

#pragma code-name (pop);
#pragma code-name (pop)


#pragma code-name (push, "OVERLAY3");
#pragma code-name (push, "OVERLAY3")

void foobar (void)
{
log ("Calling main from overlay 3");
}

#pragma code-name(pop);
#pragma code-name(pop)


unsigned char loademdriver (void)
Expand Down
12 changes: 6 additions & 6 deletions samples/overlaydemo.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void log (char *msg)
** rather place all the code of certain source files into the overlay by
** compiling them with --code-name OVERLAY1.
*/
#pragma code-name (push, "OVERLAY1");
#pragma code-name (push, "OVERLAY1")

void foo (void)
{
Expand All @@ -51,27 +51,27 @@ void foo (void)
log ("Calling main from overlay 1");
}

#pragma code-name (pop);
#pragma code-name (pop)


#pragma code-name (push, "OVERLAY2");
#pragma code-name (push, "OVERLAY2")

void bar (void)
{
log ("Calling main from overlay 2");
}

#pragma code-name (pop);
#pragma code-name (pop)


#pragma code-name (push, "OVERLAY3");
#pragma code-name (push, "OVERLAY3")

void foobar (void)
{
log ("Calling main from overlay 3");
}

#pragma code-name(pop);
#pragma code-name(pop)


unsigned char loadfile (char *name, void *addr, void *size)
Expand Down
2 changes: 1 addition & 1 deletion samples/sieve.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ static unsigned char Sieve[COUNT];



#pragma static-locals(1);
#pragma static-locals(1)



Expand Down

0 comments on commit a53524b

Please sign in to comment.