Skip to content

Commit

Permalink
fix error: expected unqualified-id before string constant
Browse files Browse the repository at this point in the history
PARROT_EXPORT needs to be the first function attribute. See GH #1164.
This error appears now with c++ compilers, because now returns_null is
only now enabled.
  • Loading branch information
Reini Urban committed Jan 2, 2015
1 parent f42ffd9 commit 48c3084
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion include/parrot/nci.h
Expand Up @@ -48,8 +48,8 @@ void Parrot_nci_libffi_register(PARROT_INTERP)
/* HEADERIZER BEGIN: src/nci/signatures.c */
/* Don't modify between HEADERIZER BEGIN / HEADERIZER END. Your changes will be lost. */

PARROT_CANNOT_RETURN_NULL
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
PMC * Parrot_nci_parse_signature(PARROT_INTERP, ARGIN(STRING *sig_str))
__attribute__nonnull__(1)
__attribute__nonnull__(2);
Expand Down
4 changes: 2 additions & 2 deletions include/parrot/scheduler.h
@@ -1,5 +1,5 @@
/* scheduler.h
* Copyright (C) 2007, Parrot Foundation.
* Copyright (C) 2007-2015, Parrot Foundation.
* Overview:
* Parrot concurrency scheduler header stuff
* Data Structure and Algorithms:
Expand Down Expand Up @@ -31,8 +31,8 @@ void Parrot_cx_check_alarms(PARROT_INTERP, ARGIN(PMC *scheduler))
__attribute__nonnull__(1)
__attribute__nonnull__(2);

PARROT_CANNOT_RETURN_NULL
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
opcode_t* Parrot_cx_run_scheduler(PARROT_INTERP,
ARGIN(PMC *scheduler),
ARGIN(opcode_t *next))
Expand Down
2 changes: 1 addition & 1 deletion src/gc/fixed_allocator.c
Expand Up @@ -331,8 +331,8 @@ Parrot_gc_pool_destroy(SHIM_INTERP, ARGMOD(Pool_Allocator *pool))
mem_sys_free(pool);
}

PARROT_CANNOT_RETURN_NULL
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
void *
Parrot_gc_pool_allocate(PARROT_INTERP, ARGMOD(Pool_Allocator * pool))
{
Expand Down
2 changes: 1 addition & 1 deletion src/gc/fixed_allocator.h
Expand Up @@ -99,8 +99,8 @@ PARROT_EXPORT
PARROT_CAN_RETURN_NULL
struct Fixed_Allocator* Parrot_gc_fixed_allocator_new(PARROT_INTERP);

PARROT_CANNOT_RETURN_NULL
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
void * Parrot_gc_pool_allocate(PARROT_INTERP, ARGMOD(Pool_Allocator * pool))
__attribute__nonnull__(1)
__attribute__nonnull__(2)
Expand Down
4 changes: 2 additions & 2 deletions src/nci/signatures.c
@@ -1,5 +1,5 @@
/*
Copyright (C) 2010-2014, Parrot Foundation.
Copyright (C) 2010-2015, Parrot Foundation.
=head1 NAME
Expand Down Expand Up @@ -45,8 +45,8 @@ Parse a signature string to a NCI signature PMC.
*/

PARROT_CANNOT_RETURN_NULL
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
PMC *
Parrot_nci_parse_signature(PARROT_INTERP, ARGIN(STRING *sig_str))
{
Expand Down
4 changes: 2 additions & 2 deletions src/scheduler.c
@@ -1,5 +1,5 @@
/*
Copyright (C) 2007-2011, Parrot Foundation.
Copyright (C) 2007-2015, Parrot Foundation.
=head1 NAME
Expand Down Expand Up @@ -271,8 +271,8 @@ needs to be pre-empted.
*/

PARROT_CANNOT_RETURN_NULL
PARROT_EXPORT
PARROT_CANNOT_RETURN_NULL
opcode_t*
Parrot_cx_run_scheduler(PARROT_INTERP, ARGIN(PMC *scheduler), ARGIN(opcode_t *next))
{
Expand Down

0 comments on commit 48c3084

Please sign in to comment.